Skip to content

Commit 181ce39

Browse files
committed
Unify indentation in subdiagnostic-derive test
1 parent a134cd4 commit 181ce39

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ enum P {
167167
#[derive(SessionSubdiagnostic)]
168168
enum Q {
169169
#[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
172172
A {
173173
#[primary_span]
174174
span: Span,
@@ -179,8 +179,8 @@ enum Q {
179179
#[derive(SessionSubdiagnostic)]
180180
enum R {
181181
#[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
184184
A {
185185
#[primary_span]
186186
span: Span,
@@ -191,8 +191,8 @@ enum R {
191191
#[derive(SessionSubdiagnostic)]
192192
enum S {
193193
#[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
196196
A {
197197
#[primary_span]
198198
span: Span,
@@ -203,8 +203,8 @@ enum S {
203203
#[derive(SessionSubdiagnostic)]
204204
enum T {
205205
#[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
208208
A {
209209
#[primary_span]
210210
span: Span,
@@ -215,7 +215,7 @@ enum T {
215215
#[derive(SessionSubdiagnostic)]
216216
enum U {
217217
#[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
219219
A {
220220
#[primary_span]
221221
span: Span,
@@ -232,7 +232,7 @@ enum V {
232232
var: String,
233233
},
234234
B {
235-
//~^ ERROR subdiagnostic kind not specified
235+
//~^ ERROR subdiagnostic kind not specified
236236
#[primary_span]
237237
span: Span,
238238
var: String,
@@ -331,16 +331,16 @@ struct AE {
331331
#[label(parser::add_paren)]
332332
struct AF {
333333
#[primary_span]
334-
//~^ NOTE previously specified here
334+
//~^ NOTE previously specified here
335335
span_a: Span,
336336
#[primary_span]
337-
//~^ ERROR specified multiple times
337+
//~^ ERROR specified multiple times
338338
span_b: Span,
339339
}
340340

341341
#[derive(SessionSubdiagnostic)]
342342
struct AG {
343-
//~^ ERROR subdiagnostic kind not specified
343+
//~^ ERROR subdiagnostic kind not specified
344344
#[primary_span]
345345
span: Span,
346346
}
@@ -392,10 +392,10 @@ struct AK {
392392
#[primary_span]
393393
span: Span,
394394
#[applicability]
395-
//~^ NOTE previously specified here
395+
//~^ NOTE previously specified here
396396
applicability_a: Applicability,
397397
#[applicability]
398-
//~^ ERROR specified multiple times
398+
//~^ ERROR specified multiple times
399399
applicability_b: Applicability,
400400
}
401401

@@ -405,7 +405,7 @@ struct AL {
405405
#[primary_span]
406406
span: Span,
407407
#[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`
409409
applicability: Span,
410410
}
411411

0 commit comments

Comments
 (0)