Skip to content

Avoid ICE when param-env normalization leaves unresolved inference variables#153574

Open
TaKO8Ki wants to merge 3 commits intorust-lang:mainfrom
TaKO8Ki:self-referential-param-env-normalization-ice
Open

Avoid ICE when param-env normalization leaves unresolved inference variables#153574
TaKO8Ki wants to merge 3 commits intorust-lang:mainfrom
TaKO8Ki:self-referential-param-env-normalization-ice

Conversation

@TaKO8Ki
Copy link
Member

@TaKO8Ki TaKO8Ki commented Mar 8, 2026

Fixes #153354

Because the impl is already ill-formed, those variables are not fully constrained, so zfully_resolvefails. We previously treated that as an immediate compiler bug withspan_bug!`, which caused an ICE on invalid input.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 8, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 8, 2026

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 69 candidates
  • Random selection from 15 candidates

@rust-log-analyzer

This comment has been minimized.

@rustbot

This comment has been minimized.

@TaKO8Ki TaKO8Ki force-pushed the self-referential-param-env-normalization-ice branch from aeeca98 to c652d9d Compare March 8, 2026 18:14
@JonathanBrouwer
Copy link
Contributor

r? lcnr

@rustbot rustbot assigned lcnr and unassigned JonathanBrouwer Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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]: inference variables in normalized parameter environment: unconstrained type

5 participants