[INFO] cloning repository https://github.com/weargoggles/netnoise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/weargoggles/netnoise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Fnetnoise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Fnetnoise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7c272fa49ea3d183b275e23ca400e35977857589 [INFO] checking weargoggles/netnoise against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweargoggles%2Fnetnoise" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/weargoggles/netnoise on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/weargoggles/netnoise [INFO] finished tweaking git repo https://github.com/weargoggles/netnoise [INFO] tweaked toml for git repo https://github.com/weargoggles/netnoise written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/weargoggles/netnoise already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdf3c78a491a7e1b90100a292b58de8f85eaf34c2dc0fc4f0da3dcc109642ea2 [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" "fdf3c78a491a7e1b90100a292b58de8f85eaf34c2dc0fc4f0da3dcc109642ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdf3c78a491a7e1b90100a292b58de8f85eaf34c2dc0fc4f0da3dcc109642ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdf3c78a491a7e1b90100a292b58de8f85eaf34c2dc0fc4f0da3dcc109642ea2", kill_on_drop: false }` [INFO] [stdout] fdf3c78a491a7e1b90100a292b58de8f85eaf34c2dc0fc4f0da3dcc109642ea2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f62616aa8410d6190617f59206c5e1686487d416b14a57f6ee0689c2eb42ac6 [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" "9f62616aa8410d6190617f59206c5e1686487d416b14a57f6ee0689c2eb42ac6", kill_on_drop: false }` [INFO] [stderr] Compiling sdl2-sys v0.30.0 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking num v0.1.40 [INFO] [stderr] Checking sdl2 v0.30.0 [INFO] [stderr] Checking netnoise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | const QUANTIZE_NS: u64 = (1000000000 / (SAMPLE_RATE as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / lazy_static! { [INFO] [stdout] 13 | | static ref A: f32 = (2.0 as f32).powf(1.0/12.0); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / lazy_static! { [INFO] [stdout] 13 | | static ref A: f32 = (2.0 as f32).powf(1.0/12.0); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/main.rs:106:70 [INFO] [stdout] | [INFO] [stdout] 106 | let device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | const QUANTIZE_NS: u64 = (1000000000 / (SAMPLE_RATE as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/music.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut scale = vec![tonic]; // in G [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DECAY` [INFO] [stdout] --> src/synth.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const DECAY: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_wave` [INFO] [stdout] --> src/synth.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn gen_wave(samples_to_write: i32, frequency: f32, sample_rate: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / lazy_static! { [INFO] [stdout] 5 | | pub static ref IONIAN: Vec = vec![2, 2, 1, 2, 2, 2, 1]; [INFO] [stdout] 6 | | pub static ref HARMONIC_MAJOR: Vec = vec![2, 2, 1, 2, 1, 2, 1]; [INFO] [stdout] 7 | | pub static ref AEOLIAN: Vec = vec![2, 1, 2, 2, 1, 2, 2]; [INFO] [stdout] 8 | | pub static ref PHRYGIAN_DOMINANT: Vec = vec![1, 3, 1, 2, 1, 2, 2]; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / lazy_static! { [INFO] [stdout] 13 | | static ref A: f32 = (2.0 as f32).powf(1.0/12.0); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/music.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / lazy_static! { [INFO] [stdout] 13 | | static ref A: f32 = (2.0 as f32).powf(1.0/12.0); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/main.rs:106:70 [INFO] [stdout] | [INFO] [stdout] 106 | let device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/music.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut scale = vec![tonic]; // in G [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DECAY` [INFO] [stdout] --> src/synth.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const DECAY: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_wave` [INFO] [stdout] --> src/synth.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn gen_wave(samples_to_write: i32, frequency: f32, sample_rate: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.88s [INFO] running `Command { std: "docker" "inspect" "9f62616aa8410d6190617f59206c5e1686487d416b14a57f6ee0689c2eb42ac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f62616aa8410d6190617f59206c5e1686487d416b14a57f6ee0689c2eb42ac6", kill_on_drop: false }` [INFO] [stdout] 9f62616aa8410d6190617f59206c5e1686487d416b14a57f6ee0689c2eb42ac6