Skip to content

Commit 3d682cd

Browse files
committed
Revert "Make MaybeStorageLive drop-aware"
This reverts commit dd2eabc.
1 parent 5d8f59f commit 3d682cd

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/librustc_mir/dataflow/impls/storage_liveness.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,9 @@ impl<'a, 'tcx> BitDenotation<'tcx> for MaybeStorageLive<'a, 'tcx> {
4343
}
4444

4545
fn terminator_effect(&self,
46-
sets: &mut BlockSets<'_, Local>,
47-
loc: Location) {
48-
match &self.mir[loc.block].terminator().kind {
49-
TerminatorKind::Drop { location, .. } => {
50-
if let Some(l) = location.local_or_deref_local() {
51-
sets.kill(l);
52-
}
53-
}
54-
_ => (),
55-
}
46+
_sets: &mut BlockSets<'_, Local>,
47+
_loc: Location) {
48+
// Terminators have no effect
5649
}
5750

5851
fn propagate_call_return(

0 commit comments

Comments
 (0)