@@ -6,9 +6,9 @@ use rustc_span::{symbol::Ident, Span, Symbol};
6
6
#[ error( code = "E0062" , slug = "typeck-field-multiply-specified-in-initializer" ) ]
7
7
pub struct FieldMultiplySpecifiedInInitializer {
8
8
#[ primary_span]
9
- #[ label = "used more than once" ]
9
+ #[ label]
10
10
pub span : Span ,
11
- #[ label = "first use of `{ident}` " ]
11
+ #[ label = "previous- use-label " ]
12
12
pub prev_span : Span ,
13
13
pub ident : Ident ,
14
14
}
@@ -17,7 +17,7 @@ pub struct FieldMultiplySpecifiedInInitializer {
17
17
#[ error( code = "E0092" , slug = "typeck-unrecognized-atomic-operation" ) ]
18
18
pub struct UnrecognizedAtomicOperation < ' a > {
19
19
#[ primary_span]
20
- #[ label = "unrecognized atomic operation" ]
20
+ #[ label]
21
21
pub span : Span ,
22
22
pub op : & ' a str ,
23
23
}
@@ -26,7 +26,7 @@ pub struct UnrecognizedAtomicOperation<'a> {
26
26
#[ error( code = "E0094" , slug = "typeck-wrong-number-of-generic-arguments-to-intrinsic" ) ]
27
27
pub struct WrongNumberOfGenericArgumentsToIntrinsic < ' a > {
28
28
#[ primary_span]
29
- #[ label = "expected {expected} {descr} parameter{expected_pluralize}" ]
29
+ #[ label]
30
30
pub span : Span ,
31
31
pub found : usize ,
32
32
pub expected : usize ,
@@ -38,7 +38,7 @@ pub struct WrongNumberOfGenericArgumentsToIntrinsic<'a> {
38
38
#[ error( code = "E0093" , slug = "typeck-unrecognized-intrinsic-function" ) ]
39
39
pub struct UnrecognizedIntrinsicFunction {
40
40
#[ primary_span]
41
- #[ label = "unrecognized intrinsic" ]
41
+ #[ label]
42
42
pub span : Span ,
43
43
pub name : Symbol ,
44
44
}
@@ -47,9 +47,9 @@ pub struct UnrecognizedIntrinsicFunction {
47
47
#[ error( code = "E0195" , slug = "typeck-lifetimes-or-bounds-mismatch-on-trait" ) ]
48
48
pub struct LifetimesOrBoundsMismatchOnTrait {
49
49
#[ primary_span]
50
- #[ label = "lifetimes do not match {item_kind} in trait" ]
50
+ #[ label]
51
51
pub span : Span ,
52
- #[ label = "lifetimes in impl do not match this {item_kind} in trait " ]
52
+ #[ label = "generics-label " ]
53
53
pub generics_span : Option < Span > ,
54
54
pub item_kind : & ' static str ,
55
55
pub ident : Ident ,
@@ -59,7 +59,7 @@ pub struct LifetimesOrBoundsMismatchOnTrait {
59
59
#[ error( code = "E0120" , slug = "typeck-drop-impl-on-wrong-item" ) ]
60
60
pub struct DropImplOnWrongItem {
61
61
#[ primary_span]
62
- #[ label = "must be a struct, enum, or union" ]
62
+ #[ label]
63
63
pub span : Span ,
64
64
}
65
65
@@ -68,17 +68,17 @@ pub struct DropImplOnWrongItem {
68
68
pub struct FieldAlreadyDeclared {
69
69
pub field_name : Ident ,
70
70
#[ primary_span]
71
- #[ label = "field already declared" ]
71
+ #[ label]
72
72
pub span : Span ,
73
- #[ label = "`{field_name}` first declared here " ]
73
+ #[ label = "previous-decl-label " ]
74
74
pub prev_span : Span ,
75
75
}
76
76
77
77
#[ derive( SessionDiagnostic ) ]
78
78
#[ error( code = "E0184" , slug = "typeck-copy-impl-on-type-with-dtor" ) ]
79
79
pub struct CopyImplOnTypeWithDtor {
80
80
#[ primary_span]
81
- #[ label = "Copy not allowed on types with destructors" ]
81
+ #[ label]
82
82
pub span : Span ,
83
83
}
84
84
@@ -93,7 +93,7 @@ pub struct MultipleRelaxedDefaultBounds {
93
93
#[ error( code = "E0206" , slug = "typeck-copy-impl-on-non-adt" ) ]
94
94
pub struct CopyImplOnNonAdt {
95
95
#[ primary_span]
96
- #[ label = "type is not a structure or enumeration" ]
96
+ #[ label]
97
97
pub span : Span ,
98
98
}
99
99
@@ -115,7 +115,7 @@ pub struct AmbiguousLifetimeBound {
115
115
#[ error( code = "E0229" , slug = "typeck-assoc-type-binding-not-allowed" ) ]
116
116
pub struct AssocTypeBindingNotAllowed {
117
117
#[ primary_span]
118
- #[ label = "associated type not allowed here" ]
118
+ #[ label]
119
119
pub span : Span ,
120
120
}
121
121
@@ -130,7 +130,7 @@ pub struct FunctionalRecordUpdateOnNonStruct {
130
130
#[ error( code = "E0516" , slug = "typeck-typeof-reserved-keyword-used" ) ]
131
131
pub struct TypeofReservedKeywordUsed {
132
132
#[ primary_span]
133
- #[ label = "reserved keyword" ]
133
+ #[ label]
134
134
pub span : Span ,
135
135
}
136
136
@@ -139,9 +139,9 @@ pub struct TypeofReservedKeywordUsed {
139
139
pub struct ReturnStmtOutsideOfFnBody {
140
140
#[ primary_span]
141
141
pub span : Span ,
142
- #[ label = "the return is part of this body... " ]
142
+ #[ label = "encl- body-label " ]
143
143
pub encl_body_span : Option < Span > ,
144
- #[ label = "...not the enclosing function body " ]
144
+ #[ label = "encl-fn-label " ]
145
145
pub encl_fn_span : Option < Span > ,
146
146
}
147
147
@@ -171,9 +171,9 @@ pub struct MethodCallOnUnknownType {
171
171
#[ error( code = "E0719" , slug = "typeck-value-of-associated-struct-already-specified" ) ]
172
172
pub struct ValueOfAssociatedStructAlreadySpecified {
173
173
#[ primary_span]
174
- #[ label = "re-bound here" ]
174
+ #[ label]
175
175
pub span : Span ,
176
- #[ label = "`{item_name}` bound here first " ]
176
+ #[ label = "previous- bound-label " ]
177
177
pub prev_span : Span ,
178
178
pub item_name : Ident ,
179
179
pub def_path : String ,
@@ -183,6 +183,6 @@ pub struct ValueOfAssociatedStructAlreadySpecified {
183
183
#[ error( code = "E0745" , slug = "typeck-address-of-temporary-taken" ) ]
184
184
pub struct AddressOfTemporaryTaken {
185
185
#[ primary_span]
186
- #[ label = "temporary value" ]
186
+ #[ label]
187
187
pub span : Span ,
188
188
}
0 commit comments