@@ -150,21 +150,21 @@ pub struct AsyncGeneratorsNotSupported {
150150}
151151
152152#[ derive( SessionDiagnostic , Clone , Copy ) ]
153- #[ error ( ast_lowering:: inline_asm_unsupported_target, code = "E0472" ) ]
153+ #[ diag ( ast_lowering:: inline_asm_unsupported_target, code = "E0472" ) ]
154154pub struct InlineAsmUnsupportedTarget {
155155 #[ primary_span]
156156 pub span : Span ,
157157}
158158
159159#[ derive( SessionDiagnostic , Clone , Copy ) ]
160- #[ error ( ast_lowering:: att_syntax_only_x86) ]
160+ #[ diag ( ast_lowering:: att_syntax_only_x86) ]
161161pub struct AttSyntaxOnlyX86 {
162162 #[ primary_span]
163163 pub span : Span ,
164164}
165165
166166#[ derive( SessionDiagnostic , Clone , Copy ) ]
167- #[ error ( ast_lowering:: abi_specified_multiple_times) ]
167+ #[ diag ( ast_lowering:: abi_specified_multiple_times) ]
168168pub struct AbiSpecifiedMultipleTimes {
169169 #[ primary_span]
170170 pub abi_span : Span ,
@@ -176,23 +176,23 @@ pub struct AbiSpecifiedMultipleTimes {
176176}
177177
178178#[ derive( SessionDiagnostic , Clone , Copy ) ]
179- #[ error ( ast_lowering:: clobber_abi_not_supported) ]
179+ #[ diag ( ast_lowering:: clobber_abi_not_supported) ]
180180pub struct ClobberAbiNotSupported {
181181 #[ primary_span]
182182 pub abi_span : Span ,
183183}
184184
185185#[ derive( SessionDiagnostic ) ]
186186#[ note]
187- #[ error ( ast_lowering:: invalid_abi_clobber_abi) ]
187+ #[ diag ( ast_lowering:: invalid_abi_clobber_abi) ]
188188pub struct InvalidAbiClobberAbi {
189189 #[ primary_span]
190190 pub abi_span : Span ,
191191 pub supported_abis : String ,
192192}
193193
194194#[ derive( SessionDiagnostic , Clone , Copy ) ]
195- #[ error ( ast_lowering:: invalid_register) ]
195+ #[ diag ( ast_lowering:: invalid_register) ]
196196pub struct InvalidRegister < ' a > {
197197 #[ primary_span]
198198 pub op_span : Span ,
@@ -201,7 +201,7 @@ pub struct InvalidRegister<'a> {
201201}
202202
203203#[ derive( SessionDiagnostic , Clone , Copy ) ]
204- #[ error ( ast_lowering:: invalid_register_class) ]
204+ #[ diag ( ast_lowering:: invalid_register_class) ]
205205pub struct InvalidRegisterClass < ' a > {
206206 #[ primary_span]
207207 pub op_span : Span ,
@@ -210,7 +210,7 @@ pub struct InvalidRegisterClass<'a> {
210210}
211211
212212#[ derive( SessionDiagnostic ) ]
213- #[ error ( ast_lowering:: invalid_asm_template_modifier_reg_class) ]
213+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_reg_class) ]
214214pub struct InvalidAsmTemplateModifierRegClass {
215215 #[ primary_span]
216216 #[ label( ast_lowering:: template_modifier) ]
@@ -230,7 +230,7 @@ pub enum InvalidAsmTemplateModifierRegClassSub {
230230}
231231
232232#[ derive( SessionDiagnostic , Clone , Copy ) ]
233- #[ error ( ast_lowering:: invalid_asm_template_modifier_const) ]
233+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_const) ]
234234pub struct InvalidAsmTemplateModifierConst {
235235 #[ primary_span]
236236 #[ label( ast_lowering:: template_modifier) ]
@@ -240,7 +240,7 @@ pub struct InvalidAsmTemplateModifierConst {
240240}
241241
242242#[ derive( SessionDiagnostic , Clone , Copy ) ]
243- #[ error ( ast_lowering:: invalid_asm_template_modifier_sym) ]
243+ #[ diag ( ast_lowering:: invalid_asm_template_modifier_sym) ]
244244pub struct InvalidAsmTemplateModifierSym {
245245 #[ primary_span]
246246 #[ label( ast_lowering:: template_modifier) ]
@@ -250,15 +250,15 @@ pub struct InvalidAsmTemplateModifierSym {
250250}
251251
252252#[ derive( SessionDiagnostic , Clone , Copy ) ]
253- #[ error ( ast_lowering:: register_class_only_clobber) ]
253+ #[ diag ( ast_lowering:: register_class_only_clobber) ]
254254pub struct RegisterClassOnlyClobber {
255255 #[ primary_span]
256256 pub op_span : Span ,
257257 pub reg_class_name : Symbol ,
258258}
259259
260260#[ derive( SessionDiagnostic , Clone , Copy ) ]
261- #[ error ( ast_lowering:: register_conflict) ]
261+ #[ diag ( ast_lowering:: register_conflict) ]
262262pub struct RegisterConflict < ' a > {
263263 #[ primary_span]
264264 #[ label( ast_lowering:: register1) ]
@@ -273,7 +273,7 @@ pub struct RegisterConflict<'a> {
273273
274274#[ derive( SessionDiagnostic , Clone , Copy ) ]
275275#[ help]
276- #[ error ( ast_lowering:: sub_tuple_binding) ]
276+ #[ diag ( ast_lowering:: sub_tuple_binding) ]
277277pub struct SubTupleBinding < ' a > {
278278 #[ primary_span]
279279 #[ label]
@@ -289,7 +289,7 @@ pub struct SubTupleBinding<'a> {
289289}
290290
291291#[ derive( SessionDiagnostic , Clone , Copy ) ]
292- #[ error ( ast_lowering:: extra_double_dot) ]
292+ #[ diag ( ast_lowering:: extra_double_dot) ]
293293pub struct ExtraDoubleDot < ' a > {
294294 #[ primary_span]
295295 #[ label]
@@ -301,28 +301,28 @@ pub struct ExtraDoubleDot<'a> {
301301
302302#[ derive( SessionDiagnostic , Clone , Copy ) ]
303303#[ note]
304- #[ error ( ast_lowering:: misplaced_double_dot) ]
304+ #[ diag ( ast_lowering:: misplaced_double_dot) ]
305305pub struct MisplacedDoubleDot {
306306 #[ primary_span]
307307 pub span : Span ,
308308}
309309
310310#[ derive( SessionDiagnostic , Clone , Copy ) ]
311- #[ error ( ast_lowering:: misplaced_relax_trait_bound) ]
311+ #[ diag ( ast_lowering:: misplaced_relax_trait_bound) ]
312312pub struct MisplacedRelaxTraitBound {
313313 #[ primary_span]
314314 pub span : Span ,
315315}
316316
317317#[ 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) ]
319319pub struct NotSupportedForLifetimeBinderAsyncClosure {
320320 #[ primary_span]
321321 pub span : Span ,
322322}
323323
324324#[ derive( SessionDiagnostic , Clone , Copy ) ]
325- #[ error ( ast_lowering:: arbitrary_expression_in_pattern) ]
325+ #[ diag ( ast_lowering:: arbitrary_expression_in_pattern) ]
326326pub struct ArbitraryExpressionInPattern {
327327 #[ primary_span]
328328 pub span : Span ,
0 commit comments