|
1 | | -error[E0659]: `HeaderMap` is ambiguous |
| 1 | +error: `HeaderMap` is ambiguous |
2 | 2 | --> $DIR/import-after-macro-expand-13.rs:3:15 |
3 | 3 | | |
4 | 4 | LL | use crate::a::HeaderMap; |
5 | 5 | | ^^^^^^^^^ ambiguous name |
6 | 6 | | |
| 7 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 8 | + = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> |
7 | 9 | = note: ambiguous because of multiple glob imports of a name in the same module |
8 | 10 | note: `HeaderMap` could refer to the struct imported here |
9 | | - --> $DIR/import-after-macro-expand-13.rs:17:13 |
| 11 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
10 | 12 | | |
11 | 13 | LL | pub use crate::b::*; |
12 | 14 | | ^^^^^^^^^^^ |
13 | 15 | = help: consider adding an explicit import of `HeaderMap` to disambiguate |
14 | 16 | note: `HeaderMap` could also refer to the struct imported here |
15 | | - --> $DIR/import-after-macro-expand-13.rs:17:13 |
| 17 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
16 | 18 | | |
17 | 19 | LL | pub use crate::b::*; |
18 | 20 | | ^^^^^^^^^^^ |
19 | 21 | = help: consider adding an explicit import of `HeaderMap` to disambiguate |
| 22 | + = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default |
20 | 23 |
|
21 | | -error[E0659]: `HeaderMap` is ambiguous |
22 | | - --> $DIR/import-after-macro-expand-13.rs:21:34 |
| 24 | +error: `HeaderMap` is ambiguous |
| 25 | + --> $DIR/import-after-macro-expand-13.rs:22:34 |
23 | 26 | | |
24 | 27 | LL | let h: crate::b::HeaderMap = HeaderMap; |
25 | 28 | | ^^^^^^^^^ ambiguous name |
26 | 29 | | |
| 30 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 31 | + = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> |
27 | 32 | = note: ambiguous because of multiple glob imports of a name in the same module |
28 | 33 | note: `HeaderMap` could refer to the unit struct imported here |
29 | | - --> $DIR/import-after-macro-expand-13.rs:17:13 |
| 34 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
30 | 35 | | |
31 | 36 | LL | pub use crate::b::*; |
32 | 37 | | ^^^^^^^^^^^ |
33 | 38 | = help: consider adding an explicit import of `HeaderMap` to disambiguate |
34 | 39 | note: `HeaderMap` could also refer to the unit struct imported here |
35 | | - --> $DIR/import-after-macro-expand-13.rs:17:13 |
| 40 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
36 | 41 | | |
37 | 42 | LL | pub use crate::b::*; |
38 | 43 | | ^^^^^^^^^^^ |
39 | 44 | = help: consider adding an explicit import of `HeaderMap` to disambiguate |
40 | 45 |
|
41 | | -error[E0308]: mismatched types |
42 | | - --> $DIR/import-after-macro-expand-13.rs:21:34 |
| 46 | +error: aborting due to 2 previous errors |
| 47 | + |
| 48 | +Future incompatibility report: Future breakage diagnostic: |
| 49 | +error: `HeaderMap` is ambiguous |
| 50 | + --> $DIR/import-after-macro-expand-13.rs:3:15 |
43 | 51 | | |
44 | | -LL | let h: crate::b::HeaderMap = HeaderMap; |
45 | | - | ------------------- ^^^^^^^^^ expected `b::HeaderMap`, found `http::HeaderMap` |
46 | | - | | |
47 | | - | expected due to this |
| 52 | +LL | use crate::a::HeaderMap; |
| 53 | + | ^^^^^^^^^ ambiguous name |
48 | 54 | | |
49 | | - = note: `http::HeaderMap` and `b::HeaderMap` have similar names, but are actually distinct types |
50 | | -note: `http::HeaderMap` is defined in module `crate::b::http` of the current crate |
51 | | - --> $DIR/import-after-macro-expand-13.rs:8:9 |
| 55 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 56 | + = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> |
| 57 | + = note: ambiguous because of multiple glob imports of a name in the same module |
| 58 | +note: `HeaderMap` could refer to the struct imported here |
| 59 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
52 | 60 | | |
53 | | -LL | pub struct HeaderMap; |
54 | | - | ^^^^^^^^^^^^^^^^^^^^ |
55 | | -note: `b::HeaderMap` is defined in module `crate::b` of the current crate |
56 | | - --> $DIR/import-after-macro-expand-13.rs:13:5 |
| 61 | +LL | pub use crate::b::*; |
| 62 | + | ^^^^^^^^^^^ |
| 63 | + = help: consider adding an explicit import of `HeaderMap` to disambiguate |
| 64 | +note: `HeaderMap` could also refer to the struct imported here |
| 65 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
57 | 66 | | |
58 | | -LL | pub struct HeaderMap; |
59 | | - | ^^^^^^^^^^^^^^^^^^^^ |
| 67 | +LL | pub use crate::b::*; |
| 68 | + | ^^^^^^^^^^^ |
| 69 | + = help: consider adding an explicit import of `HeaderMap` to disambiguate |
| 70 | + = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default |
60 | 71 |
|
61 | | -error: aborting due to 3 previous errors |
| 72 | +Future breakage diagnostic: |
| 73 | +error: `HeaderMap` is ambiguous |
| 74 | + --> $DIR/import-after-macro-expand-13.rs:22:34 |
| 75 | + | |
| 76 | +LL | let h: crate::b::HeaderMap = HeaderMap; |
| 77 | + | ^^^^^^^^^ ambiguous name |
| 78 | + | |
| 79 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 80 | + = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> |
| 81 | + = note: ambiguous because of multiple glob imports of a name in the same module |
| 82 | +note: `HeaderMap` could refer to the unit struct imported here |
| 83 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
| 84 | + | |
| 85 | +LL | pub use crate::b::*; |
| 86 | + | ^^^^^^^^^^^ |
| 87 | + = help: consider adding an explicit import of `HeaderMap` to disambiguate |
| 88 | +note: `HeaderMap` could also refer to the unit struct imported here |
| 89 | + --> $DIR/import-after-macro-expand-13.rs:18:13 |
| 90 | + | |
| 91 | +LL | pub use crate::b::*; |
| 92 | + | ^^^^^^^^^^^ |
| 93 | + = help: consider adding an explicit import of `HeaderMap` to disambiguate |
| 94 | + = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default |
62 | 95 |
|
63 | | -Some errors have detailed explanations: E0308, E0659. |
64 | | -For more information about an error, try `rustc --explain E0308`. |
|
0 commit comments