about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-03-13 15:04:07 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-03-30 17:37:15 +0100
commite67f5294df55176213d0f1e8db0e8a27fd0155dc (patch)
tree29b174de496ac6be76cd4e82c7452bcc695e4615
parent40116ad1edef3ee66006e95fa9a483940aaa501c (diff)
downloadrust-e67f5294df55176213d0f1e8db0e8a27fd0155dc.tar.gz
rust-e67f5294df55176213d0f1e8db0e8a27fd0155dc.zip
Regroup mir-opt tests of match building
-rw-r--r--tests/mir-opt/building/match/deref-patterns/string.foo.PreCodegen.after.mir (renamed from tests/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir)0
-rw-r--r--tests/mir-opt/building/match/deref-patterns/string.rs (renamed from tests/mir-opt/deref-patterns/string.rs)0
-rw-r--r--tests/mir-opt/building/match/exponential_or.match_tuple.SimplifyCfg-initial.after.mir (renamed from tests/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir)0
-rw-r--r--tests/mir-opt/building/match/exponential_or.rs (renamed from tests/mir-opt/exponential_or.rs)0
-rw-r--r--tests/mir-opt/building/match/match_false_edges.full_tested_match.built.after.mir (renamed from tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir)0
-rw-r--r--tests/mir-opt/building/match/match_false_edges.full_tested_match2.built.after.mir (renamed from tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir)0
-rw-r--r--tests/mir-opt/building/match/match_false_edges.main.built.after.mir (renamed from tests/mir-opt/building/match_false_edges.main.built.after.mir)0
-rw-r--r--tests/mir-opt/building/match/match_false_edges.rs (renamed from tests/mir-opt/building/match_false_edges.rs)0
-rw-r--r--tests/mir-opt/building/match/simple_match.match_bool.built.after.mir (renamed from tests/mir-opt/building/simple_match.match_bool.built.after.mir)0
-rw-r--r--tests/mir-opt/building/match/simple_match.rs (renamed from tests/mir-opt/building/simple_match.rs)0
-rw-r--r--tests/mir-opt/building/match/sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir (renamed from tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir)4
-rw-r--r--tests/mir-opt/building/match/sort_candidates.rs (renamed from tests/mir-opt/match_test.rs)9
12 files changed, 7 insertions, 6 deletions
diff --git a/tests/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir b/tests/mir-opt/building/match/deref-patterns/string.foo.PreCodegen.after.mir
index 1e4f7485089..1e4f7485089 100644
--- a/tests/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir
+++ b/tests/mir-opt/building/match/deref-patterns/string.foo.PreCodegen.after.mir
diff --git a/tests/mir-opt/deref-patterns/string.rs b/tests/mir-opt/building/match/deref-patterns/string.rs
index bb4b5379b27..bb4b5379b27 100644
--- a/tests/mir-opt/deref-patterns/string.rs
+++ b/tests/mir-opt/building/match/deref-patterns/string.rs
diff --git a/tests/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir b/tests/mir-opt/building/match/exponential_or.match_tuple.SimplifyCfg-initial.after.mir
index 596dcef85fd..596dcef85fd 100644
--- a/tests/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir
+++ b/tests/mir-opt/building/match/exponential_or.match_tuple.SimplifyCfg-initial.after.mir
diff --git a/tests/mir-opt/exponential_or.rs b/tests/mir-opt/building/match/exponential_or.rs
index 89963b9bdf4..89963b9bdf4 100644
--- a/tests/mir-opt/exponential_or.rs
+++ b/tests/mir-opt/building/match/exponential_or.rs
diff --git a/tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir b/tests/mir-opt/building/match/match_false_edges.full_tested_match.built.after.mir
index 194afdf7dd8..194afdf7dd8 100644
--- a/tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir
+++ b/tests/mir-opt/building/match/match_false_edges.full_tested_match.built.after.mir
diff --git a/tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir b/tests/mir-opt/building/match/match_false_edges.full_tested_match2.built.after.mir
index ae83075434f..ae83075434f 100644
--- a/tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir
+++ b/tests/mir-opt/building/match/match_false_edges.full_tested_match2.built.after.mir
diff --git a/tests/mir-opt/building/match_false_edges.main.built.after.mir b/tests/mir-opt/building/match/match_false_edges.main.built.after.mir
index b71b2412cdf..b71b2412cdf 100644
--- a/tests/mir-opt/building/match_false_edges.main.built.after.mir
+++ b/tests/mir-opt/building/match/match_false_edges.main.built.after.mir
diff --git a/tests/mir-opt/building/match_false_edges.rs b/tests/mir-opt/building/match/match_false_edges.rs
index 839eda40c85..839eda40c85 100644
--- a/tests/mir-opt/building/match_false_edges.rs
+++ b/tests/mir-opt/building/match/match_false_edges.rs
diff --git a/tests/mir-opt/building/simple_match.match_bool.built.after.mir b/tests/mir-opt/building/match/simple_match.match_bool.built.after.mir
index faa2456fd10..faa2456fd10 100644
--- a/tests/mir-opt/building/simple_match.match_bool.built.after.mir
+++ b/tests/mir-opt/building/match/simple_match.match_bool.built.after.mir
diff --git a/tests/mir-opt/building/simple_match.rs b/tests/mir-opt/building/match/simple_match.rs
index 4f0a3046a06..4f0a3046a06 100644
--- a/tests/mir-opt/building/simple_match.rs
+++ b/tests/mir-opt/building/match/simple_match.rs
diff --git a/tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir b/tests/mir-opt/building/match/sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir
index 107f56f7f69..149c13a8c2f 100644
--- a/tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir
+++ b/tests/mir-opt/building/match/sort_candidates.disjoint_ranges.SimplifyCfg-initial.after.mir
@@ -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;
diff --git a/tests/mir-opt/match_test.rs b/tests/mir-opt/building/match/sort_candidates.rs
index e465289e427..755e445ed18 100644
--- a/tests/mir-opt/match_test.rs
+++ b/tests/mir-opt/building/match/sort_candidates.rs
@@ -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() {}