Skip to content

fix ICE when {{root}} appears in import suggestions#150155

Merged
bors merged 1 commit intorust-lang:mainfrom
Aditya-PS-05:fix/ice-150103-root-in-suggestions
Dec 22, 2025
Merged

fix ICE when {{root}} appears in import suggestions#150155
bors merged 1 commit intorust-lang:mainfrom
Aditya-PS-05:fix/ice-150103-root-in-suggestions

Conversation

@Aditya-PS-05
Copy link
Contributor

@Aditya-PS-05 Aditya-PS-05 commented Dec 19, 2025

Fixes #150103

When wrong nested imports like use A::{::Fish} were used, the internal {{root}} would appear in diagnostic suggestions, causing an ICE in join_path_idents which asserted that {{root}} should only appear at the start of a path.

r? @matthiaskrgr

@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 Dec 19, 2025
@rust-log-analyzer

This comment has been minimized.

@Aditya-PS-05 Aditya-PS-05 force-pushed the fix/ice-150103-root-in-suggestions branch from aee12c6 to 678f581 Compare December 19, 2025 13:59
@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 22, 2025

📌 Commit 678f581 has been approved by estebank

It is now in the queue for this repository.

@bors bors 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 Dec 22, 2025
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Dec 22, 2025
…n-suggestions, r=estebank

fix ICE when {{root}} appears in import suggestions

Fixes rust-lang#150103

When wrong nested imports like `use A::{::Fish}` were used, the internal {{root}} would appear in diagnostic suggestions, causing an ICE in `join_path_idents` which asserted that **{{root}} should only appear at the start of a path**.

r? `@matthiaskrgr`
bors added a commit that referenced this pull request Dec 22, 2025
…uwer

Rollup of 4 pull requests

Successful merges:

 - #150098 (remove `legacy_const_generic_args` cache)
 - #150155 (fix ICE when {{root}} appears in import suggestions)
 - #150267 (`rust-analyzer` subtree update)
 - #150274 (Fix typo)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 520a3c4 into rust-lang:main Dec 22, 2025
11 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Dec 22, 2025
rust-timer added a commit that referenced this pull request Dec 22, 2025
Rollup merge of #150155 - Aditya-PS-05:fix/ice-150103-root-in-suggestions, r=estebank

fix ICE when {{root}} appears in import suggestions

Fixes #150103

When wrong nested imports like `use A::{::Fish}` were used, the internal {{root}} would appear in diagnostic suggestions, causing an ICE in `join_path_idents` which asserted that **{{root}} should only appear at the start of a path**.

r? ``@matthiaskrgr``
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Dec 23, 2025
…uwer

Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#150098 (remove `legacy_const_generic_args` cache)
 - rust-lang/rust#150155 (fix ICE when {{root}} appears in import suggestions)
 - rust-lang/rust#150267 (`rust-analyzer` subtree update)
 - rust-lang/rust#150274 (Fix typo)

r? `@ghost`
`@rustbot` modify labels: rollup
github-actions bot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Dec 25, 2025
…uwer

Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#150098 (remove `legacy_const_generic_args` cache)
 - rust-lang/rust#150155 (fix ICE when {{root}} appears in import suggestions)
 - rust-lang/rust#150267 (`rust-analyzer` subtree update)
 - rust-lang/rust#150274 (Fix typo)

r? `@ghost`
`@rustbot` modify labels: rollup
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: ast: {{root}} != {{root}}

6 participants