@@ -45,9 +45,9 @@ struct HelloWarn {}
45
45
//~^ ERROR unsupported type attribute for diagnostic derive enum
46
46
enum DiagnosticOnEnum {
47
47
Foo ,
48
- //~^ ERROR diagnostic slug not specified
48
+ //~^ ERROR diagnostic slug or label is not specified
49
49
Bar ,
50
- //~^ ERROR diagnostic slug not specified
50
+ //~^ ERROR diagnostic slug or label is not specified
51
51
}
52
52
53
53
#[ derive( Diagnostic ) ]
@@ -59,13 +59,12 @@ struct WrongStructAttrStyle {}
59
59
#[ derive( Diagnostic ) ]
60
60
#[ nonsense( no_crate_example, code = "E0123" ) ]
61
61
//~^ ERROR `#[nonsense(...)]` is not a valid attribute
62
- //~^^ ERROR diagnostic slug not specified
62
+ //~^^ ERROR diagnostic slug or label is not specified
63
63
//~^^^ ERROR cannot find attribute `nonsense` in this scope
64
64
struct InvalidStructAttr { }
65
65
66
66
#[ derive( Diagnostic ) ]
67
67
#[ diag( "E0123" ) ]
68
- //~^ ERROR diagnostic slug not specified
69
68
struct InvalidLitNestedAttr { }
70
69
71
70
#[ derive( Diagnostic ) ]
@@ -75,20 +74,20 @@ struct InvalidNestedStructAttr {}
75
74
76
75
#[ derive( Diagnostic ) ]
77
76
#[ diag( nonsense( "foo" ) , code = "E0123" , slug = "foo" ) ]
78
- //~^ ERROR diagnostic slug must be the first argument
79
- //~| ERROR diagnostic slug not specified
77
+ //~^ ERROR diagnostic slug or label is not specified
78
+ //~| ERROR diagnostic slug must be the first argument
80
79
struct InvalidNestedStructAttr1 { }
81
80
82
81
#[ derive( Diagnostic ) ]
83
82
#[ diag( nonsense = "..." , code = "E0123" , slug = "foo" ) ]
84
83
//~^ ERROR unknown argument
85
- //~| ERROR diagnostic slug not specified
84
+ //~| ERROR diagnostic slug or label is not specified
86
85
struct InvalidNestedStructAttr2 { }
87
86
88
87
#[ derive( Diagnostic ) ]
89
88
#[ diag( nonsense = 4 , code = "E0123" , slug = "foo" ) ]
90
89
//~^ ERROR unknown argument
91
- //~| ERROR diagnostic slug not specified
90
+ //~| ERROR diagnostic slug or label is not specified
92
91
struct InvalidNestedStructAttr3 { }
93
92
94
93
#[ derive( Diagnostic ) ]
@@ -122,11 +121,11 @@ struct CodeSpecifiedTwice {}
122
121
struct SlugSpecifiedTwice { }
123
122
124
123
#[ derive( Diagnostic ) ]
125
- struct KindNotProvided { } //~ ERROR diagnostic slug not specified
124
+ struct KindNotProvided { } //~ ERROR diagnostic slug or label is not specified
126
125
127
126
#[ derive( Diagnostic ) ]
128
127
#[ diag( code = "E0456" ) ]
129
- //~^ ERROR diagnostic slug not specified
128
+ //~^ ERROR diagnostic slug or label is not specified
130
129
struct SlugNotProvided { }
131
130
132
131
#[ derive( Diagnostic ) ]
@@ -579,21 +578,21 @@ struct ErrorWithWarn {
579
578
#[ derive( Diagnostic ) ]
580
579
#[ error( no_crate_example, code = "E0123" ) ]
581
580
//~^ ERROR `#[error(...)]` is not a valid attribute
582
- //~| ERROR diagnostic slug not specified
581
+ //~| ERROR diagnostic slug or label is not specified
583
582
//~| ERROR cannot find attribute `error` in this scope
584
583
struct ErrorAttribute { }
585
584
586
585
#[ derive( Diagnostic ) ]
587
586
#[ warn_( no_crate_example, code = "E0123" ) ]
588
587
//~^ ERROR `#[warn_(...)]` is not a valid attribute
589
- //~| ERROR diagnostic slug not specified
588
+ //~| ERROR diagnostic slug or label is not specified
590
589
//~| ERROR cannot find attribute `warn_` in this scope
591
590
struct WarnAttribute { }
592
591
593
592
#[ derive( Diagnostic ) ]
594
593
#[ lint( no_crate_example, code = "E0123" ) ]
595
594
//~^ ERROR `#[lint(...)]` is not a valid attribute
596
- //~| ERROR diagnostic slug not specified
595
+ //~| ERROR diagnostic slug or label is not specified
597
596
//~| ERROR cannot find attribute `lint` in this scope
598
597
struct LintAttributeOnSessionDiag { }
599
598
0 commit comments