[INFO] cloning repository https://github.com/JovanMwesigwa/numero-algo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JovanMwesigwa/numero-algo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJovanMwesigwa%2Fnumero-algo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJovanMwesigwa%2Fnumero-algo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 53b892a5a9893307d95674239da5eb7bc3dad8eb [INFO] building JovanMwesigwa/numero-algo against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJovanMwesigwa%2Fnumero-algo" "/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/JovanMwesigwa/numero-algo [INFO] finished tweaking git repo https://github.com/JovanMwesigwa/numero-algo [INFO] tweaked toml for git repo https://github.com/JovanMwesigwa/numero-algo written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JovanMwesigwa/numero-algo on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JovanMwesigwa/numero-algo 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v1.15.0 [INFO] [stderr] Downloaded windows-link v0.1.1 [INFO] [stderr] Downloaded num-complex v0.4.6 [INFO] [stderr] Downloaded primal-check v0.3.4 [INFO] [stderr] Downloaded overload v0.1.1 [INFO] [stderr] Downloaded nu-ansi-term v0.46.0 [INFO] [stderr] Downloaded strength_reduce v0.2.4 [INFO] [stderr] Downloaded rodio v0.17.3 [INFO] [stderr] Downloaded colorous v1.0.16 [INFO] [stderr] Downloaded pathfinder_simd v0.5.4 [INFO] [stderr] Downloaded windows-core v0.61.0 [INFO] [stderr] Downloaded flate2 v1.1.1 [INFO] [stderr] Downloaded cc v1.2.21 [INFO] [stderr] Downloaded symphonia-core v0.5.4 [INFO] [stderr] Downloaded toml_edit v0.22.26 [INFO] [stderr] Downloaded symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Downloaded miniz_oxide v0.8.8 [INFO] [stderr] Downloaded winnow v0.7.9 [INFO] [stderr] Downloaded claxon v0.4.3 [INFO] [stderr] Downloaded unicode-width v0.2.0 [INFO] [stderr] Downloaded syn v2.0.101 [INFO] [stderr] Downloaded r-efi v5.2.0 [INFO] [stderr] Downloaded tinyvec v1.9.0 [INFO] [stderr] Downloaded bytemuck v1.23.0 [INFO] [stderr] Downloaded font-kit v0.14.2 [INFO] [stderr] Downloaded bitflags v2.9.0 [INFO] [stderr] Downloaded rustfft v6.3.0 [INFO] [stderr] Downloaded hound v3.5.1 [INFO] [stderr] Downloaded getrandom v0.3.2 [INFO] [stderr] Downloaded jobserver v0.1.33 [INFO] [stderr] Downloaded rustversion v1.0.20 [INFO] [stderr] Downloaded symphonia v0.5.4 [INFO] [stderr] Downloaded windows-result v0.3.2 [INFO] [stderr] Downloaded windows-strings v0.4.0 [INFO] [stderr] Downloaded toml_datetime v0.6.9 [INFO] [stderr] Downloaded symphonia-metadata v0.5.4 [INFO] [stderr] Downloaded transpose v0.2.3 [INFO] [stderr] Downloaded libc v0.2.172 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a96330ecb5550fe2abaaef4aa759e9cc523113ff78a4ddf1de23de1c94efcc3e [INFO] running `Command { std: "docker" "start" "-a" "a96330ecb5550fe2abaaef4aa759e9cc523113ff78a4ddf1de23de1c94efcc3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a96330ecb5550fe2abaaef4aa759e9cc523113ff78a4ddf1de23de1c94efcc3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a96330ecb5550fe2abaaef4aa759e9cc523113ff78a4ddf1de23de1c94efcc3e", kill_on_drop: false }` [INFO] [stdout] a96330ecb5550fe2abaaef4aa759e9cc523113ff78a4ddf1de23de1c94efcc3e [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f37ec3f274743bb4deb1b09fe26c4db372ea60f872fadf2a742b0011ac07a34 [INFO] running `Command { std: "docker" "start" "-a" "5f37ec3f274743bb4deb1b09fe26c4db372ea60f872fadf2a742b0011ac07a34", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling bytemuck v1.23.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling cc v1.2.21 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling font-kit v0.14.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rustfft v6.3.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling strength_reduce v0.2.4 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling primal-check v0.3.4 [INFO] [stderr] Compiling transpose v0.2.3 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling colorous v1.0.16 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling plotters-bitmap v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling numero v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::hash::hash_fingerprint` [INFO] [stdout] --> src/fingerprint/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::hash::hash_fingerprint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::utils::frame_signal` [INFO] [stdout] --> src/fingerprint/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::utils::frame_signal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dsp/filter.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut n = input.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dsp/filter.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut k = kernel.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_width` [INFO] [stdout] --> src/dsp/viz.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 330 | let _pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_FREQ_RATIO` [INFO] [stdout] | [INFO] [stdout] 330 - let pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] 330 + let fingerprint::match_fingerprints::MAX_FREQ_RATIO = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_height` [INFO] [stdout] --> src/dsp/viz.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 331 | let _pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_FREQ_RATIO` [INFO] [stdout] | [INFO] [stdout] 331 - let pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] 331 + let fingerprint::match_fingerprints::MAX_FREQ_RATIO = 600.0 / frame_size as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_area` [INFO] [stdout] --> src/dsp/viz.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (main_area, colorbar_area) = root.split_horizontally(920); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fingerprint/utils.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut n = signal.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_freq_signature` is never used [INFO] [stdout] --> src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn get_freq_signature(f1: u32, f2: u32) -> i32 { [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 `visualize_kernel` is never used [INFO] [stdout] --> src/dsp/viz.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn visualize_kernel(kernel: &[f64], width: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_kernel` is never used [INFO] [stdout] --> src/dsp/viz.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn plot_kernel( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_kernel_with_frequency_response` is never used [INFO] [stdout] --> src/dsp/viz.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn plot_kernel_with_frequency_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_frequency_response` is never used [INFO] [stdout] --> src/dsp/viz.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn calculate_frequency_response(kernel: &[f64], n_points: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_filter_comparison` is never used [INFO] [stdout] --> src/dsp/viz.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn plot_filter_comparison( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_hash` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn decode_hash(hash: u32) -> (u32, u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FingerprintMatch` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct FingerprintMatch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_fingerprints` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn match_fingerprints(fp1: &[u32], fp2: &[u32]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `magnitude` is never read [INFO] [stdout] --> src/fingerprint/peaks.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Peak { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub magnitude: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Peak` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_audio_stats` is never used [INFO] [stdout] --> src/utils.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn calculate_audio_stats(samples: &[i16]) -> AudioStats { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AudioStats` is never constructed [INFO] [stdout] --> src/utils.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct AudioStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/utils.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | if min < -32768 || max > 32767 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.47s [INFO] running `Command { std: "docker" "inspect" "5f37ec3f274743bb4deb1b09fe26c4db372ea60f872fadf2a742b0011ac07a34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f37ec3f274743bb4deb1b09fe26c4db372ea60f872fadf2a742b0011ac07a34", kill_on_drop: false }` [INFO] [stdout] 5f37ec3f274743bb4deb1b09fe26c4db372ea60f872fadf2a742b0011ac07a34 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f95ee47b7ec41b2957b819a3b175ba72f69f08ef29d1d973c1431caab1bdcaa [INFO] running `Command { std: "docker" "start" "-a" "9f95ee47b7ec41b2957b819a3b175ba72f69f08ef29d1d973c1431caab1bdcaa", kill_on_drop: false }` [INFO] [stderr] Compiling numero v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::hash::hash_fingerprint` [INFO] [stdout] --> src/fingerprint/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::hash::hash_fingerprint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::utils::frame_signal` [INFO] [stdout] --> src/fingerprint/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::utils::frame_signal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dsp/filter.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut n = input.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dsp/filter.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut k = kernel.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_width` [INFO] [stdout] --> src/dsp/viz.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 330 | let _pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_FREQ_RATIO` [INFO] [stdout] | [INFO] [stdout] 330 - let pixel_width = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] 330 + let fingerprint::match_fingerprints::MAX_FREQ_RATIO = 900.0 / spectrogram.len() as f64; // Reduced width to accommodate colorbar [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_height` [INFO] [stdout] --> src/dsp/viz.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 331 | let _pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_FREQ_RATIO` [INFO] [stdout] | [INFO] [stdout] 331 - let pixel_height = 600.0 / frame_size as f64; [INFO] [stdout] 331 + let fingerprint::match_fingerprints::MAX_FREQ_RATIO = 600.0 / frame_size as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_area` [INFO] [stdout] --> src/dsp/viz.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (main_area, colorbar_area) = root.split_horizontally(920); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fingerprint/utils.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut n = signal.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_freq_signature` is never used [INFO] [stdout] --> src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn get_freq_signature(f1: u32, f2: u32) -> i32 { [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 `visualize_kernel` is never used [INFO] [stdout] --> src/dsp/viz.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn visualize_kernel(kernel: &[f64], width: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_kernel` is never used [INFO] [stdout] --> src/dsp/viz.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn plot_kernel( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_kernel_with_frequency_response` is never used [INFO] [stdout] --> src/dsp/viz.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn plot_kernel_with_frequency_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_frequency_response` is never used [INFO] [stdout] --> src/dsp/viz.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn calculate_frequency_response(kernel: &[f64], n_points: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plot_filter_comparison` is never used [INFO] [stdout] --> src/dsp/viz.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn plot_filter_comparison( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_hash` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn decode_hash(hash: u32) -> (u32, u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FingerprintMatch` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct FingerprintMatch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_fingerprints` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn match_fingerprints(fp1: &[u32], fp2: &[u32]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `magnitude` is never read [INFO] [stdout] --> src/fingerprint/peaks.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Peak { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub magnitude: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Peak` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_audio_stats` is never used [INFO] [stdout] --> src/utils.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn calculate_audio_stats(samples: &[i16]) -> AudioStats { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AudioStats` is never constructed [INFO] [stdout] --> src/utils.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct AudioStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/utils.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | if min < -32768 || max > 32767 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "9f95ee47b7ec41b2957b819a3b175ba72f69f08ef29d1d973c1431caab1bdcaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f95ee47b7ec41b2957b819a3b175ba72f69f08ef29d1d973c1431caab1bdcaa", kill_on_drop: false }` [INFO] [stdout] 9f95ee47b7ec41b2957b819a3b175ba72f69f08ef29d1d973c1431caab1bdcaa