mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
make some of References' fields private
This commit is contained in:
parent
8b144c446d
commit
e740bbe529
6 changed files with 27 additions and 20 deletions
|
@ -487,8 +487,7 @@ pub fn canonicalize_expr<'a>(
|
|||
}
|
||||
Ok((name, opaque_def)) => {
|
||||
let argument = Box::new(args.pop().unwrap());
|
||||
output.references.referenced_type_defs.insert(name);
|
||||
output.references.type_lookups.insert(name);
|
||||
output.references.insert_type_lookup(name);
|
||||
|
||||
let (type_arguments, lambda_set_variables, specialized_def_type) =
|
||||
freshen_opaque_def(var_store, opaque_def);
|
||||
|
@ -685,7 +684,7 @@ pub fn canonicalize_expr<'a>(
|
|||
// filter out aliases
|
||||
debug_assert!(captured_symbols
|
||||
.iter()
|
||||
.all(|s| !output.references.referenced_type_defs.contains(s)));
|
||||
.all(|s| !output.references.references_type_def(*s)));
|
||||
// captured_symbols.retain(|s| !output.references.referenced_type_defs.contains(s));
|
||||
|
||||
// filter out functions that don't close over anything
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue