Skip to content

Commit

Permalink
Auto merge of #101522 - oli-obk:miriup, r=oli-obk
Browse files Browse the repository at this point in the history
Update miri submodule

fixes #101344

cc `@rust-lang/miri`

r? `@ghost`
  • Loading branch information
bors committed Sep 7, 2022
2 parents a4d0341 + 419c4e1 commit f91ca28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion compiler/rustc_middle/src/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,9 @@ impl<'tcx> Place<'tcx> {
/// It's guaranteed to be in the first place
pub fn has_deref(&self) -> bool {
// To make sure this is not accidently used in wrong mir phase
debug_assert!(!self.projection[1..].contains(&PlaceElem::Deref));
debug_assert!(
self.projection.is_empty() || !self.projection[1..].contains(&PlaceElem::Deref)
);
self.projection.first() == Some(&PlaceElem::Deref)
}

Expand Down

0 comments on commit f91ca28

Please sign in to comment.