mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
fix mono tests
This commit is contained in:
parent
1708484eb5
commit
cfce0235f2
2 changed files with 2 additions and 5 deletions
|
@ -6,7 +6,7 @@ use crate::num::{
|
||||||
finish_parsing_base, finish_parsing_float, finish_parsing_int, float_expr_from_result,
|
finish_parsing_base, finish_parsing_float, finish_parsing_int, float_expr_from_result,
|
||||||
int_expr_from_result, num_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::procedure::References;
|
||||||
use crate::scope::Scope;
|
use crate::scope::Scope;
|
||||||
use inlinable_string::InlinableString;
|
use inlinable_string::InlinableString;
|
||||||
|
|
|
@ -2876,7 +2876,6 @@ pub fn from_can<'a>(
|
||||||
match def.loc_expr.value {
|
match def.loc_expr.value {
|
||||||
Closure {
|
Closure {
|
||||||
function_type,
|
function_type,
|
||||||
closure_type,
|
|
||||||
return_type,
|
return_type,
|
||||||
recursive,
|
recursive,
|
||||||
arguments,
|
arguments,
|
||||||
|
@ -2895,8 +2894,6 @@ pub fn from_can<'a>(
|
||||||
// does this function capture any local values?
|
// does this function capture any local values?
|
||||||
let function_layout =
|
let function_layout =
|
||||||
layout_cache.from_var(env.arena, function_type, env.subs);
|
layout_cache.from_var(env.arena, function_type, env.subs);
|
||||||
let is_closure =
|
|
||||||
matches!(&function_layout, Ok(Layout::Closure(_, _, _)));
|
|
||||||
|
|
||||||
if let Ok(Layout::Closure(
|
if let Ok(Layout::Closure(
|
||||||
argument_layouts,
|
argument_layouts,
|
||||||
|
@ -2988,7 +2985,7 @@ pub fn from_can<'a>(
|
||||||
partial_proc,
|
partial_proc,
|
||||||
) {
|
) {
|
||||||
Ok((proc, layout)) => {
|
Ok((proc, layout)) => {
|
||||||
// debug_assert_eq!(full_layout, layout);
|
debug_assert_eq!(full_layout, layout);
|
||||||
let function_layout =
|
let function_layout =
|
||||||
FunctionLayouts::from_layout(layout);
|
FunctionLayouts::from_layout(layout);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue