about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/array_index.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2025-01-18 22:09:19 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2025-01-18 22:09:35 +0000
commit122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d (patch)
treefb767afc334273592893acccd71c2ba8e4903fae /tests/mir-opt/dataflow-const-prop/array_index.rs
parent0bb4880581a6963e0b895f9550e9147c68b9537a (diff)
downloadrust-122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d.tar.gz
rust-122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d.zip
Revert "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung"
This reverts commit b57d93d8b9525fa261404b4cd9c0670eeb1264b8, reversing
changes made to 0aeaa5eb22180fdf12a8489e63c4daa18da6f236.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/array_index.rs')
-rw-r--r--tests/mir-opt/dataflow-const-prop/array_index.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/array_index.rs b/tests/mir-opt/dataflow-const-prop/array_index.rs
index 1aa8dcd28f4..e442ef99f79 100644
--- a/tests/mir-opt/dataflow-const-prop/array_index.rs
+++ b/tests/mir-opt/dataflow-const-prop/array_index.rs
@@ -11,10 +11,9 @@ 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 2_usize;
+    // CHECK:       {{_.*}} = const 4_usize;
     // CHECK:       {{_.*}} = const true;
     // CHECK:       assert(const true
     // CHECK:       [[x]] = copy [[array_lit]][2 of 3];