-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Derive macro glob import flagged as ambiguous with implicit prelude import #150165
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code:
I expected to see this happen: compile successfully, matching the behavior on stable and
nightly-2025-12-14. I expect that implicit imports from the prelude would be lower priority (and thus not ambiguous) compared to glob imports written by the user.Instead, this happened:
Version it worked on
It most recently worked on:
nightly-2025-12-14Version with regression
cargo +nightly-2025-12-15 --version --verbose:@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged