Skip to content

Commit 134d819

Browse files
committed
Stop deaggegating MIR.
1 parent 6a0b218 commit 134d819

File tree

4 files changed

+0
-132
lines changed

4 files changed

+0
-132
lines changed

compiler/rustc_const_eval/src/util/aggregate.rs

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

compiler/rustc_const_eval/src/util/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub mod aggregate;
21
mod alignment;
32
mod call_kind;
43
pub mod collect_writes;
@@ -7,7 +6,6 @@ mod find_self_call;
76
mod might_permit_raw_init;
87
mod type_name;
98

10-
pub use self::aggregate::expand_aggregate;
119
pub use self::alignment::is_disaligned;
1210
pub use self::call_kind::{call_kind, CallDesugaringKind, CallKind};
1311
pub use self::compare_types::{is_equal_up_to_subtyping, is_subtype};

compiler/rustc_mir_transform/src/deaggregator.rs

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

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ mod coverage;
6060
mod ctfe_limit;
6161
mod dataflow_const_prop;
6262
mod dead_store_elimination;
63-
mod deaggregator;
6463
mod deduce_param_attrs;
6564
mod deduplicate_blocks;
6665
mod deref_separator;
@@ -523,9 +522,6 @@ fn run_runtime_lowering_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
523522
&elaborate_box_derefs::ElaborateBoxDerefs,
524523
&generator::StateTransform,
525524
&add_retag::AddRetag,
526-
// Deaggregator is necessary for const prop. We may want to consider implementing
527-
// CTFE support for aggregates.
528-
&deaggregator::Deaggregator,
529525
&Lint(const_prop_lint::ConstProp),
530526
];
531527
pm::run_passes_no_validate(tcx, body, passes, Some(MirPhase::Runtime(RuntimePhase::Initial)));

0 commit comments

Comments
 (0)