diff --git a/crates/compiler/builtins/bitcode/build.rs b/crates/compiler/builtins/bitcode/build.rs index 9d55cae56a..6a90192227 100644 --- a/crates/compiler/builtins/bitcode/build.rs +++ b/crates/compiler/builtins/bitcode/build.rs @@ -70,10 +70,6 @@ fn generate_object_file(bitcode_path: &Path, zig_object: &str, object_file_name: println!("Compiling zig object `{zig_object}` to: {src_obj}"); - // workaround for github.com/ziglang/zig/issues/20501 - #[cfg(target_os = "macos")] - let _ = fs::remove_dir_all("./.zig-cache"); - let mut zig_cmd = zig(); zig_cmd diff --git a/crates/compiler/test_gen/src/gen_num.rs b/crates/compiler/test_gen/src/gen_num.rs index d7bdc351a0..5977efcd0e 100644 --- a/crates/compiler/test_gen/src/gen_num.rs +++ b/crates/compiler/test_gen/src/gen_num.rs @@ -3194,13 +3194,19 @@ fn num_to_str_f32() { assert_evals_to!(r"Num.toStr 1.75f32", RocStr::from("1.75"), RocStr); assert_evals_to!(r"Num.toStr 10.75f32", RocStr::from("10.75"), RocStr); - assert_evals_to!(r"Num.toStr Num.maxF32", f32::MAX, RocStr, |roc_str| { - roc_str.as_str().parse::().unwrap() - }); + assert_evals_to!( + r"Num.toStr Num.maxF32", + f32::MAX, + RocStr, + |roc_str: RocStr| { roc_str.as_str().parse::().unwrap() } + ); - assert_evals_to!(r"Num.toStr Num.minF32", f32::MIN, RocStr, |roc_str| { - roc_str.as_str().parse::().unwrap() - }); + assert_evals_to!( + r"Num.toStr Num.minF32", + f32::MIN, + RocStr, + |roc_str: RocStr| { roc_str.as_str().parse::().unwrap() } + ); } #[test] diff --git a/crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig b/crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig index 64cc0eed6f..9b58132be5 100644 --- a/crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig +++ b/crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig @@ -44,6 +44,8 @@ pub export fn main() u8 { if (@import("builtin").target.cpu.arch != .wasm32) { const stdout = @import("std").io.getStdOut().writer(); - try stdout.print("{}\n", .{host_result}); + stdout.print("{}\n", .{host_result}) catch return 1; } + + return 0; }