mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
add extra pass that further trims down the captured symbols
This commit is contained in:
parent
752a40a23c
commit
cbe78593c2
6 changed files with 225 additions and 20 deletions
|
@ -504,8 +504,6 @@ pub fn canonicalize_expr<'a>(
|
|||
// filter out functions that don't close over anything
|
||||
captured_symbols.retain(|s| !output.non_closures.contains(s));
|
||||
|
||||
dbg!(&captured_symbols, symbol);
|
||||
|
||||
// Now that we've collected all the references, check to see if any of the args we defined
|
||||
// went unreferenced. If any did, report them as unused arguments.
|
||||
for (sub_symbol, region) in scope.symbols() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue