diff --git a/compiler/gen/src/llvm/build.rs b/compiler/gen/src/llvm/build.rs index 0f74fe6be7..c291ca5d8b 100644 --- a/compiler/gen/src/llvm/build.rs +++ b/compiler/gen/src/llvm/build.rs @@ -1306,6 +1306,7 @@ fn list_literal<'a, 'ctx, 'env>( ) } +#[allow(clippy::too_many_arguments)] fn invoke_roc_function<'a, 'ctx, 'env>( env: &Env<'a, 'ctx, 'env>, layout_ids: &mut LayoutIds<'a>, @@ -4052,8 +4053,7 @@ fn cxa_throw_exception<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>, info: BasicVal call.set_call_convention(C_CALL_CONV); } -#[allow(dead_code)] -fn cxa_rethrow_exception<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>) { +fn cxa_rethrow_exception(env: &Env<'_, '_, '_>) { let name = "__cxa_rethrow"; let module = env.module; diff --git a/compiler/mono/src/borrow.rs b/compiler/mono/src/borrow.rs index a3a10ca015..019a2249c2 100644 --- a/compiler/mono/src/borrow.rs +++ b/compiler/mono/src/borrow.rs @@ -400,6 +400,7 @@ impl<'a> BorrowInfState<'a> { } } + #[allow(clippy::many_single_char_names)] fn preserve_tail_call(&mut self, x: Symbol, v: &Expr<'a>, b: &Stmt<'a>) { match (v, b) { ( diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index a1a62992c2..ea22b52881 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -4622,7 +4622,7 @@ fn substitute_in_expr<'a>( match expr { Literal(_) | FunctionPointer(_, _) | EmptyArray | RuntimeErrorFunction(_) => None, - Call(call) => substitute_in_call(arena, call, subs).map(|new| Expr::Call(new)), + Call(call) => substitute_in_call(arena, call, subs).map(Expr::Call), Tag { tag_layout,