mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fix types
This commit is contained in:
parent
00730be6fb
commit
016862ca28
4 changed files with 10 additions and 1 deletions
|
@ -5,6 +5,7 @@ use roc_load::{EntryPoint, ExecutionMode, LoadConfig, Threading};
|
||||||
use roc_mono::ir::SingleEntryPoint;
|
use roc_mono::ir::SingleEntryPoint;
|
||||||
use roc_packaging::cache::RocCacheDir;
|
use roc_packaging::cache::RocCacheDir;
|
||||||
use roc_region::all::LineInfo;
|
use roc_region::all::LineInfo;
|
||||||
|
use roc_solve::FunctionKind;
|
||||||
use tempfile::tempdir;
|
use tempfile::tempdir;
|
||||||
|
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
|
@ -58,6 +59,7 @@ pub fn helper(
|
||||||
palette: roc_reporting::report::DEFAULT_PALETTE,
|
palette: roc_reporting::report::DEFAULT_PALETTE,
|
||||||
threading: Threading::Single,
|
threading: Threading::Single,
|
||||||
exec_mode: ExecutionMode::Executable,
|
exec_mode: ExecutionMode::Executable,
|
||||||
|
function_kind: FunctionKind::LambdaSet,
|
||||||
};
|
};
|
||||||
let loaded = roc_load::load_and_monomorphize_from_str(
|
let loaded = roc_load::load_and_monomorphize_from_str(
|
||||||
arena,
|
arena,
|
||||||
|
|
|
@ -543,7 +543,11 @@ where
|
||||||
#[cfg(feature = "gen-llvm-wasm")]
|
#[cfg(feature = "gen-llvm-wasm")]
|
||||||
macro_rules! assert_wasm_evals_to {
|
macro_rules! assert_wasm_evals_to {
|
||||||
($src:expr, $expected:expr, $ty:ty, $transform:expr, $ignore_problems:expr) => {
|
($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),
|
Err(msg) => panic!("Wasm test failed: {}", msg),
|
||||||
Ok(actual) => {
|
Ok(actual) => {
|
||||||
assert_eq!($transform(actual), $expected, "Wasm test failed")
|
assert_eq!($transform(actual), $expected, "Wasm test failed")
|
||||||
|
|
|
@ -7,6 +7,7 @@ use roc_gen_wasm::DEBUG_SETTINGS;
|
||||||
use roc_load::{ExecutionMode, LoadConfig, Threading};
|
use roc_load::{ExecutionMode, LoadConfig, Threading};
|
||||||
use roc_packaging::cache::RocCacheDir;
|
use roc_packaging::cache::RocCacheDir;
|
||||||
use roc_reporting::report::DEFAULT_PALETTE_HTML;
|
use roc_reporting::report::DEFAULT_PALETTE_HTML;
|
||||||
|
use roc_solve::FunctionKind;
|
||||||
use roc_std::RocStr;
|
use roc_std::RocStr;
|
||||||
use roc_wasm_interp::{wasi, ImportDispatcher, Instance, WasiDispatcher};
|
use roc_wasm_interp::{wasi, ImportDispatcher, Instance, WasiDispatcher};
|
||||||
use roc_wasm_module::{Export, ExportType, Value, WasmModule};
|
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,
|
palette: DEFAULT_PALETTE_HTML,
|
||||||
threading: Threading::Single,
|
threading: Threading::Single,
|
||||||
exec_mode: ExecutionMode::Executable,
|
exec_mode: ExecutionMode::Executable,
|
||||||
|
function_kind: FunctionKind::LambdaSet,
|
||||||
};
|
};
|
||||||
let loaded = roc_load::load_and_monomorphize_from_str(
|
let loaded = roc_load::load_and_monomorphize_from_str(
|
||||||
arena,
|
arena,
|
||||||
|
|
|
@ -117,6 +117,7 @@ fn build_app_mono<'a>(
|
||||||
ret_layout: int_layout,
|
ret_layout: int_layout,
|
||||||
is_self_recursive: SelfRecursive::NotSelfRecursive,
|
is_self_recursive: SelfRecursive::NotSelfRecursive,
|
||||||
host_exposed_layouts: HostExposedLayouts::NotHostExposed,
|
host_exposed_layouts: HostExposedLayouts::NotHostExposed,
|
||||||
|
is_erased: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
let proc_layout = ProcLayout {
|
let proc_layout = ProcLayout {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue