fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
2.8 KiB87 linesraw
1error[E0659]: `exported` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
2  --> $DIR/local-modularized-tricky-fail-1.rs:28:1
3   |
4LL | exported!();
5   | ^^^^^^^^ ambiguous name
6   |
7note: `exported` could refer to the macro defined here
8  --> $DIR/local-modularized-tricky-fail-1.rs:5:5
9   |
10LL | /     macro_rules! exported {
11LL | |         () => ()
12LL | |     }
13   | |_____^
14...
15LL |       define_exported!();
16   |       ------------------- in this macro invocation
17note: `exported` could also refer to the macro imported here
18  --> $DIR/local-modularized-tricky-fail-1.rs:22:5
19   |
20LL | use inner1::*;
21   |     ^^^^^^^^^
22   = help: consider adding an explicit import of `exported` to disambiguate
23
24error[E0659]: `exported` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
25  --> $DIR/local-modularized-tricky-fail-1.rs:28:1
26   |
27LL | exported!();
28   | ^^^^^^^^ ambiguous name
29   |
30note: `exported` could refer to the macro defined here
31  --> $DIR/local-modularized-tricky-fail-1.rs:5:5
32   |
33LL | /     macro_rules! exported {
34LL | |         () => ()
35LL | |     }
36   | |_____^
37...
38LL |       define_exported!();
39   |       ------------------- in this macro invocation
40note: `exported` could also refer to the macro imported here
41  --> $DIR/local-modularized-tricky-fail-1.rs:22:5
42   |
43LL | use inner1::*;
44   |     ^^^^^^^^^
45   = help: consider adding an explicit import of `exported` to disambiguate
46
47error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
48  --> $DIR/local-modularized-tricky-fail-1.rs:36:5
49   |
50LL |     panic!();
51   |     ^^^^^ ambiguous name
52   |
53   = note: `panic` could refer to a macro from prelude
54note: `panic` could also refer to the macro defined here
55  --> $DIR/local-modularized-tricky-fail-1.rs:11:5
56   |
57LL | /     macro_rules! panic {
58LL | |         () => ()
59LL | |     }
60   | |_____^
61...
62LL |       define_panic!();
63   |       ---------------- in this macro invocation
64   = help: use `crate::panic` to refer to this macro unambiguously
65
66error[E0659]: `include` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
67  --> $DIR/local-modularized-tricky-fail-1.rs:47:1
68   |
69LL | include!();
70   | ^^^^^^^ ambiguous name
71   |
72   = note: `include` could refer to a macro from prelude
73note: `include` could also refer to the macro defined here
74  --> $DIR/local-modularized-tricky-fail-1.rs:17:5
75   |
76LL | /     macro_rules! include {
77LL | |         () => ()
78LL | |     }
79   | |_____^
80...
81LL |       define_include!();
82   |       ------------------ in this macro invocation
83   = help: use `crate::include` to refer to this macro unambiguously
84
85error: aborting due to 4 previous errors
86
87For more information about this error, try `rustc --explain E0659`.