Regroup mir-opt tests of match building

This commit is contained in:
Nadrieril 2024-03-13 15:04:07 +01:00
parent 40116ad1ed
commit e67f5294df
12 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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() {}