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,21 +1,21 @@
|
|||
use rustc_macros::DiagnosticHandler;
|
||||
use rustc_macros::Diagnostic;
|
||||
use rustc_span::{Span, Symbol};
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::path_must_end_in_filename)]
|
||||
pub(crate) struct PathMustEndInFilename {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::unknown_formatter)]
|
||||
pub(crate) struct UnknownFormatter {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::duplicate_values_for)]
|
||||
pub(crate) struct DuplicateValuesFor {
|
||||
#[primary_span]
|
||||
|
@ -23,7 +23,7 @@ pub(crate) struct DuplicateValuesFor {
|
|||
pub name: Symbol,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::requires_an_argument)]
|
||||
pub(crate) struct RequiresAnArgument {
|
||||
#[primary_span]
|
||||
|
@ -31,39 +31,39 @@ pub(crate) struct RequiresAnArgument {
|
|||
pub name: Symbol,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::stop_after_dataflow_ended_compilation)]
|
||||
pub(crate) struct StopAfterDataFlowEndedCompilation;
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::peek_must_be_place_or_ref_place)]
|
||||
pub(crate) struct PeekMustBePlaceOrRefPlace {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::peek_must_be_not_temporary)]
|
||||
pub(crate) struct PeekMustBeNotTemporary {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::peek_bit_not_set)]
|
||||
pub(crate) struct PeekBitNotSet {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::peek_argument_not_a_local)]
|
||||
pub(crate) struct PeekArgumentNotALocal {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(mir_dataflow::peek_argument_untracked)]
|
||||
pub(crate) struct PeekArgumentUntracked {
|
||||
#[primary_span]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue