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/local-modularized-tricky-fail-1.stderr
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,7 @@ LL | panic!();
30
30
| ^^^^^ ambiguous name
31
31
|
32
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: `panic` could refer to a macro from prelude
34
-
note: `panic` could also refer to the macro defined here
33
+
note: `panic` could refer to the macro defined here
35
34
--> $DIR/local-modularized-tricky-fail-1.rs:12:5
36
35
|
37
36
LL | / macro_rules! panic {
@@ -42,6 +41,8 @@ LL | | }
42
41
LL | define_panic!();
43
42
| --------------- in this macro invocation
44
43
= help: use `crate::panic` to refer to this macro unambiguously
44
+
note: `panic` could also refer to a macro from prelude
45
+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
45
46
= note: this error originates in the macro `define_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
46
47
47
48
error[E0659]: `include` is ambiguous
@@ -51,8 +52,7 @@ LL | include!();
51
52
| ^^^^^^^ ambiguous name
52
53
|
53
54
= 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
54
-
= note: `include` could refer to a macro from prelude
55
-
note: `include` could also refer to the macro defined here
55
+
note: `include` could refer to the macro defined here
56
56
--> $DIR/local-modularized-tricky-fail-1.rs:18:5
57
57
|
58
58
LL | / macro_rules! include {
@@ -63,6 +63,8 @@ LL | | }
63
63
LL | define_include!();
64
64
| ----------------- in this macro invocation
65
65
= help: use `crate::include` to refer to this macro unambiguously
66
+
note: `include` could also refer to a macro from prelude
67
+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
66
68
= note: this error originates in the macro `define_include` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/imports/shadow_builtin_macros.stderr
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,15 @@ LL | fn f() { panic!(); }
5
5
| ^^^^^ ambiguous name
6
6
|
7
7
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
8
-
= note: `panic` could refer to a macro from prelude
9
-
note: `panic` could also refer to the macro imported here
8
+
note: `panic` could refer to the macro imported here
10
9
--> $DIR/shadow_builtin_macros.rs:14:9
11
10
|
12
11
LL | use crate::foo::*;
13
12
| ^^^^^^^^^^^^^
14
13
= help: consider adding an explicit import of `panic` to disambiguate
15
14
= help: or use `self::panic` to refer to this macro unambiguously
15
+
note: `panic` could also refer to a macro from prelude
16
+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
16
17
17
18
error[E0659]: `panic` is ambiguous
18
19
--> $DIR/shadow_builtin_macros.rs:33:5
@@ -21,15 +22,16 @@ LL | panic!();
21
22
| ^^^^^ ambiguous name
22
23
|
23
24
= 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
24
-
= note: `panic` could refer to a macro from prelude
25
-
note: `panic` could also refer to the macro defined here
25
+
note: `panic` could refer to the macro defined here
26
26
--> $DIR/shadow_builtin_macros.rs:30:9
27
27
|
28
28
LL | macro_rules! panic { () => {} }
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
LL | } }
31
31
LL | m!();
32
32
| ---- in this macro invocation
33
+
note: `panic` could also refer to a macro from prelude
34
+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
33
35
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
34
36
35
37
error[E0659]: `n` is ambiguous
@@ -59,13 +61,14 @@ LL | fn f() { panic!(); }
59
61
| ^^^^^ ambiguous name
60
62
|
61
63
= 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
62
-
= note: `panic` could refer to a macro from prelude
63
-
note: `panic` could also refer to the macro imported here
64
+
note: `panic` could refer to the macro imported here
64
65
--> $DIR/shadow_builtin_macros.rs:19:26
65
66
|
66
67
LL | ::two_macros::m!(use crate::foo::panic;);
67
68
| ^^^^^^^^^^^^^^^^^
68
69
= help: use `self::panic` to refer to this macro unambiguously
70
+
note: `panic` could also refer to a macro from prelude
0 commit comments