mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
leave a TODO
This commit is contained in:
parent
d7eee71402
commit
7c83e940bd
1 changed files with 6 additions and 0 deletions
|
@ -1112,6 +1112,12 @@ fn canonicalize_pending_def<'a>(
|
|||
arguments: arguments.clone(),
|
||||
loc_body: body.clone(),
|
||||
});
|
||||
|
||||
// TODO exploit this fact to remove clones below
|
||||
debug_assert_eq!(
|
||||
vec![*defined_symbol],
|
||||
scope.idents().map(|t| t.1 .0).filter(|x| vars_by_symbol.contains_key(x)).collect::<Vec<_>>()
|
||||
);
|
||||
}
|
||||
|
||||
// Store the referenced locals in the refs_by_symbol map, so we can later figure out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue