@@ -167,8 +167,8 @@ enum P {
167
167
#[ derive( SessionSubdiagnostic ) ]
168
168
enum Q {
169
169
#[ bar]
170
- //~^ ERROR `#[bar]` is not a valid attribute
171
- //~^^ ERROR cannot find attribute `bar` in this scope
170
+ //~^ ERROR `#[bar]` is not a valid attribute
171
+ //~^^ ERROR cannot find attribute `bar` in this scope
172
172
A {
173
173
#[ primary_span]
174
174
span : Span ,
@@ -179,8 +179,8 @@ enum Q {
179
179
#[ derive( SessionSubdiagnostic ) ]
180
180
enum R {
181
181
#[ bar = "..." ]
182
- //~^ ERROR `#[bar = ...]` is not a valid attribute
183
- //~^^ ERROR cannot find attribute `bar` in this scope
182
+ //~^ ERROR `#[bar = ...]` is not a valid attribute
183
+ //~^^ ERROR cannot find attribute `bar` in this scope
184
184
A {
185
185
#[ primary_span]
186
186
span : Span ,
@@ -191,8 +191,8 @@ enum R {
191
191
#[ derive( SessionSubdiagnostic ) ]
192
192
enum S {
193
193
#[ bar = 4 ]
194
- //~^ ERROR `#[bar = ...]` is not a valid attribute
195
- //~^^ ERROR cannot find attribute `bar` in this scope
194
+ //~^ ERROR `#[bar = ...]` is not a valid attribute
195
+ //~^^ ERROR cannot find attribute `bar` in this scope
196
196
A {
197
197
#[ primary_span]
198
198
span : Span ,
@@ -203,8 +203,8 @@ enum S {
203
203
#[ derive( SessionSubdiagnostic ) ]
204
204
enum T {
205
205
#[ bar( "..." ) ]
206
- //~^ ERROR `#[bar(" ..." )]` is not a valid attribute
207
- //~^^ ERROR cannot find attribute `bar` in this scope
206
+ //~^ ERROR `#[bar(...)]` is not a valid attribute
207
+ //~^^ ERROR cannot find attribute `bar` in this scope
208
208
A {
209
209
#[ primary_span]
210
210
span : Span ,
@@ -215,7 +215,7 @@ enum T {
215
215
#[ derive( SessionSubdiagnostic ) ]
216
216
enum U {
217
217
#[ label( code = "..." ) ]
218
- //~^ ERROR diagnostic slug must be first argument of a `#[label(...)]` attribute
218
+ //~^ ERROR diagnostic slug must be first argument of a `#[label(...)]` attribute
219
219
A {
220
220
#[ primary_span]
221
221
span : Span ,
@@ -232,7 +232,7 @@ enum V {
232
232
var : String ,
233
233
} ,
234
234
B {
235
- //~^ ERROR subdiagnostic kind not specified
235
+ //~^ ERROR subdiagnostic kind not specified
236
236
#[ primary_span]
237
237
span : Span ,
238
238
var : String ,
@@ -331,16 +331,16 @@ struct AE {
331
331
#[ label( parser:: add_paren) ]
332
332
struct AF {
333
333
#[ primary_span]
334
- //~^ NOTE previously specified here
334
+ //~^ NOTE previously specified here
335
335
span_a : Span ,
336
336
#[ primary_span]
337
- //~^ ERROR specified multiple times
337
+ //~^ ERROR specified multiple times
338
338
span_b : Span ,
339
339
}
340
340
341
341
#[ derive( SessionSubdiagnostic ) ]
342
342
struct AG {
343
- //~^ ERROR subdiagnostic kind not specified
343
+ //~^ ERROR subdiagnostic kind not specified
344
344
#[ primary_span]
345
345
span : Span ,
346
346
}
@@ -392,10 +392,10 @@ struct AK {
392
392
#[ primary_span]
393
393
span : Span ,
394
394
#[ applicability]
395
- //~^ NOTE previously specified here
395
+ //~^ NOTE previously specified here
396
396
applicability_a : Applicability ,
397
397
#[ applicability]
398
- //~^ ERROR specified multiple times
398
+ //~^ ERROR specified multiple times
399
399
applicability_b : Applicability ,
400
400
}
401
401
@@ -405,7 +405,7 @@ struct AL {
405
405
#[ primary_span]
406
406
span : Span ,
407
407
#[ applicability]
408
- //~^ ERROR the `#[applicability]` attribute can only be applied to fields of type `Applicability`
408
+ //~^ ERROR the `#[applicability]` attribute can only be applied to fields of type `Applicability`
409
409
applicability : Span ,
410
410
}
411
411
0 commit comments