@@ -3,7 +3,7 @@ use rustc_macros::SessionDiagnostic;
33use  rustc_span:: Span ; 
44
55#[ derive( SessionDiagnostic ) ]  
6- #[ error ( const_eval:: unstable_in_stable) ]  
6+ #[ diag ( const_eval:: unstable_in_stable) ]  
77pub ( crate )  struct  UnstableInStable  { 
88    pub  gate :  String , 
99    #[ primary_span]  
@@ -22,14 +22,14 @@ pub(crate) struct UnstableInStable {
2222} 
2323
2424#[ derive( SessionDiagnostic ) ]  
25- #[ error ( const_eval:: thread_local_access,  code = "E0625" ) ]  
25+ #[ diag ( const_eval:: thread_local_access,  code = "E0625" ) ]  
2626pub ( crate )  struct  NonConstOpErr  { 
2727    #[ primary_span]  
2828    pub  span :  Span , 
2929} 
3030
3131#[ derive( SessionDiagnostic ) ]  
32- #[ error ( const_eval:: static_access,  code = "E0013" ) ]  
32+ #[ diag ( const_eval:: static_access,  code = "E0013" ) ]  
3333#[ help]  
3434pub ( crate )  struct  StaticAccessErr  { 
3535    #[ primary_span]  
@@ -41,7 +41,7 @@ pub(crate) struct StaticAccessErr {
4141} 
4242
4343#[ derive( SessionDiagnostic ) ]  
44- #[ error ( const_eval:: raw_ptr_to_int) ]  
44+ #[ diag ( const_eval:: raw_ptr_to_int) ]  
4545#[ note]  
4646#[ note( const_eval:: note2) ]  
4747pub ( crate )  struct  RawPtrToIntErr  { 
@@ -50,38 +50,38 @@ pub(crate) struct RawPtrToIntErr {
5050} 
5151
5252#[ derive( SessionDiagnostic ) ]  
53- #[ error ( const_eval:: raw_ptr_comparison) ]  
53+ #[ diag ( const_eval:: raw_ptr_comparison) ]  
5454#[ note]  
5555pub ( crate )  struct  RawPtrComparisonErr  { 
5656    #[ primary_span]  
5757    pub  span :  Span , 
5858} 
5959
6060#[ derive( SessionDiagnostic ) ]  
61- #[ error ( const_eval:: panic_non_str) ]  
61+ #[ diag ( const_eval:: panic_non_str) ]  
6262pub ( crate )  struct  PanicNonStrErr  { 
6363    #[ primary_span]  
6464    pub  span :  Span , 
6565} 
6666
6767#[ derive( SessionDiagnostic ) ]  
68- #[ error ( const_eval:: mut_deref,  code = "E0658" ) ]  
68+ #[ diag ( const_eval:: mut_deref,  code = "E0658" ) ]  
6969pub ( crate )  struct  MutDerefErr  { 
7070    #[ primary_span]  
7171    pub  span :  Span , 
7272    pub  kind :  ConstContext , 
7373} 
7474
7575#[ derive( SessionDiagnostic ) ]  
76- #[ error ( const_eval:: transient_mut_borrow,  code = "E0658" ) ]  
76+ #[ diag ( const_eval:: transient_mut_borrow,  code = "E0658" ) ]  
7777pub ( crate )  struct  TransientMutBorrowErr  { 
7878    #[ primary_span]  
7979    pub  span :  Span , 
8080    pub  kind :  ConstContext , 
8181} 
8282
8383#[ derive( SessionDiagnostic ) ]  
84- #[ error ( const_eval:: transient_mut_borrow_raw,  code = "E0658" ) ]  
84+ #[ diag ( const_eval:: transient_mut_borrow_raw,  code = "E0658" ) ]  
8585pub ( crate )  struct  TransientMutBorrowErrRaw  { 
8686    #[ primary_span]  
8787    pub  span :  Span , 
0 commit comments