Skip to content

fix: fix no resolution for self import in namespaced crates - #160518

Open
JayanAXHF wants to merge 1 commit into
rust-lang:mainfrom
JayanAXHF:fix/fix-ice-160512
Open

fix: fix no resolution for self import in namespaced crates#160518
JayanAXHF wants to merge 1 commit into
rust-lang:mainfrom
JayanAXHF:fix/fix-ice-160512

Conversation

@JayanAXHF

@JayanAXHF JayanAXHF commented Aug 4, 2026

Copy link
Copy Markdown
Member

closes #160512

Add a check for ident.name == kw::SelfLower in ModuleOrUniformRoot::OpenModule branch with correct Res

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

rustbot commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

r? @folkertdev

rustbot has assigned @folkertdev.
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 20 candidates

//@ aux-crate:my_api::utils=namespaced_crate_utils.rs

use alias::utils;
use my_api as alias;

@mu001999 mu001999 Aug 5, 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.

Test should contain trailing self.

View changes since the review

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.

Yes, and it would also be good to have test cases for my_api::super and my_api::crate.

@folkertdev

Copy link
Copy Markdown
Contributor

r? petrochenkov

@rustbot rustbot assigned petrochenkov and unassigned folkertdev Aug 5, 2026
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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]: no resolution for an import

5 participants