Fix --release warnings

This commit is contained in:
Richard Feldman 2022-05-15 21:50:49 -04:00
parent 262b2fd24e
commit 9bc1e320dc
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
6 changed files with 70 additions and 37 deletions

View file

@ -28,7 +28,11 @@ pub fn func_name_bytes(proc: &Proc) -> [u8; SIZE] {
#[inline(always)]
fn debug() -> bool {
use roc_debug_flags::{dbg_do, ROC_DEBUG_ALIAS_ANALYSIS};
use roc_debug_flags::dbg_do;
#[cfg(debug_assertions)]
use roc_debug_flags::ROC_DEBUG_ALIAS_ANALYSIS;
dbg_do!(ROC_DEBUG_ALIAS_ANALYSIS, {
return true;
});