mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
Fix inexhaustive pattern matches in low_level
This commit is contained in:
parent
b9e97400d7
commit
00793eb0d8
@ -242,8 +242,8 @@ impl LowLevel {
|
|||||||
use LowLevel::*;
|
use LowLevel::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
first_order!() => false,
|
|
||||||
higher_order!() => true,
|
higher_order!() => true,
|
||||||
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,7 +251,6 @@ impl LowLevel {
|
|||||||
use LowLevel::*;
|
use LowLevel::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
first_order!() => unreachable!(),
|
|
||||||
ListMap => 1,
|
ListMap => 1,
|
||||||
ListMap2 => 2,
|
ListMap2 => 2,
|
||||||
ListMap3 => 3,
|
ListMap3 => 3,
|
||||||
@ -267,6 +266,7 @@ impl LowLevel {
|
|||||||
ListAny => 1,
|
ListAny => 1,
|
||||||
ListFindUnsafe => 1,
|
ListFindUnsafe => 1,
|
||||||
DictWalk => 2,
|
DictWalk => 2,
|
||||||
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user