Make param index generation a bit more robust r? ````@lcnr```` While not really necessary for closure and anon const ids, it's strictly more correct
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.