Skip to content

Commit b198bf8

Browse files
committed
Rebase fallout.
1 parent 49922d5 commit b198bf8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_mir_transform/src/liveness.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ impl<'a, 'tcx> AssignmentResult<'a, 'tcx> {
741741
ever_live.union(live);
742742
match &statement.kind {
743743
StatementKind::Assign(box (place, _))
744-
| StatementKind::Deinit(box place)
745744
| StatementKind::SetDiscriminant { box place, .. } => {
746745
check_place(*place, AccessKind::Assign, statement.source_info, live);
747746
}
@@ -1345,9 +1344,7 @@ impl DefUse {
13451344
let is_indirect = is_indirect(projection);
13461345
match context {
13471346
PlaceContext::MutatingUse(
1348-
MutatingUseContext::Store
1349-
| MutatingUseContext::Deinit
1350-
| MutatingUseContext::SetDiscriminant,
1347+
MutatingUseContext::Store | MutatingUseContext::SetDiscriminant,
13511348
) => {
13521349
if is_indirect {
13531350
// Treat derefs as a use of the base local. `*p = 4` is not a def of `p` but a

0 commit comments

Comments
 (0)