[INFO] fetching crate audio_samples 0.1.0... [INFO] checking audio_samples-0.1.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate audio_samples 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate audio_samples 0.1.0 [INFO] finished tweaking crates.io crate audio_samples 0.1.0 [INFO] tweaked toml for crates.io crate audio_samples 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate audio_samples 0.1.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate audio_samples 0.1.0 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 685d094b4ba8739f19aefc28d7e587a136e2ad5e849c4d4b3933c494538a2fa0 [INFO] running `Command { std: "docker" "start" "-a" "685d094b4ba8739f19aefc28d7e587a136e2ad5e849c4d4b3933c494538a2fa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "685d094b4ba8739f19aefc28d7e587a136e2ad5e849c4d4b3933c494538a2fa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "685d094b4ba8739f19aefc28d7e587a136e2ad5e849c4d4b3933c494538a2fa0", kill_on_drop: false }` [INFO] [stdout] 685d094b4ba8739f19aefc28d7e587a136e2ad5e849c4d4b3933c494538a2fa0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cde2d71b604540b5f5bb4514146f6a61ed7411dd016defac8b076e80ae0f5124 [INFO] running `Command { std: "docker" "start" "-a" "cde2d71b604540b5f5bb4514146f6a61ed7411dd016defac8b076e80ae0f5124", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.13.2 [INFO] [stderr] Checking inventory v0.3.20 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Checking approx_eq v0.1.8 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking primal-check v0.3.4 [INFO] [stderr] Checking transpose v0.2.3 [INFO] [stderr] Compiling pyo3-build-config v0.24.2 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking rustfft v6.4.0 [INFO] [stderr] Compiling pyo3-ffi v0.24.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.24.2 [INFO] [stderr] Compiling pyo3 v0.24.2 [INFO] [stderr] Compiling numpy v0.24.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling pyo3-macros v0.24.2 [INFO] [stderr] Checking i24 v2.1.0 [INFO] [stderr] Checking audio_samples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `copy` [INFO] [stdout] --> src/python/mod.rs:772:55 [INFO] [stdout] | [INFO] [stdout] 772 | fn from_numpy(array: &Bound, sample_rate: u32, copy: bool) -> PyResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_copy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `I24` is never constructed [INFO] [stdout] --> src/python/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) enum AudioSamplesData { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 28 | I24(AudioSamples), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioSamplesData` has derived impls for the traits `Clone` and `Debug`, 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 `data` is never used [INFO] [stdout] --> src/python/mod.rs:1051:19 [INFO] [stdout] | [INFO] [stdout] 1049 | impl PyAudioSamples { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 1050 | /// Get a reference to the inner AudioSamplesData for use in submodules [INFO] [stdout] 1051 | pub(crate) fn data(&self) -> &crate::python::AudioSamplesData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dtype_impl` is never used [INFO] [stdout] --> src/python/conversions.rs:340:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl PyAudioSamples { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub(crate) fn dtype_impl(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_to_pylist_f64` is never used [INFO] [stdout] --> src/python/utils.rs:371:8 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn vec_to_pylist_f64(py: Python, vec: Vec) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/operations/types.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Debug, Clone, PartialEq, Copy)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 62 | Custom(fn(f64) -> f64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:204:41 [INFO] [stdout] | [INFO] [stdout] 204 | const fn bytes_per_sample(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:299:23 [INFO] [stdout] | [INFO] [stdout] 299 | fn copy(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | fn peak(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:314:22 [INFO] [stdout] | [INFO] [stdout] 314 | fn min(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:320:22 [INFO] [stdout] | [INFO] [stdout] 320 | fn max(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:326:22 [INFO] [stdout] | [INFO] [stdout] 326 | fn rms(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn variance(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:370:26 [INFO] [stdout] | [INFO] [stdout] 370 | fn std_dev(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:376:33 [INFO] [stdout] | [INFO] [stdout] 376 | fn zero_crossings(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:382:37 [INFO] [stdout] | [INFO] [stdout] 382 | fn zero_crossing_rate(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:442:30 [INFO] [stdout] | [INFO] [stdout] 442 | fn test_method(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `audio_samples` (lib) due to 11 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `copy` [INFO] [stdout] --> src/python/mod.rs:772:55 [INFO] [stdout] | [INFO] [stdout] 772 | fn from_numpy(array: &Bound, sample_rate: u32, copy: bool) -> PyResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_copy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `I24` is never constructed [INFO] [stdout] --> src/python/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) enum AudioSamplesData { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 28 | I24(AudioSamples), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioSamplesData` has derived impls for the traits `Clone` and `Debug`, 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 `data` is never used [INFO] [stdout] --> src/python/mod.rs:1051:19 [INFO] [stdout] | [INFO] [stdout] 1049 | impl PyAudioSamples { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 1050 | /// Get a reference to the inner AudioSamplesData for use in submodules [INFO] [stdout] 1051 | pub(crate) fn data(&self) -> &crate::python::AudioSamplesData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dtype_impl` is never used [INFO] [stdout] --> src/python/conversions.rs:340:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl PyAudioSamples { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub(crate) fn dtype_impl(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_to_pylist_f64` is never used [INFO] [stdout] --> src/python/utils.rs:371:8 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn vec_to_pylist_f64(py: Python, vec: Vec) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/operations/types.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Debug, Clone, PartialEq, Copy)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 62 | Custom(fn(f64) -> f64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:204:41 [INFO] [stdout] | [INFO] [stdout] 204 | const fn bytes_per_sample(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:299:23 [INFO] [stdout] | [INFO] [stdout] 299 | fn copy(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | fn peak(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:314:22 [INFO] [stdout] | [INFO] [stdout] 314 | fn min(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:320:22 [INFO] [stdout] | [INFO] [stdout] 320 | fn max(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:326:22 [INFO] [stdout] | [INFO] [stdout] 326 | fn rms(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn variance(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:370:26 [INFO] [stdout] | [INFO] [stdout] 370 | fn std_dev(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:376:33 [INFO] [stdout] | [INFO] [stdout] 376 | fn zero_crossings(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:382:37 [INFO] [stdout] | [INFO] [stdout] 382 | fn zero_crossing_rate(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/python/mod.rs:442:30 [INFO] [stdout] | [INFO] [stdout] 442 | fn test_method(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `audio_samples` (lib test) due to 11 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cde2d71b604540b5f5bb4514146f6a61ed7411dd016defac8b076e80ae0f5124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cde2d71b604540b5f5bb4514146f6a61ed7411dd016defac8b076e80ae0f5124", kill_on_drop: false }` [INFO] [stdout] cde2d71b604540b5f5bb4514146f6a61ed7411dd016defac8b076e80ae0f5124