Skip to content

Fix ICE of getting item name from RPITIT - #162071

Open
chenyukang wants to merge 1 commit into
rust-lang:mainfrom
chenyukang:yukang-fix-161915-rpitit-mismatch-ice
Open

Fix ICE of getting item name from RPITIT#162071
chenyukang wants to merge 1 commit into
rust-lang:mainfrom
chenyukang:yukang-fix-161915-rpitit-mismatch-ice

Conversation

@chenyukang

@chenyukang chenyukang commented Aug 31, 2026

Copy link
Copy Markdown
Member

Fixes #161915

RPITIT projections use anonymous associated type and have no item name.

@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 Aug 31, 2026
@rustbot

rustbot commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
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 75 candidates
  • Random selection from 18 candidates

match (alias1.kind, alias2.kind) {
(ty::Projection { def_id: def_id1 }, ty::Projection { def_id: def_id2 }) => {
(ty::Projection { def_id: def_id1 }, ty::Projection { def_id: def_id2 })
if !self.tcx.is_impl_trait_in_trait(def_id1)

@BoxyUwU BoxyUwU Aug 31, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment about why this codepath doesn't work for RPITITs

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added it.

@chenyukang
chenyukang force-pushed the yukang-fix-161915-rpitit-mismatch-ice branch from ab1eb7f to 2da3240 Compare August 31, 2026 14:59
@theemathas theemathas added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

1.99 beta crater regression: ICE with "item_name: no name for DefPath"

4 participants