Skip to content

Fix const normalization for generic const items with trait assoc consts#152278

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
lapla-cogito:type_const_nested
Feb 15, 2026
Merged

Fix const normalization for generic const items with trait assoc consts#152278
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
lapla-cogito:type_const_nested

Conversation

@lapla-cogito
Copy link
Contributor

@lapla-cogito lapla-cogito commented Feb 7, 2026

In try_fold_free_or_assoc, the check for whether the normalization result needs further normalization only considered types, not constants. This caused generic const items marked with #[type_const] that reference trait associated consts to only partially normalize—the outer const would be expanded, but the inner associated const would remain unevaluated, resulting in an ICE in borrowck.

close #151647

r? BoxyUwU
(Based on git blame)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE: mGCA+GCI: Broken MIR: equate_normalized_input_or_output: NoSolution

4 participants