diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-19 22:13:00 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-27 23:42:47 +0000 |
| commit | 057313b7a607513d6c1aa82e454e2370025f3b9a (patch) | |
| tree | c8ebc7bdfe431a98b9c6e7dddef2f0e5644edd78 /tests/mir-opt/dataflow-const-prop/array_index.rs | |
| parent | 1cbb062e54e376abe8b6f146f64c0d849e30c476 (diff) | |
| download | rust-057313b7a607513d6c1aa82e454e2370025f3b9a.tar.gz rust-057313b7a607513d6c1aa82e454e2370025f3b9a.zip | |
Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung"
This reverts commit 122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/array_index.rs')
| -rw-r--r-- | tests/mir-opt/dataflow-const-prop/array_index.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/array_index.rs b/tests/mir-opt/dataflow-const-prop/array_index.rs index e442ef99f79..1aa8dcd28f4 100644 --- a/tests/mir-opt/dataflow-const-prop/array_index.rs +++ b/tests/mir-opt/dataflow-const-prop/array_index.rs @@ -11,9 +11,10 @@ fn main() { // CHECK: [[array_lit]] = [const 0_u32, const 1_u32, const 2_u32, const 3_u32]; // CHECK-NOT: {{_.*}} = Len( + // CHECK-NOT: {{_.*}} = PtrMetadata( // CHECK-NOT: {{_.*}} = Lt( // CHECK-NOT: assert(move _ - // CHECK: {{_.*}} = const 4_usize; + // CHECK: {{_.*}} = const 2_usize; // CHECK: {{_.*}} = const true; // CHECK: assert(const true // CHECK: [[x]] = copy [[array_lit]][2 of 3]; |
