Skip to content

Address redundant errors for missing crate for nested imports and later uses of crate#153956

Open
yuk1ty wants to merge 2 commits intorust-lang:mainfrom
yuk1ty:fix-redundant-import-errors-nested
Open

Address redundant errors for missing crate for nested imports and later uses of crate#153956
yuk1ty wants to merge 2 commits intorust-lang:mainfrom
yuk1ty:fix-redundant-import-errors-nested

Conversation

@yuk1ty
Copy link
Contributor

@yuk1ty yuk1ty commented Mar 16, 2026

Fixes #153156

Basically I merged redundant E0433 errors into E0432. The change seems to affect other related tests.

The first commit handles the nested import case. The second commit handles to suppress foo::qux() pattern.

@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 Mar 16, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 16, 2026

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
  • compiler expanded to 69 candidates
  • Random selection from 15 candidates

@rustbot

This comment has been minimized.

@yuk1ty yuk1ty marked this pull request as draft March 16, 2026 13:57
@rustbot rustbot 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 Mar 16, 2026
@yuk1ty yuk1ty force-pushed the fix-redundant-import-errors-nested branch 2 times, most recently from ac89d2b to 594e22e Compare March 16, 2026 15:48
@rust-log-analyzer

This comment has been minimized.

@yuk1ty yuk1ty force-pushed the fix-redundant-import-errors-nested branch from 594e22e to 4b6cc82 Compare March 17, 2026 08:30
@rust-log-analyzer

This comment has been minimized.

Track first segments of failed imports and skip late resolution errors
for paths sharing the same prefix. This avoids redundant E0433 after an
E0432 has already been reported for the same missing module, without
suppressing unrelated diagnostics.
@yuk1ty yuk1ty force-pushed the fix-redundant-import-errors-nested branch from 4b6cc82 to 6671a98 Compare March 17, 2026 14:14
@yuk1ty yuk1ty marked this pull request as ready for review March 18, 2026 05:32
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 18, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 20, 2026

☔ The latest upstream changes (presumably #152913) made this pull request unmergeable. Please resolve the merge conflicts.

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.

Too many errors for missing crate for nested imports and later uses of crate

4 participants