Skip to content

Commit

Permalink
Bug on PlaceMention in dest-prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Mar 9, 2023
1 parent 45f2a1a commit 09dc10c
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 09dc10c

Please sign in to comment.