1
Fork 0

Match MIR statements exhaustively

This commit is contained in:
Jonas Schievink 2020-02-16 21:12:46 +01:00
parent 7d6b8c414e
commit f77d1076ab

View file

@ -129,7 +129,14 @@ impl<'mir, 'tcx> BitDenotation<'tcx> for RequiresStorage<'mir, 'tcx> {
sets.gen(place.local);
}
}
_ => (),
// Nothing to do for these. Match exhaustively so this fails to compile when new
// variants are added.
StatementKind::AscribeUserType(..)
| StatementKind::FakeRead(..)
| StatementKind::Nop
| StatementKind::Retag(..)
| StatementKind::StorageLive(..) => {}
}
}