Skip to content

Commit b0c45f7

Browse files
committed
Regroup mir-opt tests of match building
1 parent 9ce37dc commit b0c45f7

12 files changed

+7
-6
lines changed

tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir renamed to tests/mir-opt/building/match/sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// MIR for `main` after SimplifyCfg-initial
1+
// MIR for `disjoint_ranges` after SimplifyCfg-initial
22

3-
fn main() -> () {
3+
fn disjoint_ranges() -> () {
44
let mut _0: ();
55
let _1: i32;
66
let _3: i32;

tests/mir-opt/match_test.rs renamed to tests/mir-opt/building/match/sort_candidates.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// skip-filecheck
2-
// Make sure redundant testing paths in `match` expressions are sorted out.
3-
2+
// Check specific cases of sorting candidates in match lowering.
43
#![feature(exclusive_range_pattern)]
54

6-
// EMIT_MIR match_test.main.SimplifyCfg-initial.after.mir
7-
fn main() {
5+
// EMIT_MIR sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir
6+
fn disjoint_ranges() {
87
let x = 3;
98
let b = true;
109

@@ -17,3 +16,5 @@ fn main() {
1716
_ => 3,
1817
};
1918
}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)