mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Remove symbols_from_pattern
This commit is contained in:
parent
9777886376
commit
17d8545510
2 changed files with 3 additions and 56 deletions
|
@ -594,7 +594,9 @@ fn fix_values_captured_in_closure_defs(
|
|||
) {
|
||||
// recursive defs cannot capture each other
|
||||
for def in defs.iter() {
|
||||
no_capture_symbols.extend(crate::pattern::symbols_from_pattern(&def.loc_pattern.value));
|
||||
no_capture_symbols.extend(
|
||||
crate::traverse::symbols_introduced_from_pattern(&def.loc_pattern).map(|ls| ls.value),
|
||||
);
|
||||
}
|
||||
|
||||
// TODO mutually recursive functions should both capture the union of both their capture sets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue