@@ -89,31 +89,31 @@ pub(crate) struct TransientMutBorrowErrRaw {
8989}
9090
9191#[ derive( SessionDiagnostic ) ]
92- #[ error ( const_eval:: max_num_nodes_in_const) ]
92+ #[ diag ( const_eval:: max_num_nodes_in_const) ]
9393pub ( crate ) struct MaxNumNodesInConstErr {
9494 #[ primary_span]
9595 pub span : Span ,
9696 pub s : String ,
9797}
9898
9999#[ derive( SessionDiagnostic ) ]
100- #[ error ( const_eval:: unallowed_fn_pointer_call) ]
100+ #[ diag ( const_eval:: unallowed_fn_pointer_call) ]
101101pub ( crate ) struct UnallowedFnPointerCall {
102102 #[ primary_span]
103103 pub span : Span ,
104104 pub kind : ConstContext ,
105105}
106106
107107#[ derive( SessionDiagnostic ) ]
108- #[ error ( const_eval:: unstable_const_fn) ]
108+ #[ diag ( const_eval:: unstable_const_fn) ]
109109pub ( crate ) struct UnstableConstFn {
110110 #[ primary_span]
111111 pub span : Span ,
112112 pub def_path : String ,
113113}
114114
115115#[ derive( SessionDiagnostic ) ]
116- #[ error ( const_eval:: unallowed_mutable_refs, code = "E0764" ) ]
116+ #[ diag ( const_eval:: unallowed_mutable_refs, code = "E0764" ) ]
117117pub ( crate ) struct UnallowedMutableRefs {
118118 #[ primary_span]
119119 pub span : Span ,
@@ -123,7 +123,7 @@ pub(crate) struct UnallowedMutableRefs {
123123}
124124
125125#[ derive( SessionDiagnostic ) ]
126- #[ error ( const_eval:: unallowed_mutable_refs_raw, code = "E0764" ) ]
126+ #[ diag ( const_eval:: unallowed_mutable_refs_raw, code = "E0764" ) ]
127127pub ( crate ) struct UnallowedMutableRefsRaw {
128128 #[ primary_span]
129129 pub span : Span ,
@@ -132,15 +132,15 @@ pub(crate) struct UnallowedMutableRefsRaw {
132132 pub teach : Option < ( ) > ,
133133}
134134#[ derive( SessionDiagnostic ) ]
135- #[ error ( const_eval:: non_const_fmt_macro_call, code = "E0015" ) ]
135+ #[ diag ( const_eval:: non_const_fmt_macro_call, code = "E0015" ) ]
136136pub ( crate ) struct NonConstFmtMacroCall {
137137 #[ primary_span]
138138 pub span : Span ,
139139 pub kind : ConstContext ,
140140}
141141
142142#[ derive( SessionDiagnostic ) ]
143- #[ error ( const_eval:: non_const_fn_call, code = "E0015" ) ]
143+ #[ diag ( const_eval:: non_const_fn_call, code = "E0015" ) ]
144144pub ( crate ) struct NonConstFnCall {
145145 #[ primary_span]
146146 pub span : Span ,
@@ -149,15 +149,15 @@ pub(crate) struct NonConstFnCall {
149149}
150150
151151#[ derive( SessionDiagnostic ) ]
152- #[ error ( const_eval:: unallowed_op_in_const_context) ]
152+ #[ diag ( const_eval:: unallowed_op_in_const_context) ]
153153pub ( crate ) struct UnallowedOpInConstContext {
154154 #[ primary_span]
155155 pub span : Span ,
156156 pub msg : String ,
157157}
158158
159159#[ derive( SessionDiagnostic ) ]
160- #[ error ( const_eval:: unallowed_heap_allocations, code = "E0010" ) ]
160+ #[ diag ( const_eval:: unallowed_heap_allocations, code = "E0010" ) ]
161161pub ( crate ) struct UnallowedHeapAllocations {
162162 #[ primary_span]
163163 #[ label]
@@ -168,15 +168,15 @@ pub(crate) struct UnallowedHeapAllocations {
168168}
169169
170170#[ derive( SessionDiagnostic ) ]
171- #[ error ( const_eval:: unallowed_inline_asm, code = "E0015" ) ]
171+ #[ diag ( const_eval:: unallowed_inline_asm, code = "E0015" ) ]
172172pub ( crate ) struct UnallowedInlineAsm {
173173 #[ primary_span]
174174 pub span : Span ,
175175 pub kind : ConstContext ,
176176}
177177
178178#[ derive( SessionDiagnostic ) ]
179- #[ error ( const_eval:: interior_mutable_data_refer, code = "E0492" ) ]
179+ #[ diag ( const_eval:: interior_mutable_data_refer, code = "E0492" ) ]
180180pub ( crate ) struct InteriorMutableDataRefer {
181181 #[ primary_span]
182182 #[ label]
@@ -189,7 +189,7 @@ pub(crate) struct InteriorMutableDataRefer {
189189}
190190
191191#[ derive( SessionDiagnostic ) ]
192- #[ error ( const_eval:: interior_mutability_borrow) ]
192+ #[ diag ( const_eval:: interior_mutability_borrow) ]
193193pub ( crate ) struct InteriorMutabilityBorrow {
194194 #[ primary_span]
195195 pub span : Span ,
0 commit comments