Files
rust/tests
Jonathan Brouwer 2f93cbee86 Rollup merge of #162168 - khyperia:ice-inherent-next, r=BoxyUwU
fix ICE in project_goals/inherent

I'm a silly goose. The next solver has the exact same bug as https://github.com/rust-lang/rust/pull/161858 - merely enabling next-solver on the test added in that PR causes an ICE 🙃

ICE was technically introduced by https://github.com/rust-lang/rust/pull/161929 but this bug has always been present, it's just that PR explicitly tracked things better and ICEd on the bug instead of silently continuing.

fixes https://github.com/rust-lang/rust/issues/162147

explanation: `push_const_arg_has_type_goal` expects its term to have rebased, `impl`-format args, not `Self` format args. See doc comment on `AliasConstKind::InherentSelf` for what "impl format" and "self format" mean: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_type_ir/enum.AliasConstKind.html#variant.InherentSelf

r? @BoxyUwU since we chatted about this yesterday but honestly anyone vaguely t-types and/or const-generics feel free to review as well, should be relatively straightforward!
2026-09-03 12:43:12 +02:00
..
2026-09-01 08:57:20 -05:00