UPDATE - rename DiagnosticHandler macro to Diagnostic
This commit is contained in:
parent
191fac6826
commit
a3396b2070
34 changed files with 484 additions and 484 deletions
|
@ -1,10 +1,10 @@
|
|||
use rustc_errors::{fluent, IntoDiagnostic, ErrorGuaranteed, Handler};
|
||||
use rustc_macros::DiagnosticHandler;
|
||||
use rustc_macros::Diagnostic;
|
||||
use rustc_middle::ty::{PolyTraitRef, Ty, Unevaluated};
|
||||
use rustc_session::Limit;
|
||||
use rustc_span::{Span, Symbol};
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(trait_selection::dump_vtable_entries)]
|
||||
pub struct DumpVTableEntries<'a> {
|
||||
#[primary_span]
|
||||
|
@ -13,7 +13,7 @@ pub struct DumpVTableEntries<'a> {
|
|||
pub entries: String,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(trait_selection::unable_to_construct_constant_value)]
|
||||
pub struct UnableToConstructConstantValue<'a> {
|
||||
#[primary_span]
|
||||
|
@ -21,7 +21,7 @@ pub struct UnableToConstructConstantValue<'a> {
|
|||
pub unevaluated: Unevaluated<'a>,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[help]
|
||||
#[diag(trait_selection::auto_deref_reached_recursion_limit, code = "E0055")]
|
||||
pub struct AutoDerefReachedRecursionLimit<'a> {
|
||||
|
@ -33,7 +33,7 @@ pub struct AutoDerefReachedRecursionLimit<'a> {
|
|||
pub crate_name: Symbol,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(trait_selection::empty_on_clause_in_rustc_on_unimplemented, code = "E0232")]
|
||||
pub struct EmptyOnClauseInOnUnimplemented {
|
||||
#[primary_span]
|
||||
|
@ -41,7 +41,7 @@ pub struct EmptyOnClauseInOnUnimplemented {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(trait_selection::invalid_on_clause_in_rustc_on_unimplemented, code = "E0232")]
|
||||
pub struct InvalidOnClauseInOnUnimplemented {
|
||||
#[primary_span]
|
||||
|
@ -49,7 +49,7 @@ pub struct InvalidOnClauseInOnUnimplemented {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(trait_selection::no_value_in_rustc_on_unimplemented, code = "E0232")]
|
||||
#[note]
|
||||
pub struct NoValueInOnUnimplemented {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue