Revert "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung"
This reverts commitb57d93d8b9
, reversing changes made to0aeaa5eb22
.
This commit is contained in:
parent
0bb4880581
commit
122a55bb44
100 changed files with 1663 additions and 1451 deletions
|
@ -11,16 +11,19 @@
|
|||
let mut _6: &[u8];
|
||||
let mut _7: &[u8; N];
|
||||
let _8: usize;
|
||||
let mut _9: bool;
|
||||
let _10: usize;
|
||||
let mut _11: bool;
|
||||
let mut _9: usize;
|
||||
let mut _10: bool;
|
||||
let _11: usize;
|
||||
let mut _12: usize;
|
||||
let mut _13: bool;
|
||||
|
||||
bb0: {
|
||||
- StorageLive(_3);
|
||||
+ nop;
|
||||
StorageLive(_4);
|
||||
_4 = copy _1;
|
||||
StorageLive(_5);
|
||||
- StorageLive(_5);
|
||||
+ nop;
|
||||
StorageLive(_6);
|
||||
StorageLive(_7);
|
||||
_7 = &(*_2);
|
||||
|
@ -40,13 +43,16 @@
|
|||
}
|
||||
|
||||
bb2: {
|
||||
StorageDead(_5);
|
||||
- StorageDead(_5);
|
||||
+ nop;
|
||||
StorageDead(_4);
|
||||
StorageLive(_8);
|
||||
_8 = copy _1;
|
||||
- _9 = Lt(copy _8, const N);
|
||||
- assert(move _9, "index out of bounds: the length is {} but the index is {}", const N, copy _8) -> [success: bb3, unwind continue];
|
||||
+ _9 = copy _3;
|
||||
- _9 = Len((*_2));
|
||||
- _10 = Lt(copy _8, copy _9);
|
||||
- assert(move _10, "index out of bounds: the length is {} but the index is {}", move _9, copy _8) -> [success: bb3, unwind continue];
|
||||
+ _9 = const N;
|
||||
+ _10 = copy _3;
|
||||
+ assert(copy _3, "index out of bounds: the length is {} but the index is {}", const N, copy _1) -> [success: bb3, unwind continue];
|
||||
}
|
||||
|
||||
|
@ -58,20 +64,23 @@
|
|||
}
|
||||
|
||||
bb4: {
|
||||
StorageDead(_5);
|
||||
- StorageDead(_5);
|
||||
+ nop;
|
||||
StorageDead(_4);
|
||||
StorageLive(_10);
|
||||
_10 = const 0_usize;
|
||||
- _11 = Lt(copy _10, const N);
|
||||
- assert(move _11, "index out of bounds: the length is {} but the index is {}", const N, copy _10) -> [success: bb5, unwind continue];
|
||||
+ _11 = Lt(const 0_usize, const N);
|
||||
+ assert(move _11, "index out of bounds: the length is {} but the index is {}", const N, const 0_usize) -> [success: bb5, unwind continue];
|
||||
StorageLive(_11);
|
||||
_11 = const 0_usize;
|
||||
- _12 = Len((*_2));
|
||||
- _13 = Lt(copy _11, copy _12);
|
||||
- assert(move _13, "index out of bounds: the length is {} but the index is {}", move _12, copy _11) -> [success: bb5, unwind continue];
|
||||
+ _12 = const N;
|
||||
+ _13 = Lt(const 0_usize, const N);
|
||||
+ assert(move _13, "index out of bounds: the length is {} but the index is {}", const N, const 0_usize) -> [success: bb5, unwind continue];
|
||||
}
|
||||
|
||||
bb5: {
|
||||
- (*_2)[_10] = const 42_u8;
|
||||
- (*_2)[_11] = const 42_u8;
|
||||
+ (*_2)[0 of 1] = const 42_u8;
|
||||
StorageDead(_10);
|
||||
StorageDead(_11);
|
||||
_0 = const 42_u8;
|
||||
goto -> bb6;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue