Skip to content

Normalize non-rigid aliases in ty_known_to_outlive - #161246

Open
amirHdev wants to merge 1 commit into
rust-lang:mainfrom
amirHdev:fix-161067-non-rigid-alias
Open

Normalize non-rigid aliases in ty_known_to_outlive#161246
amirHdev wants to merge 1 commit into
rust-lang:mainfrom
amirHdev:fix-161067-non-rigid-alias

Conversation

@amirHdev

@amirHdev amirHdev commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #161067

ty_known_to_outlive directly registers a TypeOutlives region obligation. with the next solver its input can contain non-rigid aliases which lexical region solving does not expect
Normalize non-rigid aliases before registering the obligation while avoiding trait solving for inputs that do not contain them. callers now pass Unnormalized explicitly

@amirHdev
amirHdev force-pushed the fix-161067-non-rigid-alias branch 2 times, most recently from 1103014 to b881312 Compare August 18, 2026 07:53
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 18, 2026
@rust-log-analyzer

This comment has been minimized.

@amirHdev
amirHdev force-pushed the fix-161067-non-rigid-alias branch 3 times, most recently from d0aeadc to 8806add Compare August 20, 2026 10:51
@amirHdev amirHdev changed the title fix: normalize non-rigid aliases in ty_known_to_outlive Normalize non-rigid aliases in ty_known_to_outlive Aug 20, 2026
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
@amirHdev
amirHdev force-pushed the fix-161067-non-rigid-alias branch from 8806add to 52cc388 Compare August 21, 2026 13:55
@amirHdev
amirHdev marked this pull request as ready for review August 21, 2026 13:58
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 21, 2026
@rustbot

rustbot commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

r? @dingxiangfei2009

rustbot has assigned @dingxiangfei2009.
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, types
  • compiler, types expanded to 75 candidates
  • Random selection from 19 candidates

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]: Alias has non-rigid aliases

4 participants