2022-09-18 11:46:56 -04:00
|
|
|
use rustc_macros::Diagnostic;
|
2022-08-19 10:21:14 +01:00
|
|
|
use rustc_span::{Span, Symbol};
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_path_must_end_in_filename)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PathMustEndInFilename {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_unknown_formatter)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct UnknownFormatter {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_duplicate_values_for)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct DuplicateValuesFor {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
pub name: Symbol,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_requires_an_argument)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct RequiresAnArgument {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
pub name: Symbol,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_stop_after_dataflow_ended_compilation)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct StopAfterDataFlowEndedCompilation;
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_peek_must_be_place_or_ref_place)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PeekMustBePlaceOrRefPlace {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_peek_must_be_not_temporary)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PeekMustBeNotTemporary {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_peek_bit_not_set)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PeekBitNotSet {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_peek_argument_not_a_local)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PeekArgumentNotALocal {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|
|
|
|
|
2022-09-18 11:46:56 -04:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 11:07:54 +02:00
|
|
|
#[diag(mir_dataflow_peek_argument_untracked)]
|
2022-08-19 10:21:14 +01:00
|
|
|
pub(crate) struct PeekArgumentUntracked {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
}
|