11warning: ambiguous glob re-exports
2- --> $DIR/ambiguous-1.rs:11 :13
2+ --> $DIR/ambiguous-1.rs:10 :13
33 |
44LL | pub use self::evp::*;
55 | ^^^^^^^^^^^^ the name `id` in the value namespace is first re-exported here
@@ -9,8 +9,8 @@ LL | pub use self::handwritten::*;
99 |
1010 = note: `#[warn(ambiguous_glob_reexports)]` on by default
1111
12- warning : `id` is ambiguous
13- --> $DIR/ambiguous-1.rs:27 :5
12+ error : `id` is ambiguous
13+ --> $DIR/ambiguous-1.rs:26 :5
1414 |
1515LL | id();
1616 | ^^ ambiguous name
@@ -19,18 +19,42 @@ LL | id();
1919 = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
2020 = note: ambiguous because of multiple glob imports of a name in the same module
2121note: `id` could refer to the function imported here
22- --> $DIR/ambiguous-1.rs:11 :13
22+ --> $DIR/ambiguous-1.rs:10 :13
2323 |
2424LL | pub use self::evp::*;
2525 | ^^^^^^^^^^^^
2626 = help: consider adding an explicit import of `id` to disambiguate
2727note: `id` could also refer to the function imported here
28- --> $DIR/ambiguous-1.rs:13 :13
28+ --> $DIR/ambiguous-1.rs:12 :13
2929 |
3030LL | pub use self::handwritten::*;
3131 | ^^^^^^^^^^^^^^^^^^^^
3232 = help: consider adding an explicit import of `id` to disambiguate
33- = note: `#[warn (ambiguous_glob_imports)]` on by default
33+ = note: `#[deny (ambiguous_glob_imports)]` on by default
3434
35- warning: 2 warnings emitted
35+ error: aborting due to 1 previous error; 1 warning emitted
36+
37+ Future incompatibility report: Future breakage diagnostic:
38+ error: `id` is ambiguous
39+ --> $DIR/ambiguous-1.rs:26:5
40+ |
41+ LL | id();
42+ | ^^ ambiguous name
43+ |
44+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
45+ = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
46+ = note: ambiguous because of multiple glob imports of a name in the same module
47+ note: `id` could refer to the function imported here
48+ --> $DIR/ambiguous-1.rs:10:13
49+ |
50+ LL | pub use self::evp::*;
51+ | ^^^^^^^^^^^^
52+ = help: consider adding an explicit import of `id` to disambiguate
53+ note: `id` could also refer to the function imported here
54+ --> $DIR/ambiguous-1.rs:12:13
55+ |
56+ LL | pub use self::handwritten::*;
57+ | ^^^^^^^^^^^^^^^^^^^^
58+ = help: consider adding an explicit import of `id` to disambiguate
59+ = note: `#[deny(ambiguous_glob_imports)]` on by default
3660
0 commit comments