[INFO] cloning repository https://github.com/RingCanary/coral-usb-oxidized [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RingCanary/coral-usb-oxidized" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRingCanary%2Fcoral-usb-oxidized", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRingCanary%2Fcoral-usb-oxidized'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39a97602260fcc741f299ed160c91f74427037dc [INFO] linting RingCanary/coral-usb-oxidized against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRingCanary%2Fcoral-usb-oxidized" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RingCanary/coral-usb-oxidized [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/RingCanary/coral-usb-oxidized [INFO] tweaked toml for git repo https://github.com/RingCanary/coral-usb-oxidized written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RingCanary/coral-usb-oxidized on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RingCanary/coral-usb-oxidized already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded safetensors v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a01fef09dc3cd1660907d9d2ec050329480a760f09a5d8dde949d9e3d4d0116 [INFO] running `Command { std: "docker" "start" "-a" "1a01fef09dc3cd1660907d9d2ec050329480a760f09a5d8dde949d9e3d4d0116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a01fef09dc3cd1660907d9d2ec050329480a760f09a5d8dde949d9e3d4d0116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a01fef09dc3cd1660907d9d2ec050329480a760f09a5d8dde949d9e3d4d0116", kill_on_drop: false }` [INFO] [stdout] 1a01fef09dc3cd1660907d9d2ec050329480a760f09a5d8dde949d9e3d4d0116 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b171cdede653484b036fa486ab725afb01923c7c8f1c167587aa0ab11db92a73 [INFO] running `Command { std: "docker" "start" "-a" "b171cdede653484b036fa486ab725afb01923c7c8f1c167587aa0ab11db92a73", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling libusb1-sys v0.7.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rusb v0.9.4 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking memmap2 v0.9.10 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Compiling bindgen v0.71.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerocopy-derive v0.8.39 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking safetensors v0.6.2 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Compiling coral-usb-oxidized v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: coral-usb-oxidized@0.1.0: legacy-runtime feature disabled; skipping libedgetpu/tflite linkage (pure-rusb mode) [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/flatbuffer.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl Region { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub(crate) fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutableView` is never constructed [INFO] [stdout] --> src/flatbuffer.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct ExecutableView { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PackageView` is never constructed [INFO] [stdout] --> src/flatbuffer.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) struct PackageView { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inspect_packages` is never used [INFO] [stdout] --> src/flatbuffer.rs:722:15 [INFO] [stdout] | [INFO] [stdout] 722 | pub(crate) fn inspect_packages(blob: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_dense_parameter_region` is never used [INFO] [stdout] --> src/flatbuffer.rs:881:15 [INFO] [stdout] | [INFO] [stdout] 881 | pub(crate) fn select_dense_parameter_region( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: items after a test module [INFO] [stdout] --> src/control_plane.rs:297:1 [INFO] [stdout] | [INFO] [stdout] 297 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub const LIBEDGETPU_KNOWN_GOOD_SETUP_SEQUENCE: &[VendorControlStep] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_test_module [INFO] [stdout] = note: `#[warn(clippy::items_after_test_module)]` on by default [INFO] [stdout] = help: move the items to before the test module was defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/flatbuffer.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl Region { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub(crate) fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutableView` is never constructed [INFO] [stdout] --> src/flatbuffer.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct ExecutableView { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PackageView` is never constructed [INFO] [stdout] --> src/flatbuffer.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) struct PackageView { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inspect_packages` is never used [INFO] [stdout] --> src/flatbuffer.rs:722:15 [INFO] [stdout] | [INFO] [stdout] 722 | pub(crate) fn inspect_packages(blob: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_dense_parameter_region` is never used [INFO] [stdout] --> src/flatbuffer.rs:881:15 [INFO] [stdout] | [INFO] [stdout] 881 | pub(crate) fn select_dense_parameter_region( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/flatbuffer.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 209 | if vtable_len < 4 || (vtable_len % 2) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!vtable_len.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/flatbuffer.rs:272:26 [INFO] [stdout] | [INFO] [stdout] 272 | if vtable_len < 4 || (vtable_len % 2) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!vtable_len.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/flatbuffer.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | if !weight_zero_points.is_empty() [INFO] [stdout] | ____________^ [INFO] [stdout] 628 | | && !(weight_zero_points.len() == 1 || weight_zero_points.len() == out_channels) [INFO] [stdout] | |___________________________________________________________________________________________^ help: try: `!(weight_zero_points.is_empty() || weight_zero_points.len() == 1 || weight_zero_points.len() == out_channels)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/flatbuffer.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 209 | if vtable_len < 4 || (vtable_len % 2) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!vtable_len.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/flatbuffer.rs:272:26 [INFO] [stdout] | [INFO] [stdout] 272 | if vtable_len < 4 || (vtable_len % 2) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!vtable_len.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/flatbuffer.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | if !weight_zero_points.is_empty() [INFO] [stdout] | ____________^ [INFO] [stdout] 628 | | && !(weight_zero_points.len() == 1 || weight_zero_points.len() == out_channels) [INFO] [stdout] | |___________________________________________________________________________________________^ help: try: `!(weight_zero_points.is_empty() || weight_zero_points.len() == 1 || weight_zero_points.len() == out_channels)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if (rows % 64) != 0 || (cols % 64) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace with: `!rows.is_multiple_of(64)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | if (rows % 64) != 0 || (cols % 64) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace with: `!cols.is_multiple_of(64)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | if (in_channels % 4) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!in_channels.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:327:29 [INFO] [stdout] | [INFO] [stdout] 327 | if out_channels == 0 || (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | if out_channels == 0 || (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | if (rows % 64) != 0 || (cols % 64) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace with: `!rows.is_multiple_of(64)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | if (rows % 64) != 0 || (cols % 64) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace with: `!cols.is_multiple_of(64)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | if (in_channels % 4) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!in_channels.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:327:29 [INFO] [stdout] | [INFO] [stdout] 327 | if out_channels == 0 || (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/param_pack.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | if out_channels == 0 || (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mae`, `rmse`, `max_abs_delta`, `mismatches_gt2`, and `corr` are never read [INFO] [stdout] --> tests/../examples/common/affine.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct VerifyStats { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 20 | pub count: usize, [INFO] [stdout] 21 | pub mae: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | pub rmse: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | pub max_abs_delta: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub mismatches_gt2: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub corr: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VerifyStats` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_f32` is never used [INFO] [stdout] --> tests/../examples/common/rng.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl XorShift64 { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn next_f32(&mut self, low: f32, high: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> tests/../examples/common/quant.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if inputs_q.len() % input_dim != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!inputs_q.len().is_multiple_of(input_dim)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> tests/../examples/common/quant.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if inputs_q.len() % input_dim != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!inputs_q.len().is_multiple_of(input_dim)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / fn materialize_param_stream( [INFO] [stdout] 75 | | height: usize, [INFO] [stdout] 76 | | width: usize, [INFO] [stdout] 77 | | kernel_size: usize, [INFO] [stdout] ... | [INFO] [stdout] 84 | | weight_bytes_oc_kh_kw_ic: &[u8], [INFO] [stdout] 85 | | ) -> Result, Box> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | if (in_channels % 4) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!in_channels.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | if (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_scale_for_qmax` is never used [INFO] [stdout] --> examples/common/quant.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn symmetric_scale_for_qmax(values: &[f32], qmax: i32, zero_threshold: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quantize_symmetric_i8` is never used [INFO] [stdout] --> examples/common/quant.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn quantize_symmetric_i8(values: &[f32], scale: f32, qmax: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cpu_accumulator_reference` is never used [INFO] [stdout] --> examples/common/quant.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cpu_accumulator_reference( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cpu_accumulator_reference_seq_dmodel` is never used [INFO] [stdout] --> examples/common/quant.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn cpu_accumulator_reference_seq_dmodel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/common/quant.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if inputs_q.len() % input_dim != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!inputs_q.len().is_multiple_of(input_dim)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/word_field_spec_v2/fit.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 94 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 94 - for j in col..4 { [INFO] [stdout] 94 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/word_field_spec_v2/fit.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 105 - for j in col..4 { [INFO] [stdout] 105 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/predict.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / pub fn predict_value( [INFO] [stdout] 113 | | model: &str, [INFO] [stdout] 114 | | params: &Map, [INFO] [stdout] 115 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 123 | | bits: u8, [INFO] [stdout] 124 | | ) -> i128 { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/predict.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | / pub fn predict_word( [INFO] [stdout] 217 | | ctx: &WordContext, [INFO] [stdout] 218 | | global_mode: PredictMode, [INFO] [stdout] 219 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 224 | | rule: Option<&RuleChoice>, [INFO] [stdout] 225 | | ) -> (u64, String, Map, String, u8) { [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / fn build_contexts( [INFO] [stdout] 64 | | analysis: &AnalysisReport, [INFO] [stdout] 65 | | base_blob: &[u8], [INFO] [stdout] 66 | | target_blob: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 71 | | lanes: &[LaneKey], [INFO] [stdout] 72 | | ) -> Vec { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | / fn evaluate_rule_on_ctx( [INFO] [stdout] 305 | | ctx: &WordContext, [INFO] [stdout] 306 | | global_mode: PredictMode, [INFO] [stdout] 307 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 312 | | rule: RuleChoice, [INFO] [stdout] 313 | | ) -> CandidateEval { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:492:1 [INFO] [stdout] | [INFO] [stdout] 492 | / fn simulate_patch( [INFO] [stdout] 493 | | contexts: &[WordContext], [INFO] [stdout] 494 | | base_blob: &[u8], [INFO] [stdout] 495 | | target_blob: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 503 | | residue_rules: &HashMap<(LaneKey, i64), RuleChoice>, [INFO] [stdout] 504 | | ) -> PatchSimulation { [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | / fn write_patchspec( [INFO] [stdout] 591 | | path: &str, [INFO] [stdout] 592 | | payload_len: usize, [INFO] [stdout] 593 | | predict_mode: PredictMode, [INFO] [stdout] ... | [INFO] [stdout] 601 | | tier_filter: Option, [INFO] [stdout] 602 | | ) -> Result> { [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:826:5 [INFO] [stdout] | [INFO] [stdout] 826 | residue_rule_rows.sort_by(|a, b| a.0.cmp(&b.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 826 - residue_rule_rows.sort_by(|a, b| a.0.cmp(&b.0)); [INFO] [stdout] 826 + residue_rule_rows.sort_by_key(|a| a.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / fn materialize_param_stream( [INFO] [stdout] 75 | | height: usize, [INFO] [stdout] 76 | | width: usize, [INFO] [stdout] 77 | | kernel_size: usize, [INFO] [stdout] ... | [INFO] [stdout] 84 | | weight_bytes_oc_kh_kw_ic: &[u8], [INFO] [stdout] 85 | | ) -> Result, Box> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | if (in_channels % 4) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!in_channels.is_multiple_of(4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/conv_k_param_materialize.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | if (out_channels % 32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!out_channels.is_multiple_of(32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_param_glitch_fuzz.rs:675:44 [INFO] [stdout] | [INFO] [stdout] 675 | if glitches < cfg.glitch_budget && chunk_idx % cfg.glitch_every_chunks == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `chunk_idx.is_multiple_of(cfg.glitch_every_chunks)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:371:18 [INFO] [stdout] | [INFO] [stdout] 371 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 371 - for j in col..4 { [INFO] [stdout] 371 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 382 - for j in col..4 { [INFO] [stdout] 382 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:536:1 [INFO] [stdout] | [INFO] [stdout] 536 | / fn predict_value( [INFO] [stdout] 537 | | model: &str, [INFO] [stdout] 538 | | params: &Map, [INFO] [stdout] 539 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 547 | | bits: u8, [INFO] [stdout] 548 | | ) -> i128 { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:371:18 [INFO] [stdout] | [INFO] [stdout] 371 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 371 - for j in col..4 { [INFO] [stdout] 371 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 382 - for j in col..4 { [INFO] [stdout] 382 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/conv_k3_eo_emit.rs:536:1 [INFO] [stdout] | [INFO] [stdout] 536 | / fn predict_value( [INFO] [stdout] 537 | | model: &str, [INFO] [stdout] 538 | | params: &Map, [INFO] [stdout] 539 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 547 | | bits: u8, [INFO] [stdout] 548 | | ) -> i128 { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | fn choose_execution_executable<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 36 | executables: &'a [SerializedExecutableBlob], [INFO] [stdout] | ^^ [INFO] [stdout] 37 | forced_index: Option, [INFO] [stdout] 38 | ) -> Result<&'a SerializedExecutableBlob, Box> { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 35 ~ fn choose_execution_executable( [INFO] [stdout] 36 ~ executables: &[SerializedExecutableBlob], [INFO] [stdout] 37 | forced_index: Option, [INFO] [stdout] 38 ~ ) -> Result<&SerializedExecutableBlob, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 161 | ) -> Result, String)>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:634:5 [INFO] [stdout] | [INFO] [stdout] 634 | chunk_idx % config.param_csr_snapshot_every_chunks == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `chunk_idx.is_multiple_of(config.param_csr_snapshot_every_chunks)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:695:1 [INFO] [stdout] | [INFO] [stdout] 695 | / fn run_pending_known_good_gates( [INFO] [stdout] 696 | | driver: &EdgeTpuUsbDriver, [INFO] [stdout] 697 | | config: &Config, [INFO] [stdout] 698 | | phase_label: &str, [INFO] [stdout] ... | [INFO] [stdout] 704 | | window_gate_count: &mut usize, [INFO] [stdout] 705 | | ) -> Result<(), Box> { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:986:39 [INFO] [stdout] | [INFO] [stdout] 986 | if user_data.log_every > 0 && (callback_idx % user_data.log_every == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `callback_idx.is_multiple_of(user_data.log_every)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:1561:1 [INFO] [stdout] | [INFO] [stdout] 1561 | / fn stream_parameter_chunks_with_submit_lanes( [INFO] [stdout] 1562 | | driver: &EdgeTpuUsbDriver, [INFO] [stdout] 1563 | | config: &Config, [INFO] [stdout] 1564 | | payload: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 1571 | | interrupt_poll_timeout: Duration, [INFO] [stdout] 1572 | | ) -> Result<(), Box> { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:1917:1 [INFO] [stdout] | [INFO] [stdout] 1917 | / fn stream_parameter_chunks( [INFO] [stdout] 1918 | | driver: &EdgeTpuUsbDriver, [INFO] [stdout] 1919 | | config: &Config, [INFO] [stdout] 1920 | | payload: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 1927 | | interrupt_poll_timeout: Duration, [INFO] [stdout] 1928 | | ) -> Result<(), Box> { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:2111:43 [INFO] [stdout] | [INFO] [stdout] 2111 | if in_admission_window && (global_chunk_idx % admission_wait_every_chunks == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `global_chunk_idx.is_multiple_of(admission_wait_every_chunks)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:2157:20 [INFO] [stdout] | [INFO] [stdout] 2157 | && (global_chunk_idx % config.param_read_event_every == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `global_chunk_idx.is_multiple_of(config.param_read_event_every)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:2169:20 [INFO] [stdout] | [INFO] [stdout] 2169 | && (global_chunk_idx % config.param_read_interrupt_every == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `global_chunk_idx.is_multiple_of(config.param_read_interrupt_every)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:2189:16 [INFO] [stdout] | [INFO] [stdout] 2189 | && (descriptor_idx % config.param_drain_event_every_descriptors == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `descriptor_idx.is_multiple_of(config.param_drain_event_every_descriptors)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:2216:1 [INFO] [stdout] | [INFO] [stdout] 2216 | / fn stream_parameter_chunks_with_optional_async_lanes( [INFO] [stdout] 2217 | | driver: &EdgeTpuUsbDriver, [INFO] [stdout] 2218 | | config: &Config, [INFO] [stdout] 2219 | | payload: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 2226 | | interrupt_poll_timeout: Duration, [INFO] [stdout] 2227 | | ) -> Result<(), Box> { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/word_field_spec_v2/fit.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 94 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 94 - for j in col..4 { [INFO] [stdout] 94 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `m` [INFO] [stdout] --> src/bin/word_field_spec_v2/fit.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | for j in col..4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 105 - for j in col..4 { [INFO] [stdout] 105 + for in m.iter_mut().skip(col) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `run` is used to index `input_batches` [INFO] [stdout] --> examples/rusb_serialized_exec_replay/main.rs:3079:20 [INFO] [stdout] | [INFO] [stdout] 3079 | for run in 0..config.runs { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 3079 - for run in 0..config.runs { [INFO] [stdout] 3079 + for (run, ) in input_batches.iter().enumerate().take(config.runs) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/predict.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / pub fn predict_value( [INFO] [stdout] 113 | | model: &str, [INFO] [stdout] 114 | | params: &Map, [INFO] [stdout] 115 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 123 | | bits: u8, [INFO] [stdout] 124 | | ) -> i128 { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/predict.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | / pub fn predict_word( [INFO] [stdout] 217 | | ctx: &WordContext, [INFO] [stdout] 218 | | global_mode: PredictMode, [INFO] [stdout] 219 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 224 | | rule: Option<&RuleChoice>, [INFO] [stdout] 225 | | ) -> (u64, String, Map, String, u8) { [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / fn build_contexts( [INFO] [stdout] 64 | | analysis: &AnalysisReport, [INFO] [stdout] 65 | | base_blob: &[u8], [INFO] [stdout] 66 | | target_blob: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 71 | | lanes: &[LaneKey], [INFO] [stdout] 72 | | ) -> Vec { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | / fn evaluate_rule_on_ctx( [INFO] [stdout] 305 | | ctx: &WordContext, [INFO] [stdout] 306 | | global_mode: PredictMode, [INFO] [stdout] 307 | | low_dim: i64, [INFO] [stdout] ... | [INFO] [stdout] 312 | | rule: RuleChoice, [INFO] [stdout] 313 | | ) -> CandidateEval { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:492:1 [INFO] [stdout] | [INFO] [stdout] 492 | / fn simulate_patch( [INFO] [stdout] 493 | | contexts: &[WordContext], [INFO] [stdout] 494 | | base_blob: &[u8], [INFO] [stdout] 495 | | target_blob: &[u8], [INFO] [stdout] ... | [INFO] [stdout] 503 | | residue_rules: &HashMap<(LaneKey, i64), RuleChoice>, [INFO] [stdout] 504 | | ) -> PatchSimulation { [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (11/7) [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | / fn write_patchspec( [INFO] [stdout] 591 | | path: &str, [INFO] [stdout] 592 | | payload_len: usize, [INFO] [stdout] 593 | | predict_mode: PredictMode, [INFO] [stdout] ... | [INFO] [stdout] 601 | | tier_filter: Option, [INFO] [stdout] 602 | | ) -> Result> { [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/bin/word_field_spec_v2/report.rs:826:5 [INFO] [stdout] | [INFO] [stdout] 826 | residue_rule_rows.sort_by(|a, b| a.0.cmp(&b.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 826 - residue_rule_rows.sort_by(|a, b| a.0.cmp(&b.0)); [INFO] [stdout] 826 + residue_rule_rows.sort_by_key(|a| a.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.36s [INFO] running `Command { std: "docker" "inspect" "b171cdede653484b036fa486ab725afb01923c7c8f1c167587aa0ab11db92a73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b171cdede653484b036fa486ab725afb01923c7c8f1c167587aa0ab11db92a73", kill_on_drop: false }` [INFO] [stdout] b171cdede653484b036fa486ab725afb01923c7c8f1c167587aa0ab11db92a73