1
Fork 0

Actually keep PlaceMention if requested.

This commit is contained in:
Camille GILLOT 2023-03-18 16:11:48 +00:00
parent ddfa2463e2
commit 2870d269f5
12 changed files with 45 additions and 23 deletions

View file

@ -582,10 +582,9 @@ impl WriteInfo {
| StatementKind::Nop
| StatementKind::Coverage(_)
| StatementKind::StorageLive(_)
| StatementKind::StorageDead(_) => (),
StatementKind::FakeRead(_)
| StatementKind::AscribeUserType(_, _)
| StatementKind::PlaceMention(_) => {
| StatementKind::StorageDead(_)
| StatementKind::PlaceMention(_) => (),
StatementKind::FakeRead(_) | StatementKind::AscribeUserType(_, _) => {
bug!("{:?} not found in this MIR phase", statement)
}
}