Revert "Make MaybeStorageLive drop-aware"

This reverts commit dd2eabc49d.
This commit is contained in:
Tyler Mandry 2019-05-30 13:28:31 -07:00
parent 5d8f59f4b1
commit 3d682cd941

View file

@ -43,16 +43,9 @@ impl<'a, 'tcx> BitDenotation<'tcx> for MaybeStorageLive<'a, 'tcx> {
}
fn terminator_effect(&self,
sets: &mut BlockSets<'_, Local>,
loc: Location) {
match &self.mir[loc.block].terminator().kind {
TerminatorKind::Drop { location, .. } => {
if let Some(l) = location.local_or_deref_local() {
sets.kill(l);
}
}
_ => (),
}
_sets: &mut BlockSets<'_, Local>,
_loc: Location) {
// Terminators have no effect
}
fn propagate_call_return(