Skip to content

Commit f620029

Browse files
authored
Unrolled build for #152073
Rollup merge of #152073 - JonathanBrouwer:convert_mir_dataflow, r=lqd Convert to inline diagnostics in `rustc_mir_dataflow` For #151366 r? @jdonszelmann
2 parents 0c40f5b + 4fdd085 commit f620029

File tree

7 files changed

+6
-30
lines changed

7 files changed

+6
-30
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3799,7 +3799,6 @@ dependencies = [
37993799
"rustc_metadata",
38003800
"rustc_middle",
38013801
"rustc_mir_build",
3802-
"rustc_mir_dataflow",
38033802
"rustc_mir_transform",
38043803
"rustc_monomorphize",
38053804
"rustc_parse",
@@ -4333,7 +4332,6 @@ dependencies = [
43334332
"rustc_abi",
43344333
"rustc_data_structures",
43354334
"rustc_errors",
4336-
"rustc_fluent_macro",
43374335
"rustc_graphviz",
43384336
"rustc_hir",
43394337
"rustc_index",

compiler/rustc_driver_impl/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ rustc_macros = { path = "../rustc_macros" }
3333
rustc_metadata = { path = "../rustc_metadata" }
3434
rustc_middle = { path = "../rustc_middle" }
3535
rustc_mir_build = { path = "../rustc_mir_build" }
36-
rustc_mir_dataflow = { path = "../rustc_mir_dataflow" }
3736
rustc_mir_transform = { path = "../rustc_mir_transform" }
3837
rustc_monomorphize = { path = "../rustc_monomorphize" }
3938
rustc_parse = { path = "../rustc_parse" }

compiler/rustc_driver_impl/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ pub static DEFAULT_LOCALE_RESOURCES: &[&str] = &[
130130
rustc_metadata::DEFAULT_LOCALE_RESOURCE,
131131
rustc_middle::DEFAULT_LOCALE_RESOURCE,
132132
rustc_mir_build::DEFAULT_LOCALE_RESOURCE,
133-
rustc_mir_dataflow::DEFAULT_LOCALE_RESOURCE,
134133
rustc_mir_transform::DEFAULT_LOCALE_RESOURCE,
135134
rustc_monomorphize::DEFAULT_LOCALE_RESOURCE,
136135
rustc_parse::DEFAULT_LOCALE_RESOURCE,

compiler/rustc_mir_dataflow/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ regex = "1"
1010
rustc_abi = { path = "../rustc_abi" }
1111
rustc_data_structures = { path = "../rustc_data_structures" }
1212
rustc_errors = { path = "../rustc_errors" }
13-
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1413
rustc_graphviz = { path = "../rustc_graphviz" }
1514
rustc_hir = { path = "../rustc_hir" }
1615
rustc_index = { path = "../rustc_index" }

compiler/rustc_mir_dataflow/messages.ftl

Lines changed: 0 additions & 17 deletions
This file was deleted.

compiler/rustc_mir_dataflow/src/errors.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@ use rustc_macros::Diagnostic;
22
use rustc_span::Span;
33

44
#[derive(Diagnostic)]
5-
#[diag(mir_dataflow_stop_after_dataflow_ended_compilation)]
5+
#[diag("stop_after_dataflow ended compilation")]
66
pub(crate) struct StopAfterDataFlowEndedCompilation;
77

88
#[derive(Diagnostic)]
9-
#[diag(mir_dataflow_peek_must_be_place_or_ref_place)]
9+
#[diag("rustc_peek: argument expression must be either `place` or `&place`")]
1010
pub(crate) struct PeekMustBePlaceOrRefPlace {
1111
#[primary_span]
1212
pub span: Span,
1313
}
1414

1515
#[derive(Diagnostic)]
16-
#[diag(mir_dataflow_peek_must_be_not_temporary)]
16+
#[diag("dataflow::sanity_check cannot feed a non-temp to rustc_peek")]
1717
pub(crate) struct PeekMustBeNotTemporary {
1818
#[primary_span]
1919
pub span: Span,
2020
}
2121

2222
#[derive(Diagnostic)]
23-
#[diag(mir_dataflow_peek_bit_not_set)]
23+
#[diag("rustc_peek: bit not set")]
2424
pub(crate) struct PeekBitNotSet {
2525
#[primary_span]
2626
pub span: Span,
2727
}
2828

2929
#[derive(Diagnostic)]
30-
#[diag(mir_dataflow_peek_argument_not_a_local)]
30+
#[diag("rustc_peek: argument was not a local")]
3131
pub(crate) struct PeekArgumentNotALocal {
3232
#[primary_span]
3333
pub span: Span,
3434
}
3535

3636
#[derive(Diagnostic)]
37-
#[diag(mir_dataflow_peek_argument_untracked)]
37+
#[diag("rustc_peek: argument untracked")]
3838
pub(crate) struct PeekArgumentUntracked {
3939
#[primary_span]
4040
pub span: Span,

compiler/rustc_mir_dataflow/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ pub mod rustc_peek;
3434
mod un_derefer;
3535
pub mod value_analysis;
3636

37-
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
38-
3937
pub struct MoveDataTypingEnv<'tcx> {
4038
pub move_data: MoveData<'tcx>,
4139
pub typing_env: ty::TypingEnv<'tcx>,

0 commit comments

Comments
 (0)