@@ -50,15 +50,7 @@ fn main() {
50
50
}
51
51
]
52
52
] ;
53
- check_annotations (
54
- messages,
55
- vec ! [ ] ,
56
- Path :: new ( "moobar" ) ,
57
- & mut errors,
58
- "" ,
59
- config. comments ,
60
- )
61
- . unwrap ( ) ;
53
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
62
54
match & errors[ ..] {
63
55
[ Error :: PatternNotFound { pattern, .. } , Error :: ErrorsWithoutPattern { path, .. } ]
64
56
if path. as_ref ( ) . is_some_and ( |p| p. line ( ) . get ( ) == 5 ) && pattern. line ( ) . get ( ) == 5 => { }
@@ -88,15 +80,7 @@ fn main() {
88
80
]
89
81
] ;
90
82
let mut errors = vec ! [ ] ;
91
- check_annotations (
92
- messages,
93
- vec ! [ ] ,
94
- Path :: new ( "moobar" ) ,
95
- & mut errors,
96
- "" ,
97
- config. comments ,
98
- )
99
- . unwrap ( ) ;
83
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
100
84
match & errors[ ..] {
101
85
[ ] => { }
102
86
_ => panic ! ( "{:#?}" , errors) ,
@@ -115,15 +99,7 @@ fn main() {
115
99
]
116
100
] ;
117
101
let mut errors = vec ! [ ] ;
118
- check_annotations (
119
- messages,
120
- vec ! [ ] ,
121
- Path :: new ( "moobar" ) ,
122
- & mut errors,
123
- "" ,
124
- config. comments ,
125
- )
126
- . unwrap ( ) ;
102
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
127
103
match & errors[ ..] {
128
104
[ Error :: PatternNotFound { pattern, .. } , Error :: ErrorsWithoutPattern { path, .. } ]
129
105
if path. as_ref ( ) . is_some_and ( |p| p. line ( ) . get ( ) == 4 )
@@ -146,15 +122,7 @@ fn main() {
146
122
]
147
123
] ;
148
124
let mut errors = vec ! [ ] ;
149
- check_annotations (
150
- messages,
151
- vec ! [ ] ,
152
- Path :: new ( "moobar" ) ,
153
- & mut errors,
154
- "" ,
155
- config. comments ,
156
- )
157
- . unwrap ( ) ;
125
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
158
126
match & errors[ ..] {
159
127
// Note no `ErrorsWithoutPattern`, because there are no `//~NOTE` in the test file, so we ignore them
160
128
[ Error :: PatternNotFound { pattern, .. } ] if pattern. line ( ) . get ( ) == 5 => { }
@@ -187,15 +155,7 @@ fn main() {
187
155
]
188
156
] ;
189
157
let mut errors = vec ! [ ] ;
190
- check_annotations (
191
- messages,
192
- vec ! [ ] ,
193
- Path :: new ( "moobar" ) ,
194
- & mut errors,
195
- "" ,
196
- config. comments ,
197
- )
198
- . unwrap ( ) ;
158
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
199
159
match & errors[ ..] {
200
160
[ Error :: PatternNotFound { pattern, .. } ] if pattern. line ( ) . get ( ) == 6 => { }
201
161
_ => panic ! ( "{:#?}" , errors) ,
@@ -231,15 +191,7 @@ fn main() {
231
191
]
232
192
] ;
233
193
let mut errors = vec ! [ ] ;
234
- check_annotations (
235
- messages,
236
- vec ! [ ] ,
237
- Path :: new ( "moobar" ) ,
238
- & mut errors,
239
- "" ,
240
- config. comments ,
241
- )
242
- . unwrap ( ) ;
194
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
243
195
match & errors[ ..] {
244
196
[ Error :: ErrorsWithoutPattern { path, .. } ]
245
197
if path. as_ref ( ) . is_some_and ( |p| p. line ( ) . get ( ) == 5 ) => { }
@@ -287,15 +239,7 @@ fn main() {
287
239
] ,
288
240
] ;
289
241
let mut errors = vec ! [ ] ;
290
- check_annotations (
291
- messages,
292
- vec ! [ ] ,
293
- Path :: new ( "moobar" ) ,
294
- & mut errors,
295
- "" ,
296
- config. comments ,
297
- )
298
- . unwrap ( ) ;
242
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
299
243
match & errors[ ..] {
300
244
[ Error :: ErrorsWithoutPattern { path, msgs, .. } ]
301
245
if path. as_ref ( ) . is_some_and ( |p| p. line ( ) . get ( ) == 5 ) =>
@@ -354,15 +298,7 @@ fn main() {
354
298
] ,
355
299
] ;
356
300
let mut errors = vec ! [ ] ;
357
- check_annotations (
358
- messages,
359
- vec ! [ ] ,
360
- Path :: new ( "moobar" ) ,
361
- & mut errors,
362
- "" ,
363
- config. comments ,
364
- )
365
- . unwrap ( ) ;
301
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
366
302
match & errors[ ..] {
367
303
[ ] => { }
368
304
_ => panic ! ( "{:#?}" , errors) ,
@@ -391,15 +327,7 @@ fn main() {
391
327
} ] ,
392
328
] ;
393
329
let mut errors = vec ! [ ] ;
394
- check_annotations (
395
- messages,
396
- vec ! [ ] ,
397
- Path :: new ( "moobar" ) ,
398
- & mut errors,
399
- "" ,
400
- config. comments ,
401
- )
402
- . unwrap ( ) ;
330
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
403
331
match & errors[ ..] {
404
332
[ ] => { }
405
333
_ => panic ! ( "{:#?}" , errors) ,
@@ -420,15 +348,7 @@ fn main() {
420
348
} ] ,
421
349
] ;
422
350
let mut errors = vec ! [ ] ;
423
- check_annotations (
424
- messages,
425
- vec ! [ ] ,
426
- Path :: new ( "moobar" ) ,
427
- & mut errors,
428
- "" ,
429
- config. comments ,
430
- )
431
- . unwrap ( ) ;
351
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
432
352
match & errors[ ..] {
433
353
[ Error :: CodeNotFound { code, .. } , Error :: ErrorsWithoutPattern { msgs, .. } ]
434
354
if * * code == "E0308" && code. line ( ) . get ( ) == 3 && msgs. len ( ) == 1 => { }
@@ -450,15 +370,7 @@ fn main() {
450
370
} ] ,
451
371
] ;
452
372
let mut errors = vec ! [ ] ;
453
- check_annotations (
454
- messages,
455
- vec ! [ ] ,
456
- Path :: new ( "moobar" ) ,
457
- & mut errors,
458
- "" ,
459
- config. comments ,
460
- )
461
- . unwrap ( ) ;
373
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
462
374
match & errors[ ..] {
463
375
[ Error :: CodeNotFound { code, .. } ] if * * code == "E0308" && code. line ( ) . get ( ) == 3 => { }
464
376
_ => panic ! ( "{:#?}" , errors) ,
@@ -490,15 +402,7 @@ fn main() {
490
402
} ] ,
491
403
] ;
492
404
let mut errors = vec ! [ ] ;
493
- check_annotations (
494
- messages,
495
- vec ! [ ] ,
496
- Path :: new ( "moobar" ) ,
497
- & mut errors,
498
- "" ,
499
- config. comments ,
500
- )
501
- . unwrap ( ) ;
405
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
502
406
match & errors[ ..] {
503
407
[ ] => { }
504
408
_ => panic ! ( "{:#?}" , errors) ,
@@ -519,15 +423,7 @@ fn main() {
519
423
} ] ,
520
424
] ;
521
425
let mut errors = vec ! [ ] ;
522
- check_annotations (
523
- messages,
524
- vec ! [ ] ,
525
- Path :: new ( "moobar" ) ,
526
- & mut errors,
527
- "" ,
528
- config. comments ,
529
- )
530
- . unwrap ( ) ;
426
+ check_annotations ( messages, vec ! [ ] , & config, & mut errors) . unwrap ( ) ;
531
427
match & errors[ ..] {
532
428
[ Error :: CodeNotFound { code, .. } , Error :: ErrorsWithoutPattern { msgs, .. } ]
533
429
if * * code == "prefix::E0308" && code. line ( ) . get ( ) == 3 && msgs. len ( ) == 1 => { }
0 commit comments