mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
for now always generate constraints
This commit is contained in:
parent
76037de335
commit
37bb19b032
1 changed files with 3 additions and 5 deletions
|
@ -3778,11 +3778,9 @@ fn canonicalize_and_constrain<'a>(
|
|||
|
||||
let mut constraints = Constraints::new();
|
||||
|
||||
let constraint = if module_id.is_builtin() {
|
||||
roc_can::constraint::Constraint::True
|
||||
} else {
|
||||
constrain_module(&mut constraints, &module_output.declarations, module_id)
|
||||
};
|
||||
// TODO: don't generate constraints for a builtin module if it's cached
|
||||
let constraint =
|
||||
constrain_module(&mut constraints, &module_output.declarations, module_id);
|
||||
|
||||
let after = roc_types::types::get_type_clone_count();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue