@@ -3,7 +3,7 @@ use rustc_macros::SessionDiagnostic;
3
3
use rustc_span:: Span ;
4
4
5
5
#[ derive( SessionDiagnostic ) ]
6
- #[ error ( const_eval:: unstable_in_stable) ]
6
+ #[ diag ( const_eval:: unstable_in_stable) ]
7
7
pub ( crate ) struct UnstableInStable {
8
8
pub gate : String ,
9
9
#[ primary_span]
@@ -22,14 +22,14 @@ pub(crate) struct UnstableInStable {
22
22
}
23
23
24
24
#[ derive( SessionDiagnostic ) ]
25
- #[ error ( const_eval:: thread_local_access, code = "E0625" ) ]
25
+ #[ diag ( const_eval:: thread_local_access, code = "E0625" ) ]
26
26
pub ( crate ) struct NonConstOpErr {
27
27
#[ primary_span]
28
28
pub span : Span ,
29
29
}
30
30
31
31
#[ derive( SessionDiagnostic ) ]
32
- #[ error ( const_eval:: static_access, code = "E0013" ) ]
32
+ #[ diag ( const_eval:: static_access, code = "E0013" ) ]
33
33
#[ help]
34
34
pub ( crate ) struct StaticAccessErr {
35
35
#[ primary_span]
@@ -41,7 +41,7 @@ pub(crate) struct StaticAccessErr {
41
41
}
42
42
43
43
#[ derive( SessionDiagnostic ) ]
44
- #[ error ( const_eval:: raw_ptr_to_int) ]
44
+ #[ diag ( const_eval:: raw_ptr_to_int) ]
45
45
#[ note]
46
46
#[ note( const_eval:: note2) ]
47
47
pub ( crate ) struct RawPtrToIntErr {
@@ -50,38 +50,38 @@ pub(crate) struct RawPtrToIntErr {
50
50
}
51
51
52
52
#[ derive( SessionDiagnostic ) ]
53
- #[ error ( const_eval:: raw_ptr_comparison) ]
53
+ #[ diag ( const_eval:: raw_ptr_comparison) ]
54
54
#[ note]
55
55
pub ( crate ) struct RawPtrComparisonErr {
56
56
#[ primary_span]
57
57
pub span : Span ,
58
58
}
59
59
60
60
#[ derive( SessionDiagnostic ) ]
61
- #[ error ( const_eval:: panic_non_str) ]
61
+ #[ diag ( const_eval:: panic_non_str) ]
62
62
pub ( crate ) struct PanicNonStrErr {
63
63
#[ primary_span]
64
64
pub span : Span ,
65
65
}
66
66
67
67
#[ derive( SessionDiagnostic ) ]
68
- #[ error ( const_eval:: mut_deref, code = "E0658" ) ]
68
+ #[ diag ( const_eval:: mut_deref, code = "E0658" ) ]
69
69
pub ( crate ) struct MutDerefErr {
70
70
#[ primary_span]
71
71
pub span : Span ,
72
72
pub kind : ConstContext ,
73
73
}
74
74
75
75
#[ derive( SessionDiagnostic ) ]
76
- #[ error ( const_eval:: transient_mut_borrow, code = "E0658" ) ]
76
+ #[ diag ( const_eval:: transient_mut_borrow, code = "E0658" ) ]
77
77
pub ( crate ) struct TransientMutBorrowErr {
78
78
#[ primary_span]
79
79
pub span : Span ,
80
80
pub kind : ConstContext ,
81
81
}
82
82
83
83
#[ derive( SessionDiagnostic ) ]
84
- #[ error ( const_eval:: transient_mut_borrow_raw, code = "E0658" ) ]
84
+ #[ diag ( const_eval:: transient_mut_borrow_raw, code = "E0658" ) ]
85
85
pub ( crate ) struct TransientMutBorrowErrRaw {
86
86
#[ primary_span]
87
87
pub span : Span ,
0 commit comments