1
1
error[E0659]: `m` is ambiguous
2
- --> $DIR/restricted-shadowing-legacy.rs:93 :13
2
+ --> $DIR/restricted-shadowing-legacy.rs:101 :13
3
3
|
4
4
LL | m!(); //~ ERROR `m` is ambiguous
5
5
| ^
6
6
|
7
7
note: `m` could refer to the name defined here
8
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
8
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
9
9
|
10
- LL | macro_rules! m { () => {} }
11
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
+ LL | macro_rules! m { () => { Right } }
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
...
13
13
LL | include!();
14
14
| ----------- in this macro invocation
15
15
note: `m` could also refer to the name defined here
16
- --> $DIR/restricted-shadowing-legacy.rs:89 :9
16
+ --> $DIR/restricted-shadowing-legacy.rs:97 :9
17
17
|
18
18
LL | macro_rules! m { () => {} }
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,21 +23,21 @@ LL | include!();
23
23
= note: macro-expanded macros do not shadow
24
24
25
25
error[E0659]: `m` is ambiguous
26
- --> $DIR/restricted-shadowing-legacy.rs:131 :42
26
+ --> $DIR/restricted-shadowing-legacy.rs:139 :42
27
27
|
28
28
LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
29
29
| ^
30
30
|
31
31
note: `m` could refer to the name defined here
32
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
32
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
33
33
|
34
- LL | macro_rules! m { () => {} }
35
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
+ LL | macro_rules! m { () => { Right } }
35
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
...
37
37
LL | include!();
38
38
| ----------- in this macro invocation
39
39
note: `m` could also refer to the name defined here
40
- --> $DIR/restricted-shadowing-legacy.rs:127 :9
40
+ --> $DIR/restricted-shadowing-legacy.rs:135 :9
41
41
|
42
42
LL | macro_rules! m { () => {} }
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -47,21 +47,21 @@ LL | include!();
47
47
= note: macro-expanded macros do not shadow
48
48
49
49
error[E0659]: `m` is ambiguous
50
- --> $DIR/restricted-shadowing-legacy.rs:140 :9
50
+ --> $DIR/restricted-shadowing-legacy.rs:148 :9
51
51
|
52
52
LL | m!(); //~ ERROR `m` is ambiguous
53
53
| ^
54
54
|
55
55
note: `m` could refer to the name defined here
56
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
56
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
57
57
|
58
- LL | macro_rules! m { () => {} }
59
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
+ LL | macro_rules! m { () => { Right } }
59
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
60
...
61
61
LL | include!();
62
62
| ----------- in this macro invocation
63
63
note: `m` could also refer to the name defined here
64
- --> $DIR/restricted-shadowing-legacy.rs:136 :9
64
+ --> $DIR/restricted-shadowing-legacy.rs:144 :9
65
65
|
66
66
LL | macro_rules! m { () => {} }
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -71,93 +71,93 @@ LL | include!();
71
71
= note: macro-expanded macros do not shadow
72
72
73
73
error[E0659]: `m` is ambiguous
74
- --> $DIR/restricted-shadowing-legacy.rs:156 :9
74
+ --> $DIR/restricted-shadowing-legacy.rs:164 :9
75
75
|
76
76
LL | m!(); //~ ERROR `m` is ambiguous
77
77
| ^
78
78
|
79
79
note: `m` could refer to the name defined here
80
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
80
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
81
81
|
82
- LL | macro_rules! m { () => {} }
83
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
+ LL | macro_rules! m { () => { Right } }
83
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
84
...
85
85
LL | include!();
86
86
| ----------- in this macro invocation
87
87
note: `m` could also refer to the name defined here
88
- --> $DIR/restricted-shadowing-legacy.rs:77 :9
88
+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
89
89
|
90
- LL | macro_rules! m { () => {} }
91
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
+ LL | macro_rules! m { () => { Wrong } }
91
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
92
...
93
93
LL | include!();
94
94
| ----------- in this macro invocation
95
95
= note: macro-expanded macros do not shadow
96
96
97
97
error[E0659]: `m` is ambiguous
98
- --> $DIR/restricted-shadowing-legacy.rs:172 :13
98
+ --> $DIR/restricted-shadowing-legacy.rs:180 :13
99
99
|
100
100
LL | m!(); //~ ERROR `m` is ambiguous
101
101
| ^
102
102
|
103
103
note: `m` could refer to the name defined here
104
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
104
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
105
105
|
106
- LL | macro_rules! m { () => {} }
107
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
+ LL | macro_rules! m { () => { Right } }
107
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
108
...
109
109
LL | include!();
110
110
| ----------- in this macro invocation
111
111
note: `m` could also refer to the name defined here
112
- --> $DIR/restricted-shadowing-legacy.rs:77 :9
112
+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
113
113
|
114
- LL | macro_rules! m { () => {} }
115
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
+ LL | macro_rules! m { () => { Wrong } }
115
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
116
...
117
117
LL | include!();
118
118
| ----------- in this macro invocation
119
119
= note: macro-expanded macros do not shadow
120
120
121
121
error[E0659]: `m` is ambiguous
122
- --> $DIR/restricted-shadowing-legacy.rs:210 :42
122
+ --> $DIR/restricted-shadowing-legacy.rs:218 :42
123
123
|
124
124
LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
125
125
| ^
126
126
|
127
127
note: `m` could refer to the name defined here
128
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
128
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
129
129
|
130
- LL | macro_rules! m { () => {} }
131
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
+ LL | macro_rules! m { () => { Right } }
131
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
132
...
133
133
LL | include!();
134
134
| ----------- in this macro invocation
135
135
note: `m` could also refer to the name defined here
136
- --> $DIR/restricted-shadowing-legacy.rs:77 :9
136
+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
137
137
|
138
- LL | macro_rules! m { () => {} }
139
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
138
+ LL | macro_rules! m { () => { Wrong } }
139
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140
140
...
141
141
LL | include!();
142
142
| ----------- in this macro invocation
143
143
= note: macro-expanded macros do not shadow
144
144
145
145
error[E0659]: `m` is ambiguous
146
- --> $DIR/restricted-shadowing-legacy.rs:224 :9
146
+ --> $DIR/restricted-shadowing-legacy.rs:232 :9
147
147
|
148
148
LL | m!(); //~ ERROR `m` is ambiguous
149
149
| ^
150
150
|
151
151
note: `m` could refer to the name defined here
152
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
152
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
153
153
|
154
- LL | macro_rules! m { () => {} }
155
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
154
+ LL | macro_rules! m { () => { Right } }
155
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
156
...
157
157
LL | include!();
158
158
| ----------- in this macro invocation
159
159
note: `m` could also refer to the name defined here
160
- --> $DIR/restricted-shadowing-legacy.rs:219 :13
160
+ --> $DIR/restricted-shadowing-legacy.rs:227 :13
161
161
|
162
162
LL | macro_rules! m { () => {} }
163
163
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -167,21 +167,21 @@ LL | include!();
167
167
= note: macro-expanded macros do not shadow
168
168
169
169
error[E0659]: `m` is ambiguous
170
- --> $DIR/restricted-shadowing-legacy.rs:254 :42
170
+ --> $DIR/restricted-shadowing-legacy.rs:262 :42
171
171
|
172
172
LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
173
173
| ^
174
174
|
175
175
note: `m` could refer to the name defined here
176
- --> $DIR/restricted-shadowing-legacy.rs:80 :9
176
+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
177
177
|
178
- LL | macro_rules! m { () => {} }
179
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
+ LL | macro_rules! m { () => { Right } }
179
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180
180
...
181
181
LL | include!();
182
182
| ----------- in this macro invocation
183
183
note: `m` could also refer to the name defined here
184
- --> $DIR/restricted-shadowing-legacy.rs:249 :13
184
+ --> $DIR/restricted-shadowing-legacy.rs:257 :13
185
185
|
186
186
LL | macro_rules! m { () => {} }
187
187
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments