Order of glob imports affects whether an ambiguity is reported #98467
Labels
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code (2015 edition, a subset of /src/test/ui/imports/duplicate.rs, playground) compiles:
If you reorder the glob imports in
g
, it does not compile (playground):Both versions failed to compile prior to 1.32.0.
I found this while looking at #97584/#47525, which looks very related, but regressed earlier (1.15) - I have a WIP fix for that issue, but it fails on the linked UI test because it makes this error again. I'm mostly opening this to double-check that this change wasn't deliberate (since the change to the UI test's output was blessed).
@rustbot label C-bug T-compiler A-resolve regression-from-stable-to-stable
The text was updated successfully, but these errors were encountered: