mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
move the symbol field into the Required tag
This commit is contained in:
parent
b9f92851a4
commit
8438b91633
3 changed files with 8 additions and 13 deletions
|
@ -408,7 +408,7 @@ fn test_at_path<'a>(selected_path: &Path, branch: &Branch<'a>, all_tests: &mut V
|
|||
DestructType::Guard(guard) => {
|
||||
arguments.push((guard.clone(), destruct.layout.clone()));
|
||||
}
|
||||
DestructType::Required => {
|
||||
DestructType::Required(_) => {
|
||||
arguments.push((Pattern::Underscore, destruct.layout.clone()));
|
||||
}
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ fn to_relevant_branch_help<'a>(
|
|||
let sub_positions = destructs.into_iter().enumerate().map(|(index, destruct)| {
|
||||
let pattern = match destruct.typ {
|
||||
DestructType::Guard(guard) => guard.clone(),
|
||||
DestructType::Required => Pattern::Underscore,
|
||||
DestructType::Required(_) => Pattern::Underscore,
|
||||
};
|
||||
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue