Skip to content

Commit 09dc10c

Browse files
committed
Bug on PlaceMention in dest-prop.
1 parent 45f2a1a commit 09dc10c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_mir_transform/src/dest_prop.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,11 @@ impl WriteInfo {
581581
| StatementKind::ConstEvalCounter
582582
| StatementKind::Nop
583583
| StatementKind::Coverage(_)
584-
| StatementKind::PlaceMention(_)
585584
| StatementKind::StorageLive(_)
586585
| StatementKind::StorageDead(_) => (),
587-
StatementKind::FakeRead(_) | StatementKind::AscribeUserType(_, _) => {
586+
StatementKind::FakeRead(_)
587+
| StatementKind::AscribeUserType(_, _)
588+
| StatementKind::PlaceMention(_) => {
588589
bug!("{:?} not found in this MIR phase", statement)
589590
}
590591
}

0 commit comments

Comments
 (0)