Skip to content

Commit 4f19bf4

Browse files
committed
Update from error to diag
1 parent f970b38 commit 4f19bf4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_trait_selection/src/errors.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use rustc_macros::SessionDiagnostic;
22
use rustc_span::Span;
33

44
#[derive(SessionDiagnostic)]
5-
#[error(trait_selection::dump_vtable_entries)]
5+
#[diag(trait_selection::dump_vtable_entries)]
66
pub struct DumpVTableEntries {
77
#[primary_span]
88
pub span: Span,
@@ -11,7 +11,7 @@ pub struct DumpVTableEntries {
1111
}
1212

1313
#[derive(SessionDiagnostic)]
14-
#[error(trait_selection::unable_to_construct_constant_value)]
14+
#[diag(trait_selection::unable_to_construct_constant_value)]
1515
pub struct UnableToConstructConstantValue {
1616
#[primary_span]
1717
pub span: Span,
@@ -20,7 +20,7 @@ pub struct UnableToConstructConstantValue {
2020

2121
#[derive(SessionDiagnostic)]
2222
#[help]
23-
#[error(trait_selection::auto_deref_reached_recursion_limit, code = "E0055")]
23+
#[diag(trait_selection::auto_deref_reached_recursion_limit, code = "E0055")]
2424
pub struct AutoDerefReachedRecursionLimit {
2525
#[primary_span]
2626
#[label]
@@ -31,23 +31,23 @@ pub struct AutoDerefReachedRecursionLimit {
3131
}
3232

3333
#[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")]
3535
pub struct EmptyOnClauseInOnUnimplemented {
3636
#[primary_span]
3737
#[label]
3838
pub span: Span,
3939
}
4040

4141
#[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")]
4343
pub struct InvalidOnClauseInOnUnimplemented {
4444
#[primary_span]
4545
#[label]
4646
pub span: Span,
4747
}
4848

4949
#[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")]
5151
pub struct NoValueInOnUnimplemented {
5252
#[primary_span]
5353
#[label]

0 commit comments

Comments
 (0)