d8371c61e6
resolve: Simplify treatment of ambiguity errors If we have a glob conflict like this ```rust mod m1 { struct S; } mod m2 { struct S; } use m1::*; use m2::*; ``` we treat it as a special "ambiguity item" that's not an error by itself, but produces an error when actually used. ```rust use m1::*; // primary use m2::*; // secondary => ambiguity S(m1::S, m2::S); ``` Ambiguity items were *sometimes* treated as their primary items for error recovery, but pretty irregularly. After this PR they are always treated as their primary items, except that - If an ambiguity item is marked as used, then it still produces an error. - Ambiguity items are still filtered away when exported to other crates (which is also a use in some sense). |
||
---|---|---|
.. | ||
auxiliary | ||
duplicate.rs | ||
duplicate.stderr | ||
extern-crate-self-fail.rs | ||
extern-crate-self-fail.stderr | ||
extern-crate-self-pass.rs | ||
extern-prelude-extern-crate-absolute-expanded.rs | ||
extern-prelude-extern-crate-cfg.rs | ||
extern-prelude-extern-crate-fail.rs | ||
extern-prelude-extern-crate-fail.stderr | ||
extern-prelude-extern-crate-pass.rs | ||
extern-prelude-extern-crate-restricted-shadowing.rs | ||
extern-prelude-extern-crate-restricted-shadowing.stderr | ||
extern-prelude-extern-crate-shadowing.rs | ||
glob-conflict-cross-crate.rs | ||
glob-conflict-cross-crate.stderr | ||
glob-shadowing.rs | ||
glob-shadowing.stderr | ||
import-crate-var.rs | ||
import-crate-var.stderr | ||
import-from-missing.rs | ||
import-from-missing.stderr | ||
import-glob-0.rs | ||
import-glob-0.stderr | ||
import-glob-circular.rs | ||
import-glob-circular.stderr | ||
import-loop-2.rs | ||
import-loop-2.stderr | ||
import-loop.rs | ||
import-loop.stderr | ||
import-prefix-macro-1.rs | ||
import-prefix-macro-1.stderr | ||
import-prefix-macro-2.rs | ||
import-prefix-macro-2.stderr | ||
import-trait-method.rs | ||
import-trait-method.stderr | ||
issue-53140.rs | ||
issue-53269.rs | ||
issue-53269.stderr | ||
issue-53512.rs | ||
issue-53512.stderr | ||
issue-55457.rs | ||
issue-55457.stderr | ||
issue-55811.rs | ||
issue-55884-1.rs | ||
issue-55884-1.stderr | ||
issue-55884-2.rs | ||
issue-55884-2.stderr | ||
issue-56125.rs | ||
issue-56125.stderr | ||
issue-56263.rs | ||
issue-57015.rs | ||
issue-57015.stderr | ||
local-modularized-tricky-fail-1.rs | ||
local-modularized-tricky-fail-1.stderr | ||
local-modularized-tricky-fail-2.rs | ||
local-modularized-tricky-fail-2.stderr | ||
local-modularized-tricky-fail-3.rs | ||
local-modularized-tricky-fail-3.stderr | ||
local-modularized-tricky-pass.rs | ||
local-modularized.rs | ||
macro-paths.rs | ||
macro-paths.stderr | ||
macros.rs | ||
macros.stderr | ||
reexports.rs | ||
reexports.stderr | ||
rfc-1560-warning-cycle.rs | ||
rfc-1560-warning-cycle.stderr | ||
shadow_builtin_macros.rs | ||
shadow_builtin_macros.stderr | ||
unused-macro-use.rs | ||
unused-macro-use.stderr | ||
unused.rs | ||
unused.stderr |