Skip to content
Prev Previous commit
Next Next commit
Bug on PlaceMention in dest-prop.
  • Loading branch information
cjgillot committed Mar 9, 2023
commit 09dc10c9c2d7a905f3fe966b32d442f2c27128e4
5 changes: 3 additions & 2 deletions compiler/rustc_mir_transform/src/dest_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,11 @@ impl WriteInfo {
| StatementKind::ConstEvalCounter
| StatementKind::Nop
| StatementKind::Coverage(_)
| StatementKind::PlaceMention(_)
| StatementKind::StorageLive(_)
| StatementKind::StorageDead(_) => (),
StatementKind::FakeRead(_) | StatementKind::AscribeUserType(_, _) => {
StatementKind::FakeRead(_)
| StatementKind::AscribeUserType(_, _)
| StatementKind::PlaceMention(_) => {
bug!("{:?} not found in this MIR phase", statement)
}
}
Expand Down