diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index 90c321786c..53a1abf009 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -6168,16 +6168,6 @@ impl ExceptionId { } } -fn build_call_new<'a>( - _env: &mut Env<'a, '_>, - call: Call<'a>, - assigned: Symbol, - return_layout: Layout<'a>, - hole: &'a Stmt<'a>, -) -> Stmt<'a> { - Stmt::Let(assigned, Expr::Call(call), return_layout, hole) -} - fn can_throw_exception(call: &Call) -> bool { match call.call_type { CallType::ByName { name, .. } => matches!( diff --git a/compiler/test_gen/src/gen_primitives.rs b/compiler/test_gen/src/gen_primitives.rs index add6c0dadf..b8ee1d2422 100644 --- a/compiler/test_gen/src/gen_primitives.rs +++ b/compiler/test_gen/src/gen_primitives.rs @@ -3,7 +3,6 @@ use crate::assert_evals_to; use crate::assert_llvm_evals_to; use crate::assert_non_opt_evals_to; -use core::ffi::c_void; use indoc::indoc; use roc_std::RocStr;