mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Push checkmate through env
This commit is contained in:
parent
8097ee3342
commit
87d108eccc
16 changed files with 190 additions and 29 deletions
|
@ -468,6 +468,14 @@ fn debug_print_unified_types<M: MetaCollector>(
|
|||
|
||||
static mut UNIFICATION_DEPTH: usize = 0;
|
||||
|
||||
match opt_outcome {
|
||||
None => env.debug_start_unification(ctx.first, ctx.second, ctx.mode),
|
||||
Some(outcome) => {
|
||||
let success = outcome.mismatches.is_empty();
|
||||
env.debug_end_unification(ctx.first, ctx.second, success);
|
||||
}
|
||||
}
|
||||
|
||||
dbg_do!(ROC_PRINT_UNIFICATIONS, {
|
||||
let prefix = match opt_outcome {
|
||||
None => "❔",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue