mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
fix mono tests
This commit is contained in:
parent
1708484eb5
commit
cfce0235f2
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user