[INFO] cloning repository https://github.com/psteffensen/sinus-synth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psteffensen/sinus-synth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsteffensen%2Fsinus-synth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsteffensen%2Fsinus-synth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b37f2d4c6809f90f0abc1ab22776663d68995ddb [INFO] testing psteffensen/sinus-synth against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsteffensen%2Fsinus-synth" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psteffensen/sinus-synth on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psteffensen/sinus-synth [INFO] finished tweaking git repo https://github.com/psteffensen/sinus-synth [INFO] tweaked toml for git repo https://github.com/psteffensen/sinus-synth written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/psteffensen/sinus-synth already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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 piston2d-opengl_graphics v0.57.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 238d6a058e9cf3929f866c983f2f79ad66c14fffc284a71fe1f9d98b1ffde461 [INFO] running `Command { std: "docker" "start" "-a" "238d6a058e9cf3929f866c983f2f79ad66c14fffc284a71fe1f9d98b1ffde461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "238d6a058e9cf3929f866c983f2f79ad66c14fffc284a71fe1f9d98b1ffde461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "238d6a058e9cf3929f866c983f2f79ad66c14fffc284a71fe1f9d98b1ffde461", kill_on_drop: false }` [INFO] [stdout] 238d6a058e9cf3929f866c983f2f79ad66c14fffc284a71fe1f9d98b1ffde461 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c9d81eb9e5e6a5ac2e798c00af66ae83c94ec80f31a3bfd6397393e306025c13 [INFO] running `Command { std: "docker" "start" "-a" "c9d81eb9e5e6a5ac2e798c00af66ae83c94ec80f31a3bfd6397393e306025c13", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling khronos_api v3.0.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling nix v0.12.0 [INFO] [stderr] Compiling downcast-rs v1.0.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling arrayvec v0.4.8 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling stb_truetype v0.2.4 [INFO] [stderr] Compiling piston-viewport v0.5.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling inflate v0.4.4 [INFO] [stderr] Compiling deflate v0.7.19 [INFO] [stderr] Compiling gif v0.10.1 [INFO] [stderr] Compiling smallvec v0.6.7 [INFO] [stderr] Compiling ordered-float v1.0.1 [INFO] [stderr] Compiling approx v0.3.0 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Compiling rusttype v0.7.3 [INFO] [stderr] Compiling wayland-scanner v0.21.7 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling andrew v0.1.4 [INFO] [stderr] Compiling piston2d-graphics v0.28.0 [INFO] [stderr] Compiling wayland-sys v0.21.7 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling wayland-client v0.21.7 [INFO] [stderr] Compiling wayland-protocols v0.21.7 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling glutin v0.19.0 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling serde_derive v1.0.82 [INFO] [stderr] Compiling wayland-commons v0.21.7 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling tiff v0.2.1 [INFO] [stderr] Compiling image v0.20.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.3 [INFO] [stderr] Compiling winit v0.18.0 [INFO] [stderr] Compiling pistoncore-input v0.23.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.57.0 [INFO] [stderr] Compiling pistoncore-window v0.34.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.39.0 [INFO] [stderr] Compiling piston v0.39.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.51.1 [INFO] [stderr] Compiling sinus-synth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:99:55 [INFO] [stdout] | [INFO] [stdout] 99 | fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stdout] 99 + fn open_sound(file_name: &str) -> std::io::Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let file_name = "sound.sin"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let contents = App::open_sound("sound_test.sin"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_usize` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let size_usize: usize = mem::size_of::(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adsr` [INFO] [stdout] --> src/main.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let mut adsr: [[f64; 4]; 1]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_adsr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq: [[f64; 2]; 2048]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut i = 1 as usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | ... i = params[1].trim().parse::().unwrap(); // number. Trim takes away white spaces, parse parses to f64 and unwrap unwraps fro... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:364:124 [INFO] [stdout] | [INFO] [stdout] 364 | ..., wave: f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:364:132 [INFO] [stdout] | [INFO] [stdout] 364 | ...f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotate` [INFO] [stdout] --> src/main.rs:364:140 [INFO] [stdout] | [INFO] [stdout] 364 | ... pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sound` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | sound: [[f64; 4];64], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `num` [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | num: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `to` [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | to: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pitch2freqFormula` [INFO] [stdout] --> src/main.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_sound` [INFO] [stdout] --> src/main.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 338 | fn save_sound(&self, file_name: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pitch2freqFormula` should have a snake case name [INFO] [stdout] --> src/main.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pitch2freq_formula` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 57s [INFO] running `Command { std: "docker" "inspect" "c9d81eb9e5e6a5ac2e798c00af66ae83c94ec80f31a3bfd6397393e306025c13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9d81eb9e5e6a5ac2e798c00af66ae83c94ec80f31a3bfd6397393e306025c13", kill_on_drop: false }` [INFO] [stdout] c9d81eb9e5e6a5ac2e798c00af66ae83c94ec80f31a3bfd6397393e306025c13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e64bcc7989d6d48ce61a38f3d8341e875b4b05ac6f3e977594d348ddba86c533 [INFO] running `Command { std: "docker" "start" "-a" "e64bcc7989d6d48ce61a38f3d8341e875b4b05ac6f3e977594d348ddba86c533", kill_on_drop: false }` [INFO] [stderr] Compiling sinus-synth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:99:55 [INFO] [stdout] | [INFO] [stdout] 99 | fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stdout] 99 + fn open_sound(file_name: &str) -> std::io::Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let file_name = "sound.sin"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let contents = App::open_sound("sound_test.sin"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_usize` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let size_usize: usize = mem::size_of::(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adsr` [INFO] [stdout] --> src/main.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let mut adsr: [[f64; 4]; 1]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_adsr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq: [[f64; 2]; 2048]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut i = 1 as usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | ... i = params[1].trim().parse::().unwrap(); // number. Trim takes away white spaces, parse parses to f64 and unwrap unwraps fro... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:364:124 [INFO] [stdout] | [INFO] [stdout] 364 | ..., wave: f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:364:132 [INFO] [stdout] | [INFO] [stdout] 364 | ...f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotate` [INFO] [stdout] --> src/main.rs:364:140 [INFO] [stdout] | [INFO] [stdout] 364 | ... pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sound` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | sound: [[f64; 4];64], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `num` [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | num: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `to` [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | to: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pitch2freqFormula` [INFO] [stdout] --> src/main.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_sound` [INFO] [stdout] --> src/main.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 338 | fn save_sound(&self, file_name: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pitch2freqFormula` should have a snake case name [INFO] [stdout] --> src/main.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pitch2freq_formula` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "e64bcc7989d6d48ce61a38f3d8341e875b4b05ac6f3e977594d348ddba86c533", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e64bcc7989d6d48ce61a38f3d8341e875b4b05ac6f3e977594d348ddba86c533", kill_on_drop: false }` [INFO] [stdout] e64bcc7989d6d48ce61a38f3d8341e875b4b05ac6f3e977594d348ddba86c533 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b74681718efcf9cd52203e0eede9928fb40b70d6a9497a2cb340251b763ad645 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b74681718efcf9cd52203e0eede9928fb40b70d6a9497a2cb340251b763ad645", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/main.rs:99:55 [INFO] [stderr] | [INFO] [stderr] 99 | fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 99 - fn open_sound(file_name: &str) -> std::io::Result<(String)> { [INFO] [stderr] 99 + fn open_sound(file_name: &str) -> std::io::Result { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_name` [INFO] [stderr] --> src/main.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | let file_name = "sound.sin"; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `contents` [INFO] [stderr] --> src/main.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | let contents = App::open_sound("sound_test.sin"); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size_usize` [INFO] [stderr] --> src/main.rs:100:13 [INFO] [stderr] | [INFO] [stderr] 100 | let size_usize: usize = mem::size_of::(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_usize` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `adsr` [INFO] [stderr] --> src/main.rs:113:17 [INFO] [stderr] | [INFO] [stderr] 113 | let mut adsr: [[f64; 4]; 1]; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_adsr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `seq` [INFO] [stderr] --> src/main.rs:119:17 [INFO] [stderr] | [INFO] [stderr] 119 | let mut seq: [[f64; 2]; 2048]; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `i` is never read [INFO] [stderr] --> src/main.rs:122:21 [INFO] [stderr] | [INFO] [stderr] 122 | let mut i = 1 as usize; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `i` is never read [INFO] [stderr] --> src/main.rs:160:21 [INFO] [stderr] | [INFO] [stderr] 160 | ... i = params[1].trim().parse::().unwrap(); // number. Trim takes away white spaces, parse parses to f64 and unwrap unwraps fro... [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:364:124 [INFO] [stderr] | [INFO] [stderr] 364 | ..., wave: f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/main.rs:364:132 [INFO] [stderr] | [INFO] [stderr] 364 | ...f64, pi: f64, pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rotate` [INFO] [stderr] --> src/main.rs:364:140 [INFO] [stderr] | [INFO] [stderr] 364 | ... pitch: f64, x: u32, y: u32, rotate: u32) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotate` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `sound` [INFO] [stderr] --> src/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | sound: [[f64; 4];64], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `num` [INFO] [stderr] --> src/main.rs:60:13 [INFO] [stderr] | [INFO] [stderr] 60 | num: usize, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:58:10 [INFO] [stderr] | [INFO] [stderr] 58 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `from` [INFO] [stderr] --> src/main.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | from: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:58:10 [INFO] [stderr] | [INFO] [stderr] 58 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `to` [INFO] [stderr] --> src/main.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | to: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:58:10 [INFO] [stderr] | [INFO] [stderr] 58 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pitch2freqFormula` [INFO] [stderr] --> src/main.rs:172:8 [INFO] [stderr] | [INFO] [stderr] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `save_sound` [INFO] [stderr] --> src/main.rs:338:8 [INFO] [stderr] | [INFO] [stderr] 338 | fn save_sound(&self, file_name: &str) -> std::io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `pitch2freqFormula` should have a snake case name [INFO] [stderr] --> src/main.rs:172:8 [INFO] [stderr] | [INFO] [stderr] 172 | fn pitch2freqFormula(pitch: u32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pitch2freq_formula` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `sinus-synth` (bin "sinus-synth" test) generated 18 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/sinus_synth-1360f17a01a5d7f0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b74681718efcf9cd52203e0eede9928fb40b70d6a9497a2cb340251b763ad645", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b74681718efcf9cd52203e0eede9928fb40b70d6a9497a2cb340251b763ad645", kill_on_drop: false }` [INFO] [stdout] b74681718efcf9cd52203e0eede9928fb40b70d6a9497a2cb340251b763ad645