1
Fork 0

Represent the raw pointer for a array length check as a new kind of fake borrow

This commit is contained in:
Michael Goulet 2025-01-19 22:45:03 +00:00
parent 057313b7a6
commit eeecb56b73
26 changed files with 199 additions and 89 deletions

View file

@ -700,7 +700,7 @@ where
statements: vec![
self.assign(
ptr,
Rvalue::RawPtr(Mutability::Mut, tcx.mk_place_index(self.place, cur)),
Rvalue::RawPtr(RawPtrKind::Mut, tcx.mk_place_index(self.place, cur)),
),
self.assign(
cur.into(),
@ -816,7 +816,7 @@ where
let mut delegate_block = BasicBlockData {
statements: vec![
self.assign(Place::from(array_ptr), Rvalue::RawPtr(Mutability::Mut, self.place)),
self.assign(Place::from(array_ptr), Rvalue::RawPtr(RawPtrKind::Mut, self.place)),
self.assign(
Place::from(slice_ptr),
Rvalue::Cast(