@@ -150,21 +150,21 @@ pub struct AsyncGeneratorsNotSupported {
150
150
}
151
151
152
152
#[ derive( SessionDiagnostic , Clone , Copy ) ]
153
- #[ error ( ast_lowering:: inline_asm_unsupported_target, code = "E0472" ) ]
153
+ #[ diag ( ast_lowering:: inline_asm_unsupported_target, code = "E0472" ) ]
154
154
pub struct InlineAsmUnsupportedTarget {
155
155
#[ primary_span]
156
156
pub span : Span ,
157
157
}
158
158
159
159
#[ derive( SessionDiagnostic , Clone , Copy ) ]
160
- #[ error ( ast_lowering:: att_syntax_only_x86) ]
160
+ #[ diag ( ast_lowering:: att_syntax_only_x86) ]
161
161
pub struct AttSyntaxOnlyX86 {
162
162
#[ primary_span]
163
163
pub span : Span ,
164
164
}
165
165
166
166
#[ derive( SessionDiagnostic , Clone , Copy ) ]
167
- #[ error ( ast_lowering:: abi_specified_multiple_times) ]
167
+ #[ diag ( ast_lowering:: abi_specified_multiple_times) ]
168
168
pub struct AbiSpecifiedMultipleTimes {
169
169
#[ primary_span]
170
170
pub abi_span : Span ,
@@ -176,23 +176,23 @@ pub struct AbiSpecifiedMultipleTimes {
176
176
}
177
177
178
178
#[ derive( SessionDiagnostic , Clone , Copy ) ]
179
- #[ error ( ast_lowering:: clobber_abi_not_supported) ]
179
+ #[ diag ( ast_lowering:: clobber_abi_not_supported) ]
180
180
pub struct ClobberAbiNotSupported {
181
181
#[ primary_span]
182
182
pub abi_span : Span ,
183
183
}
184
184
185
185
#[ derive( SessionDiagnostic ) ]
186
186
#[ note]
187
- #[ error ( ast_lowering:: invalid_abi_clobber_abi) ]
187
+ #[ diag ( ast_lowering:: invalid_abi_clobber_abi) ]
188
188
pub struct InvalidAbiClobberAbi {
189
189
#[ primary_span]
190
190
pub abi_span : Span ,
191
191
pub supported_abis : String ,
192
192
}
193
193
194
194
#[ derive( SessionDiagnostic , Clone , Copy ) ]
195
- #[ error ( ast_lowering:: invalid_register) ]
195
+ #[ diag ( ast_lowering:: invalid_register) ]
196
196
pub struct InvalidRegister < ' a > {
197
197
#[ primary_span]
198
198
pub op_span : Span ,
@@ -201,7 +201,7 @@ pub struct InvalidRegister<'a> {
201
201
}
202
202
203
203
#[ derive( SessionDiagnostic , Clone , Copy ) ]
204
- #[ error ( ast_lowering:: invalid_register_class) ]
204
+ #[ diag ( ast_lowering:: invalid_register_class) ]
205
205
pub struct InvalidRegisterClass < ' a > {
206
206
#[ primary_span]
207
207
pub op_span : Span ,
@@ -210,7 +210,7 @@ pub struct InvalidRegisterClass<'a> {
210
210
}
211
211
212
212
#[ derive( SessionDiagnostic ) ]
213
- #[ error ( ast_lowering:: invalid_asm_template_modifier_reg_class) ]
213
+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_reg_class) ]
214
214
pub struct InvalidAsmTemplateModifierRegClass {
215
215
#[ primary_span]
216
216
#[ label( ast_lowering:: template_modifier) ]
@@ -230,7 +230,7 @@ pub enum InvalidAsmTemplateModifierRegClassSub {
230
230
}
231
231
232
232
#[ derive( SessionDiagnostic , Clone , Copy ) ]
233
- #[ error ( ast_lowering:: invalid_asm_template_modifier_const) ]
233
+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_const) ]
234
234
pub struct InvalidAsmTemplateModifierConst {
235
235
#[ primary_span]
236
236
#[ label( ast_lowering:: template_modifier) ]
@@ -240,7 +240,7 @@ pub struct InvalidAsmTemplateModifierConst {
240
240
}
241
241
242
242
#[ derive( SessionDiagnostic , Clone , Copy ) ]
243
- #[ error ( ast_lowering:: invalid_asm_template_modifier_sym) ]
243
+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_sym) ]
244
244
pub struct InvalidAsmTemplateModifierSym {
245
245
#[ primary_span]
246
246
#[ label( ast_lowering:: template_modifier) ]
@@ -250,15 +250,15 @@ pub struct InvalidAsmTemplateModifierSym {
250
250
}
251
251
252
252
#[ derive( SessionDiagnostic , Clone , Copy ) ]
253
- #[ error ( ast_lowering:: register_class_only_clobber) ]
253
+ #[ diag ( ast_lowering:: register_class_only_clobber) ]
254
254
pub struct RegisterClassOnlyClobber {
255
255
#[ primary_span]
256
256
pub op_span : Span ,
257
257
pub reg_class_name : Symbol ,
258
258
}
259
259
260
260
#[ derive( SessionDiagnostic , Clone , Copy ) ]
261
- #[ error ( ast_lowering:: register_conflict) ]
261
+ #[ diag ( ast_lowering:: register_conflict) ]
262
262
pub struct RegisterConflict < ' a > {
263
263
#[ primary_span]
264
264
#[ label( ast_lowering:: register1) ]
@@ -273,7 +273,7 @@ pub struct RegisterConflict<'a> {
273
273
274
274
#[ derive( SessionDiagnostic , Clone , Copy ) ]
275
275
#[ help]
276
- #[ error ( ast_lowering:: sub_tuple_binding) ]
276
+ #[ diag ( ast_lowering:: sub_tuple_binding) ]
277
277
pub struct SubTupleBinding < ' a > {
278
278
#[ primary_span]
279
279
#[ label]
@@ -289,7 +289,7 @@ pub struct SubTupleBinding<'a> {
289
289
}
290
290
291
291
#[ derive( SessionDiagnostic , Clone , Copy ) ]
292
- #[ error ( ast_lowering:: extra_double_dot) ]
292
+ #[ diag ( ast_lowering:: extra_double_dot) ]
293
293
pub struct ExtraDoubleDot < ' a > {
294
294
#[ primary_span]
295
295
#[ label]
@@ -301,28 +301,28 @@ pub struct ExtraDoubleDot<'a> {
301
301
302
302
#[ derive( SessionDiagnostic , Clone , Copy ) ]
303
303
#[ note]
304
- #[ error ( ast_lowering:: misplaced_double_dot) ]
304
+ #[ diag ( ast_lowering:: misplaced_double_dot) ]
305
305
pub struct MisplacedDoubleDot {
306
306
#[ primary_span]
307
307
pub span : Span ,
308
308
}
309
309
310
310
#[ derive( SessionDiagnostic , Clone , Copy ) ]
311
- #[ error ( ast_lowering:: misplaced_relax_trait_bound) ]
311
+ #[ diag ( ast_lowering:: misplaced_relax_trait_bound) ]
312
312
pub struct MisplacedRelaxTraitBound {
313
313
#[ primary_span]
314
314
pub span : Span ,
315
315
}
316
316
317
317
#[ derive( SessionDiagnostic , Clone , Copy ) ]
318
- #[ error ( ast_lowering:: not_supported_for_lifetime_binder_async_closure) ]
318
+ #[ diag ( ast_lowering:: not_supported_for_lifetime_binder_async_closure) ]
319
319
pub struct NotSupportedForLifetimeBinderAsyncClosure {
320
320
#[ primary_span]
321
321
pub span : Span ,
322
322
}
323
323
324
324
#[ derive( SessionDiagnostic , Clone , Copy ) ]
325
- #[ error ( ast_lowering:: arbitrary_expression_in_pattern) ]
325
+ #[ diag ( ast_lowering:: arbitrary_expression_in_pattern) ]
326
326
pub struct ArbitraryExpressionInPattern {
327
327
#[ primary_span]
328
328
pub span : Span ,
0 commit comments