about summary refs log tree commit diff
path: root/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-03-10 14:05:11 +0100
committerRalf Jung <post@ralfj.de>2024-03-10 14:59:41 +0100
commit7d99e80c55486780b59c3b947b20e72344a3bdb2 (patch)
tree99519605d4e37af25e9a5ac2e1cc7b67262d036c /tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
parent3521a2f2f317cb978063842485c7d1bc86ec82b6 (diff)
downloadrust-7d99e80c55486780b59c3b947b20e72344a3bdb2.tar.gz
rust-7d99e80c55486780b59c3b947b20e72344a3bdb2.zip
MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way
Diffstat (limited to 'tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff')
-rw-r--r--tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff b/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
index 5848288ecfd..7410af284dc 100644
--- a/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
+++ b/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
@@ -41,7 +41,7 @@
           StorageLive(_5);
           StorageLive(_6);
           StorageLive(_7);
-          _19 = const _;
+          _19 = const discriminant::<T>::promoted[2];
           _7 = &(*_19);
           _6 = &(*_7);
 -         _5 = discriminant_value::<i32>(move _6) -> [return: bb2, unwind unreachable];
@@ -56,7 +56,7 @@
           StorageLive(_9);
           StorageLive(_10);
           StorageLive(_11);
-          _18 = const _;
+          _18 = const discriminant::<T>::promoted[1];
           _11 = &(*_18);
           _10 = &(*_11);
 -         _9 = discriminant_value::<()>(move _10) -> [return: bb3, unwind unreachable];
@@ -71,7 +71,7 @@
           StorageLive(_13);
           StorageLive(_14);
           StorageLive(_15);
-          _17 = const _;
+          _17 = const discriminant::<T>::promoted[0];
           _15 = &(*_17);
           _14 = &(*_15);
 -         _13 = discriminant_value::<E>(move _14) -> [return: bb4, unwind unreachable];