mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
clippy
This commit is contained in:
parent
6714a68f3d
commit
2db627519b
3 changed files with 4 additions and 3 deletions
|
@ -1306,6 +1306,7 @@ fn list_literal<'a, 'ctx, 'env>(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn invoke_roc_function<'a, 'ctx, 'env>(
|
fn invoke_roc_function<'a, 'ctx, 'env>(
|
||||||
env: &Env<'a, 'ctx, 'env>,
|
env: &Env<'a, 'ctx, 'env>,
|
||||||
layout_ids: &mut LayoutIds<'a>,
|
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);
|
call.set_call_convention(C_CALL_CONV);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
fn cxa_rethrow_exception(env: &Env<'_, '_, '_>) {
|
||||||
fn cxa_rethrow_exception<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>) {
|
|
||||||
let name = "__cxa_rethrow";
|
let name = "__cxa_rethrow";
|
||||||
|
|
||||||
let module = env.module;
|
let module = env.module;
|
||||||
|
|
|
@ -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>) {
|
fn preserve_tail_call(&mut self, x: Symbol, v: &Expr<'a>, b: &Stmt<'a>) {
|
||||||
match (v, b) {
|
match (v, b) {
|
||||||
(
|
(
|
||||||
|
|
|
@ -4622,7 +4622,7 @@ fn substitute_in_expr<'a>(
|
||||||
match expr {
|
match expr {
|
||||||
Literal(_) | FunctionPointer(_, _) | EmptyArray | RuntimeErrorFunction(_) => None,
|
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 {
|
||||||
tag_layout,
|
tag_layout,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue