[INFO] cloning repository https://github.com/dobrakmato/rust-mod-tracker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dobrakmato/rust-mod-tracker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 524533be253804233fc261fafb8ca612ef63ce5d [INFO] building dobrakmato/rust-mod-tracker against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdobrakmato%2Frust-mod-tracker" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dobrakmato/rust-mod-tracker on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dobrakmato/rust-mod-tracker [INFO] finished tweaking git repo https://github.com/dobrakmato/rust-mod-tracker [INFO] tweaked toml for git repo https://github.com/dobrakmato/rust-mod-tracker written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dobrakmato/rust-mod-tracker 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cpal v0.9.0 [INFO] [stderr] Downloaded rand_derive v0.5.0 [INFO] [stderr] Downloaded device_query v0.1.3 [INFO] [stderr] Downloaded ghakuf v0.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fabbef79f8b55a440180d434adcbc695f5afda43575eaa7d2bfd62cec76ea154 [INFO] running `Command { std: "docker" "start" "-a" "fabbef79f8b55a440180d434adcbc695f5afda43575eaa7d2bfd62cec76ea154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fabbef79f8b55a440180d434adcbc695f5afda43575eaa7d2bfd62cec76ea154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fabbef79f8b55a440180d434adcbc695f5afda43575eaa7d2bfd62cec76ea154", kill_on_drop: false }` [INFO] [stdout] fabbef79f8b55a440180d434adcbc695f5afda43575eaa7d2bfd62cec76ea154 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e0a383c8af368ddab48111661963ff3d86d93b91be29fd06f3c0b6b175fbaae [INFO] running `Command { std: "docker" "start" "-a" "3e0a383c8af368ddab48111661963ff3d86d93b91be29fd06f3c0b6b175fbaae", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling spin v0.5.0 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling rand_chacha v0.2.0 [INFO] [stderr] Compiling x11 v2.18.1 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling device_query v0.1.3 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling ghakuf v0.5.3 [INFO] [stderr] Compiling getrandom v0.1.6 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling cpal v0.9.0 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling rand_derive v0.5.0 [INFO] [stderr] Compiling mod_tracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DeviceQuery`, `DeviceState`, and `Keycode` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use device_query::{Keycode, DeviceState, DeviceQuery}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event` and `note2freq` [INFO] [stdout] --> src/main.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::midi::{load_midi, Kind, note2freq, Player, Event, MidiPlayback}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Osc` and `Shape` [INFO] [stdout] --> src/main.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::osc::{Osc, Shape}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Preset` and `Synth` [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::synth::{Synth, Preset}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::filter::Mode` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::filter::Mode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path` [INFO] [stdout] --> src/midi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | 0...7 => GMFamily::Piano, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | 8...15 => GMFamily::ChromaticPercussion, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | 16...23 => GMFamily::Organ, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | 14...31 => GMFamily::Guitar, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | 32...39 => GMFamily::Bass, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | 40...47 => GMFamily::Strings, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | 48...55 => GMFamily::Ensemble, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | 56...63 => GMFamily::Brass, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | 64...71 => GMFamily::Reed, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | 72...79 => GMFamily::Pipe, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | 80...88 => GMFamily::SynthLead, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 88...95 => GMFamily::SynthPad, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 96...103 => GMFamily::SynthEffects, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | 104...111 => GMFamily::Ethnic, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | 112...119 => GMFamily::Percussive, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | 120...127 => GMFamily::SoundEffects, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/midi.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | self.midi.total_time += (delta_time as f64 * self.midi.tick_length); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 - self.midi.total_time += (delta_time as f64 * self.midi.tick_length); [INFO] [stdout] 192 + self.midi.total_time += delta_time as f64 * self.midi.tick_length; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decay` and `Sustain` [INFO] [stdout] --> src/synth.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::env::EnvelopeState::{Attack, Sustain, Off, Decay, Release}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated crate `rand_derive`: this crate is deprecated without replacement [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate rand_derive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `clamp` has been stable since 1.50.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(clamp)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/osc.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 37 | if self.pitch_mod < 0.0 { let freq = -modulated_freq; } [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/math.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut t = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/midi.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 57 | 80...88 => GMFamily::SynthLead, [INFO] [stdout] | ------- this range overlaps on `88_u8`... [INFO] [stdout] 58 | 88...95 => GMFamily::SynthPad, [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_type` [INFO] [stdout] --> src/midi.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | MetaEvent::Unknown { event_type } => {} /* silent */ [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `event_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/midi.rs:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => { [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 196 | MidiEvent::NoteOff { ch, note, velocity: _ } | MidiEvent::NoteOn { ch, note, velocity: _ } => { [INFO] [stdout] | ~~~~~~~~~~~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control` [INFO] [stdout] --> src/midi.rs:221:44 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `control: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/midi.rs:221:53 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:222:42 [INFO] [stdout] | [INFO] [stdout] 222 | MidiEvent::PitchBendChange { ch, data } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/midi.rs:222:46 [INFO] [stdout] | [INFO] [stdout] 222 | MidiEvent::PitchBendChange { ch, data } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:223:42 [INFO] [stdout] | [INFO] [stdout] 223 | MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */ [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pressure` [INFO] [stdout] --> src/midi.rs:223:46 [INFO] [stdout] | [INFO] [stdout] 223 | MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */ [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `pressure: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:224:48 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `note` [INFO] [stdout] --> src/midi.rs:224:52 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^^^ help: try ignoring the field: `note: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/midi.rs:224:58 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `velocity: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/midi.rs:263:21 [INFO] [stdout] | [INFO] [stdout] 263 | let mut last = x.peek(); [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: variable does not need to be mutable [INFO] [stdout] --> src/midi.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | let mut last = x.peek(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/midi.rs:304:52 [INFO] [stdout] | [INFO] [stdout] 304 | channels: vec![0; 16].into_iter().map(|x| MidiChannel::new(sample_rate)).collect(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instrument` [INFO] [stdout] --> src/midi.rs:317:51 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn set_instrument(&mut self, ch: Channel, instrument: GMInstrument) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrument` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/midi.rs:360:26 [INFO] [stdout] | [INFO] [stdout] 360 | .filter(|(i, x)| *i != 9) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/midi.rs:361:20 [INFO] [stdout] | [INFO] [stdout] 361 | .map(|(i, x)| x.next()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/synth.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let mut available = self.voices.voices.len(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/synth.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut used = self.voices.voices.iter() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut midi = load_midi(Path::new("tet.mid")); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut start = Instant::now(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sample_rate` is never used [INFO] [stdout] --> src/osc.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Osc { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sample_rate(&mut self, sample_rate: f64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sample_rate` and `channels` are never read [INFO] [stdout] --> src/sampler.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sample<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | buffer: &'a [f32], [INFO] [stdout] 8 | sample_rate: SampleRate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | channels: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sample` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sampler.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Sample<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(buffer: &'a [f32], sample_rate: SampleRate, channels: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sampler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a> Sampler<'a> { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 26 | pub fn new(sample: &'a Sample) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/math.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/math.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn gcd(mut a: usize, mut b: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `denominator`, `numerator`, and `as_float` are never used [INFO] [stdout] --> src/math.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Fraction { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(numerator: usize, denominator: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn denominator(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn numerator(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn as_float(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `family` and `program_number` are never read [INFO] [stdout] --> src/midi.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct GMInstrument { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 38 | family: GMFamily, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | program_number: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GMInstrument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `program_number` is never used [INFO] [stdout] --> src/midi.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GMInstrument { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn program_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/midi.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Track { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 128 | name: Option, [INFO] [stdout] 129 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `preset` is never read [INFO] [stdout] --> src/midi.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct MidiPlayback { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 297 | channels: Vec, [INFO] [stdout] 298 | preset: Preset, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `random_presets` is never used [INFO] [stdout] --> src/midi.rs:365:12 [INFO] [stdout] | [INFO] [stdout] 301 | impl MidiPlayback { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn random_presets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ... f.write(&u32tou8abe(i)); [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] 113 | let _ = f.write(&u32tou8abe(i)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | f.flush(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 115 | let _ = f.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.71s [INFO] running `Command { std: "docker" "inspect" "3e0a383c8af368ddab48111661963ff3d86d93b91be29fd06f3c0b6b175fbaae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e0a383c8af368ddab48111661963ff3d86d93b91be29fd06f3c0b6b175fbaae", kill_on_drop: false }` [INFO] [stdout] 3e0a383c8af368ddab48111661963ff3d86d93b91be29fd06f3c0b6b175fbaae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7c9e1ecc0b9837096fa0289474dad1ea4bee5d053d60d285788ca042e7d4953 [INFO] running `Command { std: "docker" "start" "-a" "d7c9e1ecc0b9837096fa0289474dad1ea4bee5d053d60d285788ca042e7d4953", kill_on_drop: false }` [INFO] [stderr] Compiling mod_tracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DeviceQuery`, `DeviceState`, and `Keycode` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use device_query::{Keycode, DeviceState, DeviceQuery}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event` and `note2freq` [INFO] [stdout] --> src/main.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::midi::{load_midi, Kind, note2freq, Player, Event, MidiPlayback}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Osc` and `Shape` [INFO] [stdout] --> src/main.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::osc::{Osc, Shape}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Preset` and `Synth` [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::synth::{Synth, Preset}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::filter::Mode` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::filter::Mode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path` [INFO] [stdout] --> src/midi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | 0...7 => GMFamily::Piano, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | 8...15 => GMFamily::ChromaticPercussion, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | 16...23 => GMFamily::Organ, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | 14...31 => GMFamily::Guitar, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | 32...39 => GMFamily::Bass, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | 40...47 => GMFamily::Strings, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | 48...55 => GMFamily::Ensemble, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | 56...63 => GMFamily::Brass, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | 64...71 => GMFamily::Reed, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | 72...79 => GMFamily::Pipe, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | 80...88 => GMFamily::SynthLead, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 88...95 => GMFamily::SynthPad, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 96...103 => GMFamily::SynthEffects, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | 104...111 => GMFamily::Ethnic, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | 112...119 => GMFamily::Percussive, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/midi.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | 120...127 => GMFamily::SoundEffects, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/midi.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | self.midi.total_time += (delta_time as f64 * self.midi.tick_length); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 - self.midi.total_time += (delta_time as f64 * self.midi.tick_length); [INFO] [stdout] 192 + self.midi.total_time += delta_time as f64 * self.midi.tick_length; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decay` and `Sustain` [INFO] [stdout] --> src/synth.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::env::EnvelopeState::{Attack, Sustain, Off, Decay, Release}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated crate `rand_derive`: this crate is deprecated without replacement [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate rand_derive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `clamp` has been stable since 1.50.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(clamp)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/osc.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 37 | if self.pitch_mod < 0.0 { let freq = -modulated_freq; } [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/math.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut t = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/midi.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 57 | 80...88 => GMFamily::SynthLead, [INFO] [stdout] | ------- this range overlaps on `88_u8`... [INFO] [stdout] 58 | 88...95 => GMFamily::SynthPad, [INFO] [stdout] | ^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_type` [INFO] [stdout] --> src/midi.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | MetaEvent::Unknown { event_type } => {} /* silent */ [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `event_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/midi.rs:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | MidiEvent::NoteOff { ch, note, velocity } | MidiEvent::NoteOn { ch, note, velocity: velocity @ 0 } => { [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 196 | MidiEvent::NoteOff { ch, note, velocity: _ } | MidiEvent::NoteOn { ch, note, velocity: _ } => { [INFO] [stdout] | ~~~~~~~~~~~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control` [INFO] [stdout] --> src/midi.rs:221:44 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `control: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/midi.rs:221:53 [INFO] [stdout] | [INFO] [stdout] 221 | MidiEvent::ControlChange { ch, control, data } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:222:42 [INFO] [stdout] | [INFO] [stdout] 222 | MidiEvent::PitchBendChange { ch, data } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/midi.rs:222:46 [INFO] [stdout] | [INFO] [stdout] 222 | MidiEvent::PitchBendChange { ch, data } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:223:42 [INFO] [stdout] | [INFO] [stdout] 223 | MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */ [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pressure` [INFO] [stdout] --> src/midi.rs:223:46 [INFO] [stdout] | [INFO] [stdout] 223 | MidiEvent::ChannelPressure { ch, pressure } => {} /* unsupported */ [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `pressure: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/midi.rs:224:48 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^ help: try ignoring the field: `ch: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `note` [INFO] [stdout] --> src/midi.rs:224:52 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^^^ help: try ignoring the field: `note: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/midi.rs:224:58 [INFO] [stdout] | [INFO] [stdout] 224 | MidiEvent::PolyphonicKeyPressure { ch, note, velocity } => {} /* unsupported */ [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `velocity: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/midi.rs:263:21 [INFO] [stdout] | [INFO] [stdout] 263 | let mut last = x.peek(); [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: variable does not need to be mutable [INFO] [stdout] --> src/midi.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | let mut last = x.peek(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/midi.rs:304:52 [INFO] [stdout] | [INFO] [stdout] 304 | channels: vec![0; 16].into_iter().map(|x| MidiChannel::new(sample_rate)).collect(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instrument` [INFO] [stdout] --> src/midi.rs:317:51 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn set_instrument(&mut self, ch: Channel, instrument: GMInstrument) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instrument` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/midi.rs:360:26 [INFO] [stdout] | [INFO] [stdout] 360 | .filter(|(i, x)| *i != 9) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/midi.rs:361:20 [INFO] [stdout] | [INFO] [stdout] 361 | .map(|(i, x)| x.next()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/synth.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let mut available = self.voices.voices.len(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/synth.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut used = self.voices.voices.iter() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut midi = load_midi(Path::new("tet.mid")); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut start = Instant::now(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sample_rate` is never used [INFO] [stdout] --> src/osc.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Osc { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sample_rate(&mut self, sample_rate: f64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sample_rate` and `channels` are never read [INFO] [stdout] --> src/sampler.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Sample<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | buffer: &'a [f32], [INFO] [stdout] 8 | sample_rate: SampleRate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | channels: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sample` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sampler.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Sample<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(buffer: &'a [f32], sample_rate: SampleRate, channels: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sampler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a> Sampler<'a> { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 26 | pub fn new(sample: &'a Sample) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_float` is never used [INFO] [stdout] --> src/math.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Fraction { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn as_float(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `family` and `program_number` are never read [INFO] [stdout] --> src/midi.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct GMInstrument { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 38 | family: GMFamily, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | program_number: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GMInstrument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `program_number` is never used [INFO] [stdout] --> src/midi.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GMInstrument { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn program_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/midi.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Track { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 128 | name: Option, [INFO] [stdout] 129 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `preset` is never read [INFO] [stdout] --> src/midi.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct MidiPlayback { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 297 | channels: Vec, [INFO] [stdout] 298 | preset: Preset, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `random_presets` is never used [INFO] [stdout] --> src/midi.rs:365:12 [INFO] [stdout] | [INFO] [stdout] 301 | impl MidiPlayback { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn random_presets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ... f.write(&u32tou8abe(i)); [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] 113 | let _ = f.write(&u32tou8abe(i)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | f.flush(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 115 | let _ = f.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "d7c9e1ecc0b9837096fa0289474dad1ea4bee5d053d60d285788ca042e7d4953", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7c9e1ecc0b9837096fa0289474dad1ea4bee5d053d60d285788ca042e7d4953", kill_on_drop: false }` [INFO] [stdout] d7c9e1ecc0b9837096fa0289474dad1ea4bee5d053d60d285788ca042e7d4953