mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
inline pattern match
This commit is contained in:
parent
8c666edbec
commit
da9482b7fa
1 changed files with 2 additions and 7 deletions
|
@ -86,17 +86,12 @@ fn specialize_drops_stmt<'a, 'i>(
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
let Call {
|
match call.call_type.clone().replace_lowlevel_wrapper() {
|
||||||
call_type,
|
|
||||||
arguments,
|
|
||||||
} = call;
|
|
||||||
|
|
||||||
match call_type.clone().replace_lowlevel_wrapper() {
|
|
||||||
CallType::LowLevel {
|
CallType::LowLevel {
|
||||||
op: LowLevel::ListGetUnsafe,
|
op: LowLevel::ListGetUnsafe,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
let [structure, index] = match arguments {
|
let [structure, index] = match call.arguments {
|
||||||
[structure, index] => [structure, index],
|
[structure, index] => [structure, index],
|
||||||
_ => unreachable!("List get should have two arguments"),
|
_ => unreachable!("List get should have two arguments"),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue