From 00793eb0d84a758978fc496afb9102d3ad3a46b5 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Mon, 15 Nov 2021 00:06:13 +0000 Subject: [PATCH] Fix inexhaustive pattern matches in low_level --- compiler/module/src/low_level.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/module/src/low_level.rs b/compiler/module/src/low_level.rs index bc8d2706d0..c37226d388 100644 --- a/compiler/module/src/low_level.rs +++ b/compiler/module/src/low_level.rs @@ -242,8 +242,8 @@ impl LowLevel { use LowLevel::*; match self { - first_order!() => false, higher_order!() => true, + _ => false, } } @@ -251,7 +251,6 @@ impl LowLevel { use LowLevel::*; match self { - first_order!() => unreachable!(), ListMap => 1, ListMap2 => 2, ListMap3 => 3, @@ -267,6 +266,7 @@ impl LowLevel { ListAny => 1, ListFindUnsafe => 1, DictWalk => 2, + _ => unreachable!(), } } }