about summary refs log tree commit diff
path: root/tests/mir-opt/building/match
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-06-02 19:41:00 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2024-06-10 00:06:02 -0700
commita4d0fc39bacbd9520b1ccc3eaa051bd7086ce484 (patch)
tree1065b396446da35bacb6119ffa515ed5a740c75e /tests/mir-opt/building/match
parentd2fb97fceccb7b7d71c40cc2d3c9b376fd2883aa (diff)
downloadrust-a4d0fc39bacbd9520b1ccc3eaa051bd7086ce484.tar.gz
rust-a4d0fc39bacbd9520b1ccc3eaa051bd7086ce484.zip
Add `SingleUseConsts` mir-opt pass
Diffstat (limited to 'tests/mir-opt/building/match')
-rw-r--r--tests/mir-opt/building/match/sort_candidates.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mir-opt/building/match/sort_candidates.rs b/tests/mir-opt/building/match/sort_candidates.rs
index f207f0b3234..593a975a7a4 100644
--- a/tests/mir-opt/building/match/sort_candidates.rs
+++ b/tests/mir-opt/building/match/sort_candidates.rs
@@ -5,9 +5,9 @@ fn constant_eq(s: &str, b: bool) -> u32 {
     // Check that we only test "a" once
 
     // CHECK-LABEL: fn constant_eq(
-    // CHECK: bb0: {
-    // CHECK: [[a:_.*]] = const "a";
-    // CHECK-NOT: {{_.*}} = const "a";
+    // CHECK-NOT: const "a"
+    // CHECK: {{_[0-9]+}} = const "a" as &[u8] (Transmute);
+    // CHECK-NOT: const "a"
     match (s, b) {
         ("a", _) if true => 1,
         ("b", true) => 2,