Update miri submodule
This commit is contained in:
parent
3c72788461
commit
419c4e1c4f
2 changed files with 4 additions and 2 deletions
|
@ -1478,7 +1478,9 @@ impl<'tcx> Place<'tcx> {
|
||||||
/// It's guaranteed to be in the first place
|
/// It's guaranteed to be in the first place
|
||||||
pub fn has_deref(&self) -> bool {
|
pub fn has_deref(&self) -> bool {
|
||||||
// To make sure this is not accidently used in wrong mir phase
|
// 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)
|
self.projection.first() == Some(&PlaceElem::Deref)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit dba35d2be72f4b78343d1a0f0b4737306f310672
|
Subproject commit ef3f649e49607a1fad64eb0a5139110df3efa2a7
|
Loading…
Add table
Add a link
Reference in a new issue