Fix ROC_PRINT_UNIFICATIONS_DERIVED

This commit is contained in:
Ayaz Hafiz 2022-08-12 15:11:13 -07:00
parent a276578642
commit 66f75b86ee
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -324,7 +324,7 @@ fn check_derived_typechecks_and_golden(
// run the solver, print and fail if we have errors
dbg_do!(
roc_debug_flags::ROC_PRINT_UNIFICATIONS_DERIVED,
std::env::set_var(roc_debug_flags::ROC_PRINT_UNIFICATIONS_DERIVED, "1")
std::env::set_var(roc_debug_flags::ROC_PRINT_UNIFICATIONS, "1")
);
let (mut solved_subs, _, problems, _) = roc_solve::module::run_solve(
test_module,
@ -338,6 +338,10 @@ fn check_derived_typechecks_and_golden(
&exposed_for_module.exposed_by_module,
Default::default(),
);
dbg_do!(
roc_debug_flags::ROC_PRINT_UNIFICATIONS_DERIVED,
std::env::set_var(roc_debug_flags::ROC_PRINT_UNIFICATIONS, "0")
);
let subs = solved_subs.inner_mut();
if !problems.is_empty() {