@@ -2,7 +2,7 @@ use rustc_macros::SessionDiagnostic;
2
2
use rustc_span:: Span ;
3
3
4
4
#[ derive( SessionDiagnostic ) ]
5
- #[ error ( trait_selection:: dump_vtable_entries) ]
5
+ #[ diag ( trait_selection:: dump_vtable_entries) ]
6
6
pub struct DumpVTableEntries {
7
7
#[ primary_span]
8
8
pub span : Span ,
@@ -11,7 +11,7 @@ pub struct DumpVTableEntries {
11
11
}
12
12
13
13
#[ derive( SessionDiagnostic ) ]
14
- #[ error ( trait_selection:: unable_to_construct_constant_value) ]
14
+ #[ diag ( trait_selection:: unable_to_construct_constant_value) ]
15
15
pub struct UnableToConstructConstantValue {
16
16
#[ primary_span]
17
17
pub span : Span ,
@@ -20,7 +20,7 @@ pub struct UnableToConstructConstantValue {
20
20
21
21
#[ derive( SessionDiagnostic ) ]
22
22
#[ help]
23
- #[ error ( trait_selection:: auto_deref_reached_recursion_limit, code = "E0055" ) ]
23
+ #[ diag ( trait_selection:: auto_deref_reached_recursion_limit, code = "E0055" ) ]
24
24
pub struct AutoDerefReachedRecursionLimit {
25
25
#[ primary_span]
26
26
#[ label]
@@ -31,23 +31,23 @@ pub struct AutoDerefReachedRecursionLimit {
31
31
}
32
32
33
33
#[ derive( SessionDiagnostic ) ]
34
- #[ error ( trait_selection:: empty_on_clause_in_rustc_on_unimplemented, code = "E0232" ) ]
34
+ #[ diag ( trait_selection:: empty_on_clause_in_rustc_on_unimplemented, code = "E0232" ) ]
35
35
pub struct EmptyOnClauseInOnUnimplemented {
36
36
#[ primary_span]
37
37
#[ label]
38
38
pub span : Span ,
39
39
}
40
40
41
41
#[ derive( SessionDiagnostic ) ]
42
- #[ error ( trait_selection:: invalid_on_clause_in_rustc_on_unimplemented, code = "E0232" ) ]
42
+ #[ diag ( trait_selection:: invalid_on_clause_in_rustc_on_unimplemented, code = "E0232" ) ]
43
43
pub struct InvalidOnClauseInOnUnimplemented {
44
44
#[ primary_span]
45
45
#[ label]
46
46
pub span : Span ,
47
47
}
48
48
49
49
#[ derive( SessionDiagnostic ) ]
50
- #[ error ( trait_selection:: no_value_in_rustc_on_unimplemented, code = "E0232" ) ]
50
+ #[ diag ( trait_selection:: no_value_in_rustc_on_unimplemented, code = "E0232" ) ]
51
51
pub struct NoValueInOnUnimplemented {
52
52
#[ primary_span]
53
53
#[ label]
0 commit comments