Push checkmate through env

This commit is contained in:
Ayaz Hafiz 2023-07-16 09:49:18 -05:00
parent 8097ee3342
commit 87d108eccc
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
16 changed files with 190 additions and 29 deletions

View file

@ -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 => "",