mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
cleanup
This commit is contained in:
parent
30e7d94c95
commit
d4da4fed88
3 changed files with 27 additions and 21 deletions
|
@ -3133,16 +3133,13 @@ fn run_solve<'a>(
|
|||
|
||||
if NEW_TYPES {
|
||||
for mut import in imported_storage_subs {
|
||||
// if format!("{:?}", import.loc_symbol.value).contains("after") {
|
||||
// dbg!(&import.storage_subs, import.variable, import.loc_symbol);
|
||||
// }
|
||||
let copied_import = import
|
||||
.storage_subs
|
||||
.export_variable_to(&mut subs, import.variable);
|
||||
|
||||
rigid_vars.extend(copied_import.rigid);
|
||||
// not a typo; rigids are turned into flex during type inference, but when imported we must
|
||||
// consider them rigid variables
|
||||
rigid_vars.extend(copied_import.rigid);
|
||||
rigid_vars.extend(copied_import.flex);
|
||||
|
||||
import_variables.extend(copied_import.registered);
|
||||
|
@ -3160,8 +3157,6 @@ fn run_solve<'a>(
|
|||
let (solved_subs, solved_env, problems) =
|
||||
roc_solve::module::run_solve(&constraints, actual_constraint, rigid_variables, subs);
|
||||
|
||||
dbg!(&solved_subs, &solved_env);
|
||||
|
||||
let exposed_vars_by_symbol: Vec<_> = solved_env
|
||||
.vars_by_symbol()
|
||||
.filter(|(k, _)| exposed_symbols.contains(k))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue