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