mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +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 {
|
||||
call_type,
|
||||
arguments,
|
||||
} = call;
|
||||
|
||||
match call_type.clone().replace_lowlevel_wrapper() {
|
||||
match call.call_type.clone().replace_lowlevel_wrapper() {
|
||||
CallType::LowLevel {
|
||||
op: LowLevel::ListGetUnsafe,
|
||||
..
|
||||
} => {
|
||||
let [structure, index] = match arguments {
|
||||
let [structure, index] = match call.arguments {
|
||||
[structure, index] => [structure, index],
|
||||
_ => unreachable!("List get should have two arguments"),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue