Skip to content

Commit d7824f2

Browse files
committed
remove some deref_finder uses
elaborate drops and inline don't seem to actually need it
1 parent 0b21c17 commit d7824f2

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

compiler/rustc_mir_transform/src/elaborate_drops.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use rustc_mir_dataflow::{
1414
use rustc_span::Span;
1515
use tracing::{debug, instrument};
1616

17-
use crate::deref_separator::deref_finder;
1817
use crate::elaborate_drop::{DropElaborator, DropFlagMode, DropStyle, Unwind, elaborate_drop};
1918
use crate::patch::MirPatch;
2019

@@ -87,7 +86,6 @@ impl<'tcx> crate::MirPass<'tcx> for ElaborateDrops {
8786
.elaborate()
8887
};
8988
elaborate_patch.apply(body);
90-
deref_finder(tcx, body, true);
9189
}
9290

9391
fn is_required(&self) -> bool {

compiler/rustc_mir_transform/src/inline.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use rustc_span::source_map::Spanned;
2020
use tracing::{debug, instrument, trace, trace_span};
2121

2222
use crate::cost_checker::{CostChecker, is_call_like};
23-
use crate::deref_separator::deref_finder;
2423
use crate::simplify::simplify_cfg;
2524
use crate::validate::validate_types;
2625
use crate::{check_inline, util};
@@ -64,7 +63,6 @@ impl<'tcx> crate::MirPass<'tcx> for Inline {
6463
if inline::<NormalInliner<'tcx>>(tcx, body) {
6564
debug!("running simplify cfg on {:?}", body.source);
6665
simplify_cfg(tcx, body);
67-
deref_finder(tcx, body, false);
6866
}
6967
}
7068

@@ -100,7 +98,6 @@ impl<'tcx> crate::MirPass<'tcx> for ForceInline {
10098
if inline::<ForceInliner<'tcx>>(tcx, body) {
10199
debug!("running simplify cfg on {:?}", body.source);
102100
simplify_cfg(tcx, body);
103-
deref_finder(tcx, body, false);
104101
}
105102
}
106103
}

0 commit comments

Comments
 (0)