mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Merge pull request #2977 from rtfeldman/debug_flags
Factor bespoke debug variables into debug_flags crate
This commit is contained in:
commit
3197cd97ce
13 changed files with 167 additions and 70 deletions
|
@ -449,15 +449,12 @@ fn write_content<'a>(
|
|||
);
|
||||
}
|
||||
|
||||
// useful for debugging
|
||||
if cfg!(debug_assertions)
|
||||
&& std::env::var("ROC_PRETTY_PRINT_ALIAS_CONTENTS").is_ok()
|
||||
{
|
||||
roc_debug_flags::dbg_do!(roc_debug_flags::ROC_PRETTY_PRINT_ALIAS_CONTENTS, {
|
||||
buf.push_str("[[ but really ");
|
||||
let content = subs.get_content_without_compacting(*_actual);
|
||||
write_content(env, ctx, content, subs, buf, parens);
|
||||
buf.push_str("]]");
|
||||
}
|
||||
});
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue