2022-08-19 09:21:14 +00:00
|
|
|
use rustc_macros::SessionDiagnostic;
|
|
|
|
use rustc_span::{Span, Symbol};
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::path_must_end_in_filename)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PathMustEndInFilename {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::unknown_formatter)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct UnknownFormatter {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::duplicate_values_for)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct DuplicateValuesFor {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
pub name: Symbol,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::requires_an_argument)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct RequiresAnArgument {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
pub name: Symbol,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::stop_after_dataflow_ended_compilation)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct StopAfterDataFlowEndedCompilation;
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::peek_must_be_place_or_ref_place)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PeekMustBePlaceOrRefPlace {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::peek_must_be_not_temporary)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PeekMustBeNotTemporary {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::peek_bit_not_set)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PeekBitNotSet {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::peek_argument_not_a_local)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PeekArgumentNotALocal {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 12:48:15 +00:00
|
|
|
#[diag(mir_dataflow::peek_argument_untracked)]
|
2022-08-19 09:21:14 +00:00
|
|
|
pub(crate) struct PeekArgumentUntracked {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|