@@ -121,19 +121,25 @@ LL | fn mul(self, rhs: Bad) -> Bad {
121
121
| ^^^ help: use the applicable keyword: `Self`
122
122
123
123
error: unnecessary structure name repetition
124
- --> $DIR/use_self.rs:202:56
124
+ --> $DIR/use_self.rs:117:13
125
+ |
126
+ LL | Bad
127
+ | ^^^ help: use the applicable keyword: `Self`
128
+
129
+ error: unnecessary structure name repetition
130
+ --> $DIR/use_self.rs:199:56
125
131
|
126
132
LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127
133
| ^^^ help: use the applicable keyword: `Self`
128
134
129
135
error: unnecessary structure name repetition
130
- --> $DIR/use_self.rs:217 :13
136
+ --> $DIR/use_self.rs:214 :13
131
137
|
132
138
LL | TS(0)
133
139
| ^^ help: use the applicable keyword: `Self`
134
140
135
141
error: unnecessary structure name repetition
136
- --> $DIR/use_self.rs:225 :25
142
+ --> $DIR/use_self.rs:222 :25
137
143
|
138
144
LL | fn new() -> Foo {
139
145
| ^^^ help: use the applicable keyword: `Self`
@@ -142,7 +148,7 @@ LL | use_self_expand!(); // Should lint in local macros
142
148
| ------------------- in this macro invocation
143
149
144
150
error: unnecessary structure name repetition
145
- --> $DIR/use_self.rs:226 :17
151
+ --> $DIR/use_self.rs:223 :17
146
152
|
147
153
LL | Foo {}
148
154
| ^^^ help: use the applicable keyword: `Self`
@@ -151,64 +157,64 @@ LL | use_self_expand!(); // Should lint in local macros
151
157
| ------------------- in this macro invocation
152
158
153
159
error: unnecessary structure name repetition
154
- --> $DIR/use_self.rs:261 :21
160
+ --> $DIR/use_self.rs:258 :21
155
161
|
156
162
LL | fn baz() -> Foo {
157
163
| ^^^ help: use the applicable keyword: `Self`
158
164
159
165
error: unnecessary structure name repetition
160
- --> $DIR/use_self.rs:262 :13
166
+ --> $DIR/use_self.rs:259 :13
161
167
|
162
168
LL | Foo {}
163
169
| ^^^ help: use the applicable keyword: `Self`
164
170
165
171
error: unnecessary structure name repetition
166
- --> $DIR/use_self.rs:249 :29
172
+ --> $DIR/use_self.rs:246 :29
167
173
|
168
174
LL | fn bar() -> Bar {
169
175
| ^^^ help: use the applicable keyword: `Self`
170
176
171
177
error: unnecessary structure name repetition
172
- --> $DIR/use_self.rs:250 :21
178
+ --> $DIR/use_self.rs:247 :21
173
179
|
174
180
LL | Bar { foo: Foo {} }
175
181
| ^^^ help: use the applicable keyword: `Self`
176
182
177
183
error: unnecessary structure name repetition
178
- --> $DIR/use_self.rs:279 :21
184
+ --> $DIR/use_self.rs:276 :21
179
185
|
180
186
LL | let _ = Enum::B(42);
181
187
| ^^^^ help: use the applicable keyword: `Self`
182
188
183
189
error: unnecessary structure name repetition
184
- --> $DIR/use_self.rs:280 :21
190
+ --> $DIR/use_self.rs:277 :21
185
191
|
186
192
LL | let _ = Enum::C { field: true };
187
193
| ^^^^ help: use the applicable keyword: `Self`
188
194
189
195
error: unnecessary structure name repetition
190
- --> $DIR/use_self.rs:281 :21
196
+ --> $DIR/use_self.rs:278 :21
191
197
|
192
198
LL | let _ = Enum::A;
193
199
| ^^^^ help: use the applicable keyword: `Self`
194
200
195
201
error: unnecessary structure name repetition
196
- --> $DIR/use_self.rs:312 :13
202
+ --> $DIR/use_self.rs:309 :13
197
203
|
198
204
LL | nested::A::fun_1();
199
205
| ^^^^^^^^^ help: use the applicable keyword: `Self`
200
206
201
207
error: unnecessary structure name repetition
202
- --> $DIR/use_self.rs:313 :13
208
+ --> $DIR/use_self.rs:310 :13
203
209
|
204
210
LL | nested::A::A;
205
211
| ^^^^^^^^^ help: use the applicable keyword: `Self`
206
212
207
213
error: unnecessary structure name repetition
208
- --> $DIR/use_self.rs:315 :13
214
+ --> $DIR/use_self.rs:312 :13
209
215
|
210
216
LL | nested::A {};
211
217
| ^^^^^^^^^ help: use the applicable keyword: `Self`
212
218
213
- error: aborting due to 34 previous errors
219
+ error: aborting due to 35 previous errors
214
220
0 commit comments