1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2018-2026 the Deno authors. MIT license.
#![deny(warnings)]
deno_ops_compile_test_runner::prelude!();
// Regression test for https://github.com/denoland/deno/issues/32718
// `#[op2]` impl methods with more than the clippy default of 7 arguments
// must compile cleanly under `#![deny(clippy::too_many_arguments)]`. The
// generator already silenced the lint on the `impl Callable` block but
// not on the `trait Callable` declaration, so any external crate that
// denied the lint hit the warning at the trait method signature.
use simien_core::cppgc::GarbageCollected;
use simien_core::v8;
pub struct Big;
unsafe impl GarbageCollected for Big {
fn trace(&self, _visitor: &mut v8::cppgc::Visitor) {}
fn get_name(&self) -> &'static std::ffi::CStr {
c"Big"
}
}
#[op2]
impl Big {
#[fast]
pub fn many(
&self,
_a: f64,
_b: f64,
_c: f64,
_d: f64,
_e: f64,
_f: f64,
_g: f64,
_h: f64,
) {
}
}