Mark var only for debug builds

This commit is contained in:
Ayaz Hafiz 2022-07-18 11:21:30 -04:00
parent b9bded716c
commit 7df18f82a2
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1227,14 +1227,14 @@ impl<'a> Layout<'a> {
fn new_help<'b>(
env: &mut Env<'a, 'b>,
var: Variable,
_var: Variable,
content: Content,
) -> Result<Self, LayoutProblem> {
use roc_types::subs::Content::*;
match content {
FlexVar(_) | RigidVar(_) => {
roc_debug_flags::dbg_do!(roc_debug_flags::ROC_NO_UNBOUND_LAYOUT, {
return Err(LayoutProblem::UnresolvedTypeVar(var));
return Err(LayoutProblem::UnresolvedTypeVar(_var));
});
// If we encounter an unbound type var (e.g. `*` or `a`)