You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: ambiguous because of a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution
8
-
note: `A` could refer to the macro defined here
9
-
--> $DIR/issue-114682-1.rs:7:9
10
-
|
11
-
LL | / pub macro A() {
12
-
LL | | println!("non import")
13
-
LL | | }
14
-
| |_________^
15
-
...
16
-
LL | mac!();
17
-
| ------ in this macro invocation
18
-
note: `A` could also refer to the macro imported here
19
-
--> $DIR/issue-114682-1.rs:19:9
20
-
|
21
-
LL | pub use m::*;
22
-
| ^^^^
23
-
= help: consider adding an explicit import of `A` to disambiguate
24
-
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
25
-
26
1
error[E0659]: `A` is ambiguous
27
2
--> $DIR/issue-114682-1.rs:23:5
28
3
|
@@ -49,6 +24,6 @@ LL | pub use m::*;
49
24
= help: use `crate::A` to refer to this macro unambiguously
50
25
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
51
26
52
-
error: aborting due to 2 previous errors
27
+
error: aborting due to 1 previous error
53
28
54
29
For more information about this error, try `rustc --explain E0659`.
Copy file name to clipboardExpand all lines: tests/ui/imports/local-modularized-tricky-fail-1.stderr
+3-28Lines changed: 3 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,3 @@
1
-
error[E0659]: `exported` is ambiguous
2
-
--> $DIR/local-modularized-tricky-fail-1.rs:29:1
3
-
|
4
-
LL | exported!();
5
-
| ^^^^^^^^ ambiguous name
6
-
|
7
-
= note: ambiguous because of a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution
8
-
note: `exported` could refer to the macro defined here
9
-
--> $DIR/local-modularized-tricky-fail-1.rs:6:5
10
-
|
11
-
LL | / macro_rules! exported {
12
-
LL | | () => ()
13
-
LL | | }
14
-
| |_____^
15
-
...
16
-
LL | define_exported!();
17
-
| ------------------ in this macro invocation
18
-
note: `exported` could also refer to the macro imported here
19
-
--> $DIR/local-modularized-tricky-fail-1.rs:23:5
20
-
|
21
-
LL | use inner1::*;
22
-
| ^^^^^^^^^
23
-
= help: consider adding an explicit import of `exported` to disambiguate
24
-
= note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
25
-
26
1
error[E0659]: `exported` is ambiguous
27
2
--> $DIR/local-modularized-tricky-fail-1.rs:29:1
28
3
|
@@ -50,7 +25,7 @@ LL | use inner1::*;
50
25
= note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
51
26
52
27
error[E0659]: `panic` is ambiguous
53
-
--> $DIR/local-modularized-tricky-fail-1.rs:37:5
28
+
--> $DIR/local-modularized-tricky-fail-1.rs:36:5
54
29
|
55
30
LL | panic!();
56
31
| ^^^^^ ambiguous name
@@ -71,7 +46,7 @@ LL | define_panic!();
71
46
= note: this error originates in the macro `define_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
72
47
73
48
error[E0659]: `include` is ambiguous
74
-
--> $DIR/local-modularized-tricky-fail-1.rs:48:1
49
+
--> $DIR/local-modularized-tricky-fail-1.rs:47:1
75
50
|
76
51
LL | include!();
77
52
| ^^^^^^^ ambiguous name
@@ -91,6 +66,6 @@ LL | define_include!();
91
66
= help: use `crate::include` to refer to this macro unambiguously
92
67
= note: this error originates in the macro `define_include` (in Nightly builds, run with -Z macro-backtrace for more info)
93
68
94
-
error: aborting due to 4 previous errors
69
+
error: aborting due to 3 previous errors
95
70
96
71
For more information about this error, try `rustc --explain E0659`.
= note: ambiguous because of a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution
8
-
note: `m` could refer to the macro imported here
9
-
--> $DIR/macros.rs:17:13
10
-
|
11
-
LL | use crate::foo::m;
12
-
| ^^^^^^^^^^^^^
13
-
note: `m` could also refer to the macro imported here
14
-
--> $DIR/macros.rs:15:9
15
-
|
16
-
LL | use two_macros::*;
17
-
| ^^^^^^^^^^^^^
18
-
= help: consider adding an explicit import of `m` to disambiguate
19
-
20
1
error[E0659]: `m` is ambiguous
21
2
--> $DIR/macros.rs:29:9
22
3
|
@@ -36,6 +17,6 @@ LL | use two_macros::m;
36
17
| ^^^^^^^^^^^^^
37
18
= help: use `self::m` to refer to this macro unambiguously
38
19
39
-
error: aborting due to 2 previous errors
20
+
error: aborting due to 1 previous error
40
21
41
22
For more information about this error, try `rustc --explain E0659`.
0 commit comments