[INFO] cloning repository https://github.com/Ocrap7/synth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ocrap7/synth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOcrap7%2Fsynth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOcrap7%2Fsynth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a3e230ec1d30704830326496873edc0b0ba3ccac [INFO] checking Ocrap7/synth/a3e230ec1d30704830326496873edc0b0ba3ccac against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOcrap7%2Fsynth" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ocrap7/synth on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ocrap7/synth [INFO] finished tweaking git repo https://github.com/Ocrap7/synth [INFO] tweaked toml for git repo https://github.com/Ocrap7/synth written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Ocrap7/synth 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded midir v0.7.0 [INFO] [stderr] Downloaded coremidi v0.4.0 [INFO] [stderr] Downloaded coremidi-sys v2.0.2 [INFO] [stderr] Downloaded alsa v0.4.3 [INFO] [stderr] Downloaded rsor v0.1.3 [INFO] [stderr] Downloaded audio-core v0.2.0-alpha.3 [INFO] [stderr] Downloaded ndk-context v0.1.0 [INFO] [stderr] Downloaded audio v0.2.0-alpha.3 [INFO] [stderr] Downloaded proc-macro-crate v1.1.2 [INFO] [stderr] Downloaded combine v4.6.3 [INFO] [stderr] Downloaded oboe v0.4.5 [INFO] [stderr] Downloaded rustfft v6.0.1 [INFO] [stderr] Downloaded numeric-array v0.5.2 [INFO] [stderr] Downloaded primal-check v0.3.1 [INFO] [stderr] Downloaded fundsp v0.3.1 [INFO] [stderr] Downloaded transpose v0.2.1 [INFO] [stderr] Downloaded midi-control v0.2.0 [INFO] [stderr] Downloaded clang-sys v1.0.1 [INFO] [stderr] Downloaded coreaudio-sys v0.2.9 [INFO] [stderr] Downloaded ndk-glue v0.6.1 [INFO] [stderr] Downloaded strength_reduce v0.2.3 [INFO] [stderr] Downloaded core-foundation v0.2.3 [INFO] [stderr] Downloaded core-foundation-sys v0.2.3 [INFO] [stderr] Downloaded memalloc v0.1.0 [INFO] [stderr] Downloaded modulator v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96ac93b318413006ea6017fd3e2c8d184acf57bcf92ede337d4fb04b38ca3083 [INFO] running `Command { std: "docker" "start" "-a" "96ac93b318413006ea6017fd3e2c8d184acf57bcf92ede337d4fb04b38ca3083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96ac93b318413006ea6017fd3e2c8d184acf57bcf92ede337d4fb04b38ca3083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96ac93b318413006ea6017fd3e2c8d184acf57bcf92ede337d4fb04b38ca3083", kill_on_drop: false }` [INFO] [stdout] 96ac93b318413006ea6017fd3e2c8d184acf57bcf92ede337d4fb04b38ca3083 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89fab4ad04995d6270823db1504d910eccb4bb306983c64a81178729a95532f8 [INFO] running `Command { std: "docker" "start" "-a" "89fab4ad04995d6270823db1504d910eccb4bb306983c64a81178729a95532f8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Checking strength_reduce v0.2.3 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling cpal v0.13.5 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking memalloc v0.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking audio-core v0.2.0-alpha.3 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking rsor v0.1.3 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking audio v0.2.0-alpha.3 [INFO] [stderr] Checking primal-check v0.3.1 [INFO] [stderr] Checking transpose v0.2.1 [INFO] [stderr] Checking rustfft v6.0.1 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking numeric-array v0.5.2 [INFO] [stderr] Checking modulator v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking alsa v0.4.3 [INFO] [stderr] Checking alsa v0.6.0 [INFO] [stderr] Checking midir v0.7.0 [INFO] [stderr] Checking midi-control v0.2.0 [INFO] [stderr] Checking fundsp v0.3.1 [INFO] [stderr] Checking synth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fs::OpenOptions` [INFO] [stdout] --> src/oscillator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fs::OpenOptions, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Newtonian`, `ScalarGoalFollower`, `ScalarSpring`, `ShiftRegisterInterp`, `ShiftRegister`, and `Wave` [INFO] [stdout] --> src/oscillator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Newtonian, ScalarGoalFollower, ScalarSpring, ShiftRegister, ShiftRegisterInterp, Wave, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ModulatorEnv` and `Modulator` [INFO] [stdout] --> src/oscillator.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use modulator::{Modulator, ModulatorEnv}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SampleFormat` and `StreamTrait` [INFO] [stdout] --> src/oscillator.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | traits::{DeviceTrait, StreamTrait}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | Sample, SampleFormat, Stream, StreamConfig, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamTrait` [INFO] [stdout] --> src/synth.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | traits::{DeviceTrait, StreamTrait}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `type_name_of_val` has been stable since 1.76.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(type_name_of_val)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::OpenOptions` [INFO] [stdout] --> src/oscillator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fs::OpenOptions, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Newtonian`, `ScalarGoalFollower`, `ScalarSpring`, `ShiftRegisterInterp`, `ShiftRegister`, and `Wave` [INFO] [stdout] --> src/oscillator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Newtonian, ScalarGoalFollower, ScalarSpring, ShiftRegister, ShiftRegisterInterp, Wave, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ModulatorEnv` and `Modulator` [INFO] [stdout] --> src/oscillator.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use modulator::{Modulator, ModulatorEnv}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SampleFormat` and `StreamTrait` [INFO] [stdout] --> src/oscillator.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | traits::{DeviceTrait, StreamTrait}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | Sample, SampleFormat, Stream, StreamConfig, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamTrait` [INFO] [stdout] --> src/synth.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | traits::{DeviceTrait, StreamTrait}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `type_name_of_val` has been stable since 1.76.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(type_name_of_val)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | loop {} [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 126 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | loop {} [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 216 | [INFO] [stdout] 217 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `midir::MidiIO` [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | use midir::MidiIO; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/oscillator.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | _ => 0.0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/oscillator.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 118 | OscillatorShape::Sine => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 127 | OscillatorShape::Sawtooth => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 145 | OscillatorShape::Triangle => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 154 | OscillatorShape::Square => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 162 | _ => 0.0, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/synth.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | MidiMessage::NoteOn(c, k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/synth.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | MidiMessage::NoteOff(c, k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | loop {} [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 126 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | loop {} [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 216 | [INFO] [stdout] 217 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `midir::MidiIO` [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | use midir::MidiIO; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channels` [INFO] [stdout] --> src/main.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | let channels = config.channels as usize; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_data` is never used [INFO] [stdout] --> src/main.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn write_data(output: &mut [T], channels: usize, next_sample: &mut dyn FnMut() -> (f64, f64)) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sine`, `Triangle`, `Sawtooth`, and `Square` are never constructed [INFO] [stdout] --> src/oscillator.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum OscillatorShape { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 22 | Sine, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Sawtooth, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `time` are never read [INFO] [stdout] --> src/oscillator.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Oscillator { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | offset: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | time: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `output`, `use_freq_mod`, and `set_volume` are never used [INFO] [stdout] --> src/oscillator.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Oscillator { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 43 | pub fn new(config: StreamConfig, shape: OscillatorShape, frequency: f32) -> Oscillator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn output(ss: Arc>>, device: &cpal::Device) -> Stream [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn use_freq_mod(&mut self, osc: Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_volume(&mut self, volume: f32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_data` is never used [INFO] [stdout] --> src/oscillator.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn write_data(output: &mut [T], channels: usize, sw: Arc>>) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sample_rate` is never read [INFO] [stdout] --> src/synth.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Synth<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | sample_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/oscillator.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | _ => 0.0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/oscillator.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 118 | OscillatorShape::Sine => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 127 | OscillatorShape::Sawtooth => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 145 | OscillatorShape::Triangle => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 154 | OscillatorShape::Square => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 162 | _ => 0.0, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sample_rate` is never read [INFO] [stdout] --> src/synth.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Voice<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 137 | sample_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | sender.send(message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 170 | let _ = sender.send(message); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/synth.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | MidiMessage::NoteOn(c, k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/synth.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | MidiMessage::NoteOff(c, k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channels` [INFO] [stdout] --> src/main.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | let channels = config.channels as usize; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_data` is never used [INFO] [stdout] --> src/main.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn write_data(output: &mut [T], channels: usize, next_sample: &mut dyn FnMut() -> (f64, f64)) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sine`, `Triangle`, `Sawtooth`, and `Square` are never constructed [INFO] [stdout] --> src/oscillator.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum OscillatorShape { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 22 | Sine, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Sawtooth, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `time` are never read [INFO] [stdout] --> src/oscillator.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Oscillator { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | offset: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | time: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `output`, `use_freq_mod`, and `set_volume` are never used [INFO] [stdout] --> src/oscillator.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Oscillator { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 43 | pub fn new(config: StreamConfig, shape: OscillatorShape, frequency: f32) -> Oscillator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn output(ss: Arc>>, device: &cpal::Device) -> Stream [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn use_freq_mod(&mut self, osc: Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_volume(&mut self, volume: f32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_data` is never used [INFO] [stdout] --> src/oscillator.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn write_data(output: &mut [T], channels: usize, sw: Arc>>) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sample_rate` is never read [INFO] [stdout] --> src/synth.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Synth<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | sample_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sample_rate` is never read [INFO] [stdout] --> src/synth.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Voice<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 137 | sample_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | sender.send(message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 170 | let _ = sender.send(message); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.06s [INFO] running `Command { std: "docker" "inspect" "89fab4ad04995d6270823db1504d910eccb4bb306983c64a81178729a95532f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89fab4ad04995d6270823db1504d910eccb4bb306983c64a81178729a95532f8", kill_on_drop: false }` [INFO] [stdout] 89fab4ad04995d6270823db1504d910eccb4bb306983c64a81178729a95532f8