Skip to content

Commit

Permalink
Rename rustc_mir_dataflow diagnostic to mir_dataflow
Browse files Browse the repository at this point in the history
  • Loading branch information
5225225 committed Aug 23, 2022
1 parent 7f125ed commit f20cc9a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
29 changes: 29 additions & 0 deletions compiler/rustc_error_messages/locales/en-US/mir_dataflow.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
mir_dataflow_path_must_end_in_filename =
path must end in a filename
mir_dataflow_unknown_formatter =
unknown formatter
mir_dataflow_duplicate_values_for =
duplicate values for `{$name}`
mir_dataflow_requires_an_argument =
`{$name}` requires an argument
mir_dataflow_stop_after_dataflow_ended_compilation =
stop_after_dataflow ended compilation
mir_dataflow_peek_must_be_place_or_ref_place =
rustc_peek: argument expression must be either `place` or `&place`
mir_dataflow_peek_must_be_not_temporary =
dataflow::sanity_check cannot feed a non-temp to rustc_peek
mir_dataflow_peek_bit_not_set =
rustc_peek: bit not set
mir_dataflow_peek_argument_not_a_local =
rustc_peek: argument was not a local
mir_dataflow_peek_argument_untracked =
rustc_peek: argument untracked
29 changes: 0 additions & 29 deletions compiler/rustc_error_messages/locales/en-US/rustc_mir_dataflow.ftl

This file was deleted.

2 changes: 1 addition & 1 deletion compiler/rustc_error_messages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fluent_messages! {
passes => "../locales/en-US/passes.ftl",
privacy => "../locales/en-US/privacy.ftl",
typeck => "../locales/en-US/typeck.ftl",
rustc_mir_dataflow => "../locales/en-US/rustc_mir_dataflow.ftl",
mir_dataflow => "../locales/en-US/mir_dataflow.ftl",
}

pub use fluent_generated::{self as fluent, DEFAULT_LOCALE_RESOURCES};
Expand Down
20 changes: 10 additions & 10 deletions compiler/rustc_mir_dataflow/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,69 @@ use rustc_macros::SessionDiagnostic;
use rustc_span::{Span, Symbol};

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::path_must_end_in_filename)]
#[diag(mir_dataflow::path_must_end_in_filename)]
pub(crate) struct PathMustEndInFilename {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::unknown_formatter)]
#[diag(mir_dataflow::unknown_formatter)]
pub(crate) struct UnknownFormatter {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::duplicate_values_for)]
#[diag(mir_dataflow::duplicate_values_for)]
pub(crate) struct DuplicateValuesFor {
#[primary_span]
pub span: Span,
pub name: Symbol,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::requires_an_argument)]
#[diag(mir_dataflow::requires_an_argument)]
pub(crate) struct RequiresAnArgument {
#[primary_span]
pub span: Span,
pub name: Symbol,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::stop_after_dataflow_ended_compilation)]
#[diag(mir_dataflow::stop_after_dataflow_ended_compilation)]
pub(crate) struct StopAfterDataFlowEndedCompilation;

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::peek_must_be_place_or_ref_place)]
#[diag(mir_dataflow::peek_must_be_place_or_ref_place)]
pub(crate) struct PeekMustBePlaceOrRefPlace {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::peek_must_be_not_temporary)]
#[diag(mir_dataflow::peek_must_be_not_temporary)]
pub(crate) struct PeekMustBeNotTemporary {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::peek_bit_not_set)]
#[diag(mir_dataflow::peek_bit_not_set)]
pub(crate) struct PeekBitNotSet {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::peek_argument_not_a_local)]
#[diag(mir_dataflow::peek_argument_not_a_local)]
pub(crate) struct PeekArgumentNotALocal {
#[primary_span]
pub span: Span,
}

#[derive(SessionDiagnostic)]
#[diag(rustc_mir_dataflow::peek_argument_untracked)]
#[diag(mir_dataflow::peek_argument_untracked)]
pub(crate) struct PeekArgumentUntracked {
#[primary_span]
pub span: Span,
Expand Down

0 comments on commit f20cc9a

Please sign in to comment.