mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Fix inexhaustive pattern matches in low_level
This commit is contained in:
parent
b9e97400d7
commit
00793eb0d8
1 changed files with 2 additions and 2 deletions
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue