rust/compiler/rustc_middle
Matthias Krüger 6c94f99d83
Rollup merge of #92875 - BoxyUwU:infer_arg_opt_const_param_of, r=lcnr
Make `opt_const_param_of` work in the presence of `GenericArg::Infer`

highly recommend viewing the first and second commits on their own rather than looking at file changes 🤣

Because we filtered args down to just const args we would ignore `GenericArg::Infer` which made us get a `arg_index` which was wrong by however many const `GenericArg::Infer` came previously

[example](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=46dba6a53aca6333028a10908ef16e0b) of the [bugs](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=a8eebced26eefa4119fc2e7ae0c76de6) fixed.

r? ```@lcnr```
2022-01-15 02:25:20 +01:00
..
benches
src Rollup merge of #92875 - BoxyUwU:infer_arg_opt_const_param_of, r=lcnr 2022-01-15 02:25:20 +01:00
Cargo.toml revert #92254 "Bump gsgdt to 0.1.3" 2022-01-03 20:25:46 +01:00
README.md

For more information about how rustc works, see the rustc dev guide.