From 11f29baf25df2cfb4ca30cc20b67d06f1ccaea64 Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Thu, 21 Apr 2022 09:34:40 -0400 Subject: [PATCH] Add note about output --- compiler/unify/src/unify.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/unify/src/unify.rs b/compiler/unify/src/unify.rs index a8ceea4cd6..10738f6382 100644 --- a/compiler/unify/src/unify.rs +++ b/compiler/unify/src/unify.rs @@ -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)] fn debug_print_unified_types(subs: &mut Subs, ctx: &Context, opt_outcome: Option<&Outcome>) { static mut UNIFICATION_DEPTH: usize = 0;