about summary refs log tree commit diff
path: root/src/test/codegen/match.rs
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2018-02-07 17:28:32 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-02-20 02:50:26 +0200
commit6e5dacbd5e8aab43cdc4c2f1d4ec66fe0b8d4bed (patch)
treecac0486c26006fe8419259797ae187788c608be0 /src/test/codegen/match.rs
parente598bdfaa017e3bf786c19587ea917c6a8aa984e (diff)
downloadrust-6e5dacbd5e8aab43cdc4c2f1d4ec66fe0b8d4bed.tar.gz
rust-6e5dacbd5e8aab43cdc4c2f1d4ec66fe0b8d4bed.zip
rustc_mir: always run the deaggregator.
Diffstat (limited to 'src/test/codegen/match.rs')
-rw-r--r--src/test/codegen/match.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/match.rs b/src/test/codegen/match.rs
index 660b6346c57..c9d0427dd0a 100644
--- a/src/test/codegen/match.rs
+++ b/src/test/codegen/match.rs
@@ -19,7 +19,7 @@ pub enum E {
 
 // CHECK-LABEL: @exhaustive_match
 #[no_mangle]
-pub fn exhaustive_match(e: E) {
+pub fn exhaustive_match(e: E, unit: ()) {
 // CHECK: switch{{.*}}, label %[[OTHERWISE:[a-zA-Z0-9_]+]] [
 // CHECK-NEXT: i[[TY:[0-9]+]] [[DISCR:[0-9]+]], label %[[A:[a-zA-Z0-9_]+]]
 // CHECK-NEXT: i[[TY:[0-9]+]] [[DISCR:[0-9]+]], label %[[B:[a-zA-Z0-9_]+]]
@@ -31,7 +31,7 @@ pub fn exhaustive_match(e: E) {
 // CHECK: [[OTHERWISE]]:
 // CHECK-NEXT: unreachable
     match e {
-        E::A => (),
-        E::B => (),
+        E::A => unit,
+        E::B => unit,
     }
 }