diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-06-02 19:41:00 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-06-10 00:06:02 -0700 |
| commit | a4d0fc39bacbd9520b1ccc3eaa051bd7086ce484 (patch) | |
| tree | 1065b396446da35bacb6119ffa515ed5a740c75e /tests/mir-opt/building/match | |
| parent | d2fb97fceccb7b7d71c40cc2d3c9b376fd2883aa (diff) | |
| download | rust-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.rs | 6 |
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, |
