@@ -121,19 +121,25 @@ LL | fn mul(self, rhs: Bad) -> Bad {
121121 | ^^^ help: use the applicable keyword: `Self`
122122
123123error: 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
125131 |
126132LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127133 | ^^^ help: use the applicable keyword: `Self`
128134
129135error: unnecessary structure name repetition
130- --> $DIR/use_self.rs:217 :13
136+ --> $DIR/use_self.rs:214 :13
131137 |
132138LL | TS(0)
133139 | ^^ help: use the applicable keyword: `Self`
134140
135141error: unnecessary structure name repetition
136- --> $DIR/use_self.rs:225 :25
142+ --> $DIR/use_self.rs:222 :25
137143 |
138144LL | fn new() -> Foo {
139145 | ^^^ help: use the applicable keyword: `Self`
@@ -142,7 +148,7 @@ LL | use_self_expand!(); // Should lint in local macros
142148 | ------------------- in this macro invocation
143149
144150error: unnecessary structure name repetition
145- --> $DIR/use_self.rs:226 :17
151+ --> $DIR/use_self.rs:223 :17
146152 |
147153LL | Foo {}
148154 | ^^^ help: use the applicable keyword: `Self`
@@ -151,64 +157,64 @@ LL | use_self_expand!(); // Should lint in local macros
151157 | ------------------- in this macro invocation
152158
153159error: unnecessary structure name repetition
154- --> $DIR/use_self.rs:261 :21
160+ --> $DIR/use_self.rs:258 :21
155161 |
156162LL | fn baz() -> Foo {
157163 | ^^^ help: use the applicable keyword: `Self`
158164
159165error: unnecessary structure name repetition
160- --> $DIR/use_self.rs:262 :13
166+ --> $DIR/use_self.rs:259 :13
161167 |
162168LL | Foo {}
163169 | ^^^ help: use the applicable keyword: `Self`
164170
165171error: unnecessary structure name repetition
166- --> $DIR/use_self.rs:249 :29
172+ --> $DIR/use_self.rs:246 :29
167173 |
168174LL | fn bar() -> Bar {
169175 | ^^^ help: use the applicable keyword: `Self`
170176
171177error: unnecessary structure name repetition
172- --> $DIR/use_self.rs:250 :21
178+ --> $DIR/use_self.rs:247 :21
173179 |
174180LL | Bar { foo: Foo {} }
175181 | ^^^ help: use the applicable keyword: `Self`
176182
177183error: unnecessary structure name repetition
178- --> $DIR/use_self.rs:279 :21
184+ --> $DIR/use_self.rs:276 :21
179185 |
180186LL | let _ = Enum::B(42);
181187 | ^^^^ help: use the applicable keyword: `Self`
182188
183189error: unnecessary structure name repetition
184- --> $DIR/use_self.rs:280 :21
190+ --> $DIR/use_self.rs:277 :21
185191 |
186192LL | let _ = Enum::C { field: true };
187193 | ^^^^ help: use the applicable keyword: `Self`
188194
189195error: unnecessary structure name repetition
190- --> $DIR/use_self.rs:281 :21
196+ --> $DIR/use_self.rs:278 :21
191197 |
192198LL | let _ = Enum::A;
193199 | ^^^^ help: use the applicable keyword: `Self`
194200
195201error: unnecessary structure name repetition
196- --> $DIR/use_self.rs:312 :13
202+ --> $DIR/use_self.rs:309 :13
197203 |
198204LL | nested::A::fun_1();
199205 | ^^^^^^^^^ help: use the applicable keyword: `Self`
200206
201207error: unnecessary structure name repetition
202- --> $DIR/use_self.rs:313 :13
208+ --> $DIR/use_self.rs:310 :13
203209 |
204210LL | nested::A::A;
205211 | ^^^^^^^^^ help: use the applicable keyword: `Self`
206212
207213error: unnecessary structure name repetition
208- --> $DIR/use_self.rs:315 :13
214+ --> $DIR/use_self.rs:312 :13
209215 |
210216LL | nested::A {};
211217 | ^^^^^^^^^ help: use the applicable keyword: `Self`
212218
213- error: aborting due to 34 previous errors
219+ error: aborting due to 35 previous errors
214220
0 commit comments