Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung"
This reverts commit 122a55bb44
.
This commit is contained in:
parent
1cbb062e54
commit
057313b7a6
99 changed files with 1432 additions and 1655 deletions
|
@ -15,7 +15,7 @@ fn fun(_1: &[T]) -> &T {
|
|||
StorageLive(_2);
|
||||
StorageLive(_3);
|
||||
_3 = const 0_usize;
|
||||
_4 = Len((*_1));
|
||||
_4 = PtrMetadata(copy _1);
|
||||
_5 = Lt(copy _3, copy _4);
|
||||
assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, copy _3) -> [success: bb1, unwind: bb2];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue