fix mono tests

This commit is contained in:
Folkert 2020-10-17 02:39:44 +02:00
parent 8b490b6221
commit 1708484eb5
4 changed files with 743 additions and 674 deletions

View file

@ -111,13 +111,6 @@ pub fn basic_type_from_layout<'ctx>(
basic_type_from_function_layout(arena, context, args, None, ret_layout, ptr_bytes)
}
Closure(args, closure_layout, ret_layout) => {
// let closure_data = block_of_memory(
// context,
// // &closure_layout.into_block_of_memory_layout(),
// &closure_layout.into_layout(),
// ptr_bytes,
// );
let closure_data =
basic_type_from_layout(arena, context, &closure_layout.into_layout(), ptr_bytes);

View file

@ -946,7 +946,6 @@ mod gen_primitives {
}
#[test]
#[ignore]
fn specialize_closure() {
assert_evals_to!(
indoc!(

View file

@ -560,7 +560,10 @@ fn layout_from_flat_type<'a>(
Ok(Layout::Closure(fn_args, closure_layout, ret))
}
Wrapped(_tags) => todo!(),
Wrapped(_tags) => {
// Wrapped(Vec<'a, (TagName, &'a [Layout<'a>])>),
todo!()
}
}
}

File diff suppressed because it is too large Load diff