diff --git a/crates/compiler/test_gen/src/helpers/dev.rs b/crates/compiler/test_gen/src/helpers/dev.rs index 12f6041343..fd94e6e87f 100644 --- a/crates/compiler/test_gen/src/helpers/dev.rs +++ b/crates/compiler/test_gen/src/helpers/dev.rs @@ -5,6 +5,7 @@ use roc_load::{EntryPoint, ExecutionMode, LoadConfig, Threading}; use roc_mono::ir::SingleEntryPoint; use roc_packaging::cache::RocCacheDir; use roc_region::all::LineInfo; +use roc_solve::FunctionKind; use tempfile::tempdir; #[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] @@ -58,6 +59,7 @@ pub fn helper( palette: roc_reporting::report::DEFAULT_PALETTE, threading: Threading::Single, exec_mode: ExecutionMode::Executable, + function_kind: FunctionKind::LambdaSet, }; let loaded = roc_load::load_and_monomorphize_from_str( arena, diff --git a/crates/compiler/test_gen/src/helpers/llvm.rs b/crates/compiler/test_gen/src/helpers/llvm.rs index 961f8d7379..ba5e129c04 100644 --- a/crates/compiler/test_gen/src/helpers/llvm.rs +++ b/crates/compiler/test_gen/src/helpers/llvm.rs @@ -543,7 +543,11 @@ where #[cfg(feature = "gen-llvm-wasm")] macro_rules! assert_wasm_evals_to { ($src:expr, $expected:expr, $ty:ty, $transform:expr, $ignore_problems:expr) => { - match $crate::helpers::llvm::assert_wasm_evals_to_help::<$ty>($src, $ignore_problems) { + match $crate::helpers::llvm::assert_wasm_evals_to_help::<$ty>( + $src, + $ignore_problems, + roc_load::FunctionKind::LambdaSet, + ) { Err(msg) => panic!("Wasm test failed: {}", msg), Ok(actual) => { assert_eq!($transform(actual), $expected, "Wasm test failed") diff --git a/crates/compiler/test_gen/src/helpers/wasm.rs b/crates/compiler/test_gen/src/helpers/wasm.rs index e28ebe5b4d..09e5cb1b5e 100644 --- a/crates/compiler/test_gen/src/helpers/wasm.rs +++ b/crates/compiler/test_gen/src/helpers/wasm.rs @@ -7,6 +7,7 @@ use roc_gen_wasm::DEBUG_SETTINGS; use roc_load::{ExecutionMode, LoadConfig, Threading}; use roc_packaging::cache::RocCacheDir; use roc_reporting::report::DEFAULT_PALETTE_HTML; +use roc_solve::FunctionKind; use roc_std::RocStr; use roc_wasm_interp::{wasi, ImportDispatcher, Instance, WasiDispatcher}; use roc_wasm_module::{Export, ExportType, Value, WasmModule}; @@ -92,6 +93,7 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32Result>( palette: DEFAULT_PALETTE_HTML, threading: Threading::Single, exec_mode: ExecutionMode::Executable, + function_kind: FunctionKind::LambdaSet, }; let loaded = roc_load::load_and_monomorphize_from_str( arena, diff --git a/crates/compiler/test_gen/src/wasm_linking.rs b/crates/compiler/test_gen/src/wasm_linking.rs index 9515e9d524..fd6597cd9e 100644 --- a/crates/compiler/test_gen/src/wasm_linking.rs +++ b/crates/compiler/test_gen/src/wasm_linking.rs @@ -117,6 +117,7 @@ fn build_app_mono<'a>( ret_layout: int_layout, is_self_recursive: SelfRecursive::NotSelfRecursive, host_exposed_layouts: HostExposedLayouts::NotHostExposed, + is_erased: false, }; let proc_layout = ProcLayout {