fix mono tests

This commit is contained in:
Folkert 2020-10-17 02:41:40 +02:00
parent 1708484eb5
commit cfce0235f2
2 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@ use crate::num::{
finish_parsing_base, finish_parsing_float, finish_parsing_int, float_expr_from_result,
int_expr_from_result, num_expr_from_result,
};
use crate::pattern::{canonicalize_pattern, symbols_from_pattern, Pattern};
use crate::pattern::{canonicalize_pattern, Pattern};
use crate::procedure::References;
use crate::scope::Scope;
use inlinable_string::InlinableString;

View File

@ -2876,7 +2876,6 @@ pub fn from_can<'a>(
match def.loc_expr.value {
Closure {
function_type,
closure_type,
return_type,
recursive,
arguments,
@ -2895,8 +2894,6 @@ pub fn from_can<'a>(
// does this function capture any local values?
let function_layout =
layout_cache.from_var(env.arena, function_type, env.subs);
let is_closure =
matches!(&function_layout, Ok(Layout::Closure(_, _, _)));
if let Ok(Layout::Closure(
argument_layouts,
@ -2988,7 +2985,7 @@ pub fn from_can<'a>(
partial_proc,
) {
Ok((proc, layout)) => {
// debug_assert_eq!(full_layout, layout);
debug_assert_eq!(full_layout, layout);
let function_layout =
FunctionLayouts::from_layout(layout);