1
1
warning: ambiguous glob re-exports
2
- --> $DIR/ambiguous-1.rs:11 :13
2
+ --> $DIR/ambiguous-1.rs:10 :13
3
3
|
4
4
LL | pub use self::evp::*;
5
5
| ^^^^^^^^^^^^ the name `id` in the value namespace is first re-exported here
@@ -9,8 +9,8 @@ LL | pub use self::handwritten::*;
9
9
|
10
10
= note: `#[warn(ambiguous_glob_reexports)]` on by default
11
11
12
- warning : `id` is ambiguous
13
- --> $DIR/ambiguous-1.rs:27 :5
12
+ error : `id` is ambiguous
13
+ --> $DIR/ambiguous-1.rs:26 :5
14
14
|
15
15
LL | id();
16
16
| ^^ ambiguous name
@@ -19,18 +19,42 @@ LL | id();
19
19
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
20
20
= note: ambiguous because of multiple glob imports of a name in the same module
21
21
note: `id` could refer to the function imported here
22
- --> $DIR/ambiguous-1.rs:11 :13
22
+ --> $DIR/ambiguous-1.rs:10 :13
23
23
|
24
24
LL | pub use self::evp::*;
25
25
| ^^^^^^^^^^^^
26
26
= help: consider adding an explicit import of `id` to disambiguate
27
27
note: `id` could also refer to the function imported here
28
- --> $DIR/ambiguous-1.rs:13 :13
28
+ --> $DIR/ambiguous-1.rs:12 :13
29
29
|
30
30
LL | pub use self::handwritten::*;
31
31
| ^^^^^^^^^^^^^^^^^^^^
32
32
= 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
34
34
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
36
60
0 commit comments