@@ -373,21 +373,21 @@ LL | #[label(label, foo("..."))]
373
373
| ^^^^^^^^^^
374
374
375
375
error: `#[primary_span]` is not a valid attribute
376
- --> $DIR/diagnostic-derive.rs:545 :5
376
+ --> $DIR/diagnostic-derive.rs:544 :5
377
377
|
378
378
LL | #[primary_span]
379
379
| ^^^^^^^^^^^^^^^
380
380
|
381
381
= help: the `primary_span` field attribute is not valid for lint diagnostics
382
382
383
383
error: `#[error(...)]` is not a valid attribute
384
- --> $DIR/diagnostic-derive.rs:565 :1
384
+ --> $DIR/diagnostic-derive.rs:564 :1
385
385
|
386
386
LL | #[error(compiletest_example, code = "E0123")]
387
387
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
388
388
389
389
error: diagnostic slug not specified
390
- --> $DIR/diagnostic-derive.rs:565 :1
390
+ --> $DIR/diagnostic-derive.rs:564 :1
391
391
|
392
392
LL | / #[error(compiletest_example, code = "E0123")]
393
393
LL | |
@@ -399,13 +399,13 @@ LL | | struct ErrorAttribute {}
399
399
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
400
400
401
401
error: `#[warn_(...)]` is not a valid attribute
402
- --> $DIR/diagnostic-derive.rs:572 :1
402
+ --> $DIR/diagnostic-derive.rs:571 :1
403
403
|
404
404
LL | #[warn_(compiletest_example, code = "E0123")]
405
405
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
406
406
407
407
error: diagnostic slug not specified
408
- --> $DIR/diagnostic-derive.rs:572 :1
408
+ --> $DIR/diagnostic-derive.rs:571 :1
409
409
|
410
410
LL | / #[warn_(compiletest_example, code = "E0123")]
411
411
LL | |
@@ -417,13 +417,13 @@ LL | | struct WarnAttribute {}
417
417
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
418
418
419
419
error: `#[lint(...)]` is not a valid attribute
420
- --> $DIR/diagnostic-derive.rs:579 :1
420
+ --> $DIR/diagnostic-derive.rs:578 :1
421
421
|
422
422
LL | #[lint(compiletest_example, code = "E0123")]
423
423
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
424
424
425
425
error: diagnostic slug not specified
426
- --> $DIR/diagnostic-derive.rs:579 :1
426
+ --> $DIR/diagnostic-derive.rs:578 :1
427
427
|
428
428
LL | / #[lint(compiletest_example, code = "E0123")]
429
429
LL | |
@@ -435,19 +435,19 @@ LL | | struct LintAttributeOnSessionDiag {}
435
435
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
436
436
437
437
error: `#[lint(...)]` is not a valid attribute
438
- --> $DIR/diagnostic-derive.rs:586 :1
438
+ --> $DIR/diagnostic-derive.rs:585 :1
439
439
|
440
440
LL | #[lint(compiletest_example, code = "E0123")]
441
441
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442
442
443
443
error: `#[lint(...)]` is not a valid attribute
444
- --> $DIR/diagnostic-derive.rs:586 :1
444
+ --> $DIR/diagnostic-derive.rs:585 :1
445
445
|
446
446
LL | #[lint(compiletest_example, code = "E0123")]
447
447
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
448
448
449
449
error: diagnostic slug not specified
450
- --> $DIR/diagnostic-derive.rs:586 :1
450
+ --> $DIR/diagnostic-derive.rs:585 :1
451
451
|
452
452
LL | / #[lint(compiletest_example, code = "E0123")]
453
453
LL | |
@@ -460,133 +460,133 @@ LL | | struct LintAttributeOnLintDiag {}
460
460
= help: specify the slug as the first argument to the attribute, such as `#[diag(compiletest_example)]`
461
461
462
462
error: specified multiple times
463
- --> $DIR/diagnostic-derive.rs:596 :44
463
+ --> $DIR/diagnostic-derive.rs:595 :44
464
464
|
465
465
LL | #[suggestion(suggestion, code = "...", code = ",,,")]
466
466
| ^^^^^^^^^^^^
467
467
|
468
468
note: previously specified here
469
- --> $DIR/diagnostic-derive.rs:596 :30
469
+ --> $DIR/diagnostic-derive.rs:595 :30
470
470
|
471
471
LL | #[suggestion(suggestion, code = "...", code = ",,,")]
472
472
| ^^^^^^^^^^^^
473
473
474
474
error: wrong types for suggestion
475
- --> $DIR/diagnostic-derive.rs:605 :24
475
+ --> $DIR/diagnostic-derive.rs:604 :24
476
476
|
477
477
LL | suggestion: (Span, usize),
478
478
| ^^^^^
479
479
|
480
480
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
481
481
482
482
error: wrong types for suggestion
483
- --> $DIR/diagnostic-derive.rs:613 :17
483
+ --> $DIR/diagnostic-derive.rs:612 :17
484
484
|
485
485
LL | suggestion: (Span,),
486
486
| ^^^^^^^
487
487
|
488
488
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
489
489
490
490
error: suggestion without `code = "..."`
491
- --> $DIR/diagnostic-derive.rs:620 :5
491
+ --> $DIR/diagnostic-derive.rs:619 :5
492
492
|
493
493
LL | #[suggestion(suggestion)]
494
494
| ^^^^^^^^^^^^^^^^^^^^^^^^^
495
495
496
496
error: `#[multipart_suggestion(...)]` is not a valid attribute
497
- --> $DIR/diagnostic-derive.rs:627 :1
497
+ --> $DIR/diagnostic-derive.rs:626 :1
498
498
|
499
499
LL | #[multipart_suggestion(suggestion)]
500
500
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
501
501
|
502
502
= help: consider creating a `Subdiagnostic` instead
503
503
504
504
error: `#[multipart_suggestion(...)]` is not a valid attribute
505
- --> $DIR/diagnostic-derive.rs:630 :1
505
+ --> $DIR/diagnostic-derive.rs:629 :1
506
506
|
507
507
LL | #[multipart_suggestion()]
508
508
| ^^^^^^^^^^^^^^^^^^^^^^^^^
509
509
|
510
510
= help: consider creating a `Subdiagnostic` instead
511
511
512
512
error: `#[multipart_suggestion(...)]` is not a valid attribute
513
- --> $DIR/diagnostic-derive.rs:634 :5
513
+ --> $DIR/diagnostic-derive.rs:633 :5
514
514
|
515
515
LL | #[multipart_suggestion(suggestion)]
516
516
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
517
517
|
518
518
= help: consider creating a `Subdiagnostic` instead
519
519
520
520
error: `#[suggestion(...)]` is not a valid attribute
521
- --> $DIR/diagnostic-derive.rs:642 :1
521
+ --> $DIR/diagnostic-derive.rs:641 :1
522
522
|
523
523
LL | #[suggestion(suggestion, code = "...")]
524
524
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
525
525
|
526
526
= help: `#[label]` and `#[suggestion]` can only be applied to fields
527
527
528
528
error: `#[label]` is not a valid attribute
529
- --> $DIR/diagnostic-derive.rs:651 :1
529
+ --> $DIR/diagnostic-derive.rs:650 :1
530
530
|
531
531
LL | #[label]
532
532
| ^^^^^^^^
533
533
|
534
534
= help: `#[label]` and `#[suggestion]` can only be applied to fields
535
535
536
536
error: `#[subdiagnostic(bad)]` is not a valid attribute
537
- --> $DIR/diagnostic-derive.rs:685 :21
537
+ --> $DIR/diagnostic-derive.rs:684 :21
538
538
|
539
539
LL | #[subdiagnostic(bad)]
540
540
| ^^^
541
541
|
542
542
= help: `eager` is the only supported nested attribute for `subdiagnostic`
543
543
544
544
error: `#[subdiagnostic = ...]` is not a valid attribute
545
- --> $DIR/diagnostic-derive.rs:693 :5
545
+ --> $DIR/diagnostic-derive.rs:692 :5
546
546
|
547
547
LL | #[subdiagnostic = "bad"]
548
548
| ^^^^^^^^^^^^^^^^^^^^^^^^
549
549
|
550
550
= help: `eager` is the only supported nested attribute for `subdiagnostic`
551
551
552
552
error: `#[subdiagnostic(...)]` is not a valid attribute
553
- --> $DIR/diagnostic-derive.rs:701 :5
553
+ --> $DIR/diagnostic-derive.rs:700 :5
554
554
|
555
555
LL | #[subdiagnostic(bad, bad)]
556
556
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
557
557
|
558
558
= help: `eager` is the only supported nested attribute for `subdiagnostic`
559
559
560
560
error: `#[subdiagnostic("...")]` is not a valid attribute
561
- --> $DIR/diagnostic-derive.rs:709 :21
561
+ --> $DIR/diagnostic-derive.rs:708 :21
562
562
|
563
563
LL | #[subdiagnostic("bad")]
564
564
| ^^^^^
565
565
|
566
566
= help: `eager` is the only supported nested attribute for `subdiagnostic`
567
567
568
568
error: `#[subdiagnostic(...)]` is not a valid attribute
569
- --> $DIR/diagnostic-derive.rs:717 :5
569
+ --> $DIR/diagnostic-derive.rs:716 :5
570
570
|
571
571
LL | #[subdiagnostic(eager)]
572
572
| ^^^^^^^^^^^^^^^^^^^^^^^
573
573
|
574
574
= help: eager subdiagnostics are not supported on lints
575
575
576
576
error: expected at least one string literal for `code(...)`
577
- --> $DIR/diagnostic-derive.rs:779 :18
577
+ --> $DIR/diagnostic-derive.rs:774 :18
578
578
|
579
579
LL | #[suggestion(code())]
580
580
| ^^^^^^
581
581
582
582
error: `code(...)` must contain only string literals
583
- --> $DIR/diagnostic-derive.rs:787 :23
583
+ --> $DIR/diagnostic-derive.rs:782 :23
584
584
|
585
585
LL | #[suggestion(code(foo))]
586
586
| ^^^
587
587
588
588
error: `code = "..."`/`code(...)` must contain only string literals
589
- --> $DIR/diagnostic-derive.rs:795 :18
589
+ --> $DIR/diagnostic-derive.rs:790 :18
590
590
|
591
591
LL | #[suggestion(code = 3)]
592
592
| ^^^^^^^^
@@ -604,43 +604,43 @@ LL | #[nonsense]
604
604
| ^^^^^^^^
605
605
606
606
error: cannot find attribute `error` in this scope
607
- --> $DIR/diagnostic-derive.rs:565 :3
607
+ --> $DIR/diagnostic-derive.rs:564 :3
608
608
|
609
609
LL | #[error(compiletest_example, code = "E0123")]
610
610
| ^^^^^
611
611
612
612
error: cannot find attribute `warn_` in this scope
613
- --> $DIR/diagnostic-derive.rs:572 :3
613
+ --> $DIR/diagnostic-derive.rs:571 :3
614
614
|
615
615
LL | #[warn_(compiletest_example, code = "E0123")]
616
616
| ^^^^^ help: a built-in attribute with a similar name exists: `warn`
617
617
618
618
error: cannot find attribute `lint` in this scope
619
- --> $DIR/diagnostic-derive.rs:579 :3
619
+ --> $DIR/diagnostic-derive.rs:578 :3
620
620
|
621
621
LL | #[lint(compiletest_example, code = "E0123")]
622
622
| ^^^^ help: a built-in attribute with a similar name exists: `link`
623
623
624
624
error: cannot find attribute `lint` in this scope
625
- --> $DIR/diagnostic-derive.rs:586 :3
625
+ --> $DIR/diagnostic-derive.rs:585 :3
626
626
|
627
627
LL | #[lint(compiletest_example, code = "E0123")]
628
628
| ^^^^ help: a built-in attribute with a similar name exists: `link`
629
629
630
630
error: cannot find attribute `multipart_suggestion` in this scope
631
- --> $DIR/diagnostic-derive.rs:627 :3
631
+ --> $DIR/diagnostic-derive.rs:626 :3
632
632
|
633
633
LL | #[multipart_suggestion(suggestion)]
634
634
| ^^^^^^^^^^^^^^^^^^^^
635
635
636
636
error: cannot find attribute `multipart_suggestion` in this scope
637
- --> $DIR/diagnostic-derive.rs:630 :3
637
+ --> $DIR/diagnostic-derive.rs:629 :3
638
638
|
639
639
LL | #[multipart_suggestion()]
640
640
| ^^^^^^^^^^^^^^^^^^^^
641
641
642
642
error: cannot find attribute `multipart_suggestion` in this scope
643
- --> $DIR/diagnostic-derive.rs:634 :7
643
+ --> $DIR/diagnostic-derive.rs:633 :7
644
644
|
645
645
LL | #[multipart_suggestion(suggestion)]
646
646
| ^^^^^^^^^^^^^^^^^^^^
0 commit comments