[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.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsteffensen%2Fsinus-synth" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psteffensen/sinus-synth on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", 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-2/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.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "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] 7ed4c4ab4660873be5c5dc158f161c06cebbfe4ea9ba1e070c392b9137551493 [INFO] running `Command { std: "docker" "start" "-a" "7ed4c4ab4660873be5c5dc158f161c06cebbfe4ea9ba1e070c392b9137551493", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ed4c4ab4660873be5c5dc158f161c06cebbfe4ea9ba1e070c392b9137551493", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ed4c4ab4660873be5c5dc158f161c06cebbfe4ea9ba1e070c392b9137551493", kill_on_drop: false }` [INFO] [stdout] 7ed4c4ab4660873be5c5dc158f161c06cebbfe4ea9ba1e070c392b9137551493 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ebd42eab83fab0d5af69580432a5524acedd35df9dbad5e1a7fc11e72d6cc29 [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" "9ebd42eab83fab0d5af69580432a5524acedd35df9dbad5e1a7fc11e72d6cc29", kill_on_drop: false }` [INFO] [stderr] Compiling piston-float v0.3.0 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling shader_version v0.3.0 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling interpolation v0.1.0 [INFO] [stderr] Compiling piston-texture v0.6.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling stb_truetype v0.2.4 [INFO] [stderr] Compiling arrayvec v0.4.8 [INFO] [stderr] Compiling smallvec v0.6.7 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling wayland-protocols v0.21.7 [INFO] [stderr] Compiling approx v0.3.0 [INFO] [stderr] Compiling wayland-client v0.21.7 [INFO] [stderr] Compiling piston-viewport v0.5.0 [INFO] [stderr] Compiling vecmath v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling serde_derive v1.0.82 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling rusttype v0.7.3 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling wayland-sys v0.21.7 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling wayland-commons v0.21.7 [INFO] [stderr] Compiling andrew v0.1.4 [INFO] [stderr] Compiling piston2d-graphics v0.28.0 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling glutin v0.19.0 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling tiff v0.2.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling image v0.20.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.3 [INFO] [stderr] Compiling pistoncore-input v0.23.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.57.0 [INFO] [stderr] Compiling winit v0.18.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] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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:13 [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:13 [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:17 [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 from Ok(1) to 1 [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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: f64, pi: f64, 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: 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "9ebd42eab83fab0d5af69580432a5524acedd35df9dbad5e1a7fc11e72d6cc29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ebd42eab83fab0d5af69580432a5524acedd35df9dbad5e1a7fc11e72d6cc29", kill_on_drop: false }` [INFO] [stdout] 9ebd42eab83fab0d5af69580432a5524acedd35df9dbad5e1a7fc11e72d6cc29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9f5ac8e4ec1ba115f2d1d6aab94f9cf9548cbeaf332c4b1325ac3cb009d7270 [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" "d9f5ac8e4ec1ba115f2d1d6aab94f9cf9548cbeaf332c4b1325ac3cb009d7270", 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] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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:13 [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:13 [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:17 [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 from Ok(1) to 1 [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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: f64, pi: f64, 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: 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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.36s [INFO] running `Command { std: "docker" "inspect" "d9f5ac8e4ec1ba115f2d1d6aab94f9cf9548cbeaf332c4b1325ac3cb009d7270", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9f5ac8e4ec1ba115f2d1d6aab94f9cf9548cbeaf332c4b1325ac3cb009d7270", kill_on_drop: false }` [INFO] [stdout] d9f5ac8e4ec1ba115f2d1d6aab94f9cf9548cbeaf332c4b1325ac3cb009d7270 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 481f226202097807a82c2e32987111be6f1ae050c7f5c7cead70fc5b28e8a65b [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" "481f226202097807a82c2e32987111be6f1ae050c7f5c7cead70fc5b28e8a65b", 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] | ^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [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:13 [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:13 [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:17 [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 from Ok(1) to 1 [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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: 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 | fn vibrating_line(c: &graphics::Context, gl: &mut GlGraphics, transform: [[f64; 3];2], wave: f64, pi: f64, 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: 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: 15 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/sinus_synth-2f518823d5847302 [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 [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "481f226202097807a82c2e32987111be6f1ae050c7f5c7cead70fc5b28e8a65b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "481f226202097807a82c2e32987111be6f1ae050c7f5c7cead70fc5b28e8a65b", kill_on_drop: false }` [INFO] [stdout] 481f226202097807a82c2e32987111be6f1ae050c7f5c7cead70fc5b28e8a65b