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
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0659]: `A` is ambiguous
4
4
LL | A!();
5
5
| ^ ambiguous name
6
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
7
+
= 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
8
8
note: `A` could refer to the macro defined here
9
9
--> $DIR/issue-114682-1.rs:7:9
10
10
|
@@ -15,12 +15,13 @@ LL | | }
15
15
...
16
16
LL | mac!();
17
17
| ------ in this macro invocation
18
+
= help: use `crate::A` to refer to this macro unambiguously
18
19
note: `A` could also refer to the macro imported here
19
20
--> $DIR/issue-114682-1.rs:19:9
20
21
|
21
22
LL | pub use m::*;
22
23
| ^^^^
23
-
= help: consider adding an explicit import of `A` to disambiguate
24
+
= help: use `crate::A` to refer to this macro unambiguously
24
25
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/imports/local-modularized-tricky-fail-1.stderr
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0659]: `exported` is ambiguous
4
4
LL | exported!();
5
5
| ^^^^^^^^ ambiguous name
6
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
7
+
= 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
8
8
note: `exported` could refer to the macro defined here
9
9
--> $DIR/local-modularized-tricky-fail-1.rs:6:5
10
10
|
@@ -15,12 +15,13 @@ LL | | }
15
15
...
16
16
LL | define_exported!();
17
17
| ------------------ in this macro invocation
18
+
= help: use `crate::exported` to refer to this macro unambiguously
18
19
note: `exported` could also refer to the macro imported here
19
20
--> $DIR/local-modularized-tricky-fail-1.rs:23:5
20
21
|
21
22
LL | use inner1::*;
22
23
| ^^^^^^^^^
23
-
= help: consider adding an explicit import of `exported` to disambiguate
24
+
= help: use `crate::exported` to refer to this macro unambiguously
24
25
= note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/imports/macro-paths.stderr
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0659]: `bar` is ambiguous
4
4
LL | bar::m! {
5
5
| ^^^ ambiguous name
6
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
7
+
= 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
8
8
note: `bar` could refer to the module defined here
9
9
--> $DIR/macro-paths.rs:14:9
10
10
|
@@ -15,7 +15,6 @@ note: `bar` could also refer to the module imported here
15
15
|
16
16
LL | use foo::*;
17
17
| ^^^^^^
18
-
= help: consider adding an explicit import of `bar` to disambiguate
Copy file name to clipboardExpand all lines: tests/ui/imports/macros.stderr
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,19 @@ error[E0659]: `m` is ambiguous
4
4
LL | m! {
5
5
| ^ ambiguous name
6
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
7
+
= 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
8
8
note: `m` could refer to the macro imported here
9
9
--> $DIR/macros.rs:17:13
10
10
|
11
11
LL | use crate::foo::m;
12
12
| ^^^^^^^^^^^^^
13
+
= help: use `self::m` to refer to this macro unambiguously
13
14
note: `m` could also refer to the macro imported here
14
15
--> $DIR/macros.rs:15:9
15
16
|
16
17
LL | use two_macros::*;
17
18
| ^^^^^^^^^^^^^
18
-
= help: consider adding an explicit import of `m` to disambiguate
19
+
= help: use `self::m` to refer to this macro unambiguously
0 commit comments