1 use rustc_macros::SessionDiagnostic;
2 use rustc_span::{Span, Symbol};
4 #[derive(SessionDiagnostic)]
5 #[diag(mir_dataflow::path_must_end_in_filename)]
6 pub(crate) struct PathMustEndInFilename {
11 #[derive(SessionDiagnostic)]
12 #[diag(mir_dataflow::unknown_formatter)]
13 pub(crate) struct UnknownFormatter {
18 #[derive(SessionDiagnostic)]
19 #[diag(mir_dataflow::duplicate_values_for)]
20 pub(crate) struct DuplicateValuesFor {
26 #[derive(SessionDiagnostic)]
27 #[diag(mir_dataflow::requires_an_argument)]
28 pub(crate) struct RequiresAnArgument {
34 #[derive(SessionDiagnostic)]
35 #[diag(mir_dataflow::stop_after_dataflow_ended_compilation)]
36 pub(crate) struct StopAfterDataFlowEndedCompilation;
38 #[derive(SessionDiagnostic)]
39 #[diag(mir_dataflow::peek_must_be_place_or_ref_place)]
40 pub(crate) struct PeekMustBePlaceOrRefPlace {
45 #[derive(SessionDiagnostic)]
46 #[diag(mir_dataflow::peek_must_be_not_temporary)]
47 pub(crate) struct PeekMustBeNotTemporary {
52 #[derive(SessionDiagnostic)]
53 #[diag(mir_dataflow::peek_bit_not_set)]
54 pub(crate) struct PeekBitNotSet {
59 #[derive(SessionDiagnostic)]
60 #[diag(mir_dataflow::peek_argument_not_a_local)]
61 pub(crate) struct PeekArgumentNotALocal {
66 #[derive(SessionDiagnostic)]
67 #[diag(mir_dataflow::peek_argument_untracked)]
68 pub(crate) struct PeekArgumentUntracked {