remove some deref_finder uses
elaborate drops and inline don't seem to actually need it
This commit is contained in:
parent
2da55cdb2c
commit
033474bacf
2 changed files with 0 additions and 5 deletions
|
|
@ -14,7 +14,6 @@ use rustc_mir_dataflow::{
|
|||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use crate::deref_separator::deref_finder;
|
||||
use crate::elaborate_drop::{DropElaborator, DropFlagMode, DropStyle, Unwind, elaborate_drop};
|
||||
use crate::patch::MirPatch;
|
||||
|
||||
|
|
@ -87,7 +86,6 @@ impl<'tcx> crate::MirPass<'tcx> for ElaborateDrops {
|
|||
.elaborate()
|
||||
};
|
||||
elaborate_patch.apply(body);
|
||||
deref_finder(tcx, body, true);
|
||||
}
|
||||
|
||||
fn is_required(&self) -> bool {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ use rustc_span::source_map::Spanned;
|
|||
use tracing::{debug, instrument, trace, trace_span};
|
||||
|
||||
use crate::cost_checker::{CostChecker, is_call_like};
|
||||
use crate::deref_separator::deref_finder;
|
||||
use crate::simplify::{UsedInStmtLocals, simplify_cfg};
|
||||
use crate::validate::validate_types;
|
||||
use crate::{check_inline, util};
|
||||
|
|
@ -64,7 +63,6 @@ impl<'tcx> crate::MirPass<'tcx> for Inline {
|
|||
if inline::<NormalInliner<'tcx>>(tcx, body) {
|
||||
debug!("running simplify cfg on {:?}", body.source);
|
||||
simplify_cfg(tcx, body);
|
||||
deref_finder(tcx, body, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +98,6 @@ impl<'tcx> crate::MirPass<'tcx> for ForceInline {
|
|||
if inline::<ForceInliner<'tcx>>(tcx, body) {
|
||||
debug!("running simplify cfg on {:?}", body.source);
|
||||
simplify_cfg(tcx, body);
|
||||
deref_finder(tcx, body, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue