mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Mark var only for debug builds
This commit is contained in:
parent
b9bded716c
commit
7df18f82a2
1 changed files with 2 additions and 2 deletions
|
@ -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`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue