Regroup mir-opt tests of match building
This commit is contained in:
parent
40116ad1ed
commit
e67f5294df
@ -1,6 +1,6 @@
|
||||
// MIR for `main` after SimplifyCfg-initial
|
||||
// MIR for `disjoint_ranges` after SimplifyCfg-initial
|
||||
|
||||
fn main() -> () {
|
||||
fn disjoint_ranges() -> () {
|
||||
let mut _0: ();
|
||||
let _1: i32;
|
||||
let _3: i32;
|
@ -1,10 +1,9 @@
|
||||
// skip-filecheck
|
||||
// Make sure redundant testing paths in `match` expressions are sorted out.
|
||||
|
||||
// Check specific cases of sorting candidates in match lowering.
|
||||
#![feature(exclusive_range_pattern)]
|
||||
|
||||
// EMIT_MIR match_test.main.SimplifyCfg-initial.after.mir
|
||||
fn main() {
|
||||
// EMIT_MIR sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir
|
||||
fn disjoint_ranges() {
|
||||
let x = 3;
|
||||
let b = true;
|
||||
|
||||
@ -17,3 +16,5 @@ fn main() {
|
||||
_ => 3,
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
x
Reference in New Issue
Block a user