fix extra ampersands

This commit is contained in:
Folkert 2021-07-29 17:32:08 +02:00
parent b6116eeb98
commit 899cbeabd7
79 changed files with 372 additions and 376 deletions

View file

@ -339,7 +339,7 @@ mod gen_num {
x
"#
),
RocDec::from_str_to_i128_unsafe(&"2.1"),
RocDec::from_str_to_i128_unsafe("2.1"),
i128
);
}
@ -576,7 +576,7 @@ mod gen_num {
z
"#
),
RocDec::from_str_to_i128_unsafe(&"5.2"),
RocDec::from_str_to_i128_unsafe("5.2"),
i128
);
}
@ -639,7 +639,7 @@ mod gen_num {
Err _ -> -1
"#
),
RocDec::from_str_to_i128_unsafe(&"3.333333333333333333"),
RocDec::from_str_to_i128_unsafe("3.333333333333333333"),
i128
);
}
@ -755,7 +755,7 @@ mod gen_num {
(x - y) - z
"#
),
RocDec::from_str_to_i128_unsafe(&"-3.9"),
RocDec::from_str_to_i128_unsafe("-3.9"),
i128
);
}
@ -803,7 +803,7 @@ mod gen_num {
x * y * z
"#
),
RocDec::from_str_to_i128_unsafe(&"48.0"),
RocDec::from_str_to_i128_unsafe("48.0"),
i128
);
}

View file

@ -60,7 +60,7 @@ pub fn helper<'a>(
let loaded = roc_load::file::load_and_monomorphize_from_str(
arena,
filename,
&module_src,
module_src,
stdlib,
src_dir,
exposed_types,
@ -211,7 +211,7 @@ pub fn helper<'a>(
// Compile and add all the Procs before adding main
let env = roc_gen_llvm::llvm::build::Env {
arena: &arena,
arena,
builder: &builder,
dibuilder: &dibuilder,
compile_unit: &compile_unit,
@ -252,7 +252,7 @@ pub fn helper<'a>(
// Uncomment this to see the module's optimized LLVM instruction output:
// env.module.print_to_stderr();
let lib = module_to_dylib(&env.module, &target, opt_level)
let lib = module_to_dylib(env.module, &target, opt_level)
.expect("Error loading compiled dylib for test");
(main_fn_name, delayed_errors.join("\n"), lib)