Add note about output

This commit is contained in:
Ayaz Hafiz 2022-04-21 09:34:40 -04:00
parent 21661275d8
commit 11f29baf25
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -274,6 +274,9 @@ pub fn unify_pool(
} }
} }
/// Set `ROC_PRINT_UNIFICATIONS` in debug runs to print unifications as they start and complete as
/// a tree to stderr.
/// NOTE: Only run this on individual tests! Run on multiple threads, this would clobber each others' output.
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
fn debug_print_unified_types(subs: &mut Subs, ctx: &Context, opt_outcome: Option<&Outcome>) { fn debug_print_unified_types(subs: &mut Subs, ctx: &Context, opt_outcome: Option<&Outcome>) {
static mut UNIFICATION_DEPTH: usize = 0; static mut UNIFICATION_DEPTH: usize = 0;