Skip to content

Fix ICE of getting item name from RPITIT - #162071

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
chenyukang:yukang-fix-161915-rpitit-mismatch-ice
Sep 1, 2026
Merged

Fix ICE of getting item name from RPITIT#162071
rust-bors[bot] merged 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
@estebank

estebank commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2da3240 has been approved by estebank

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2026
Comment on lines +9 to +10
LL | | true => T::create(),
| | ----------- this is found to be of type `impl Form`

@estebank estebank Sep 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(Thinking out loud) This is a tiny papercut, where we use the name of the opaque type that <T as Parameter>::create() returns, which happens to coincide with the return type of forms_at_phase, obscuring what's happening slightly.

View changes since the review

rust-bors Bot pushed a commit that referenced this pull request Sep 1, 2026
…uwer

Rollup of 11 pull requests

Successful merges:

 - #151618 (rustdoc: add `--print` option)
 - #161287 (Update `icu_list` dependency to 2.3)
 - #161767 (change DEFAULT_STACK_SIZE to be 32MB on s390x)
 - #161968 (Diverse offload fixes)
 - #161971 (Remove -Zsaturating-float-casts flag)
 - #162071 (Fix ICE of getting item name from RPITIT)
 - #161209 (Rework `next_power_of_two` to always be `1 << …`)
 - #162073 (Change some `Infallible` to `!` in std)
 - #162086 (Remove `gate_check` from `AttributeStability::Unstable`)
 - #162102 (`alloc` crate: shrink undocumented `unsafe` blocks)
 - #162110 (make it clear that Range cannot represent arbitrary ranges)
@rust-bors
rust-bors Bot merged commit 80c5ce6 into rust-lang:main Sep 1, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 1, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 1, 2026
Rollup merge of #162071 - chenyukang:yukang-fix-161915-rpitit-mismatch-ice, r=estebank

Fix ICE of getting item name from RPITIT

Fixes #161915

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

rustbot commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

beta backport approved as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle. Backport labels are handled by them.

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Sep 3, 2026
@cuviper cuviper mentioned this pull request Sep 3, 2026
@cuviper cuviper modified the milestones: 1.100.0, 1.99.0 Sep 3, 2026
@cuviper cuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 3, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
[beta] backports

- Avoid arming the Windows TLS destructor guard in fibers #161451
- (partial) stdarch subtree update #161558
- Check to ensure we're running against the correct LLVM version #161788
- Make the LLVM version mismatch ICE a fatal error #162034
- Revert "Add `rustc_test_entrypoint_marker`" #161931
- Fix ICE of getting name from RPITIT #162071
- Update LLVM submodule #162133
- Revert "Implement Debug for C-like enums with a concatenated string" #162164

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

Labels

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

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

6 participants