fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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