Skip to content

Commit 419c4e1

Browse files
committed
Update miri submodule
1 parent 3c72788 commit 419c4e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/rustc_middle/src/mir/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,9 @@ impl<'tcx> Place<'tcx> {
14781478
/// It's guaranteed to be in the first place
14791479
pub fn has_deref(&self) -> bool {
14801480
// To make sure this is not accidently used in wrong mir phase
1481-
debug_assert!(!self.projection[1..].contains(&PlaceElem::Deref));
1481+
debug_assert!(
1482+
self.projection.is_empty() || !self.projection[1..].contains(&PlaceElem::Deref)
1483+
);
14821484
self.projection.first() == Some(&PlaceElem::Deref)
14831485
}
14841486

0 commit comments

Comments
 (0)