[INFO] cloning repository https://github.com/Knapptr/sightread [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Knapptr/sightread" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKnapptr%2Fsightread", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKnapptr%2Fsightread'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 392e3741eca65dda614ccb84319edc1bc999dde2 [INFO] building Knapptr/sightread 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%2FKnapptr%2Fsightread" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Knapptr/sightread 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/Knapptr/sightread [INFO] finished tweaking git repo https://github.com/Knapptr/sightread [INFO] tweaked toml for git repo https://github.com/Knapptr/sightread written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Knapptr/sightread 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 97c3a370286602d8eea8d7d34240477006c05d5ff80f11ce415017de6dc092c3 [INFO] running `Command { std: "docker" "start" "-a" "97c3a370286602d8eea8d7d34240477006c05d5ff80f11ce415017de6dc092c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97c3a370286602d8eea8d7d34240477006c05d5ff80f11ce415017de6dc092c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97c3a370286602d8eea8d7d34240477006c05d5ff80f11ce415017de6dc092c3", kill_on_drop: false }` [INFO] [stdout] 97c3a370286602d8eea8d7d34240477006c05d5ff80f11ce415017de6dc092c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 3fc0fb06192496c11ff916b579317140b039f64071772d2176c9f1c971ebac26 [INFO] running `Command { std: "docker" "start" "-a" "3fc0fb06192496c11ff916b579317140b039f64071772d2176c9f1c971ebac26", kill_on_drop: false }` [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling midi_parse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tuple` [INFO] [stdout] --> src/message.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | sequence::{pair, tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/message.rs:126:71 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn parse_message_event<'a>(input: &'a [u8], time: u32) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/message.rs:126:78 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn parse_message_event<'a>(input: &'a [u8], time: u32) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::variable_length_7` [INFO] [stdout] --> src/meta.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{bytes::variable_length_7, take_with_tag_len, MidiEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/meta.rs:82:75 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn parse_meta_event<'a>(time: u32) -> impl FnMut(&'a [u8]) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/meta.rs:82:82 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn parse_meta_event<'a>(time: u32) -> impl FnMut(&'a [u8]) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/track.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_track<'a>(input: &'a [u8]) -> IResult<&'a [u8], Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Tuple`, `bits`, `branch::alt`, `pair`, and `tuple` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | bits, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | branch::alt, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | sequence::{pair, tuple, Tuple}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::meta::MetaEvent` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::meta::MetaEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/meta.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let (remainder, tag) = tag([0xff])(input)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/header.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | let (remainder, (length, format_type, tracks, division)) = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/meta.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let (remainder, num) = take(1usize)(remainder)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `track` [INFO] [stdout] --> src/main.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | let (mut remainder, track) = track::parse_track(remainder).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_track` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `format_type`, `tracks`, and `division` are never read [INFO] [stdout] --> src/header.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | format_type: Format, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | tracks: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | division: DivFormat, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/header.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | PPQ(usize), [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DivFormat` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | PPQ(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NegSMPTE` is never constructed [INFO] [stdout] --> src/header.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum DivFormat { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 28 | PPQ(usize), [INFO] [stdout] 29 | NegSMPTE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DivFormat` 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: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | NoteOn(u8, u8), [INFO] [stdout] | ------ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 21 | NoteOn((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | NoteOff(u8, u8), [INFO] [stdout] | ------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | NoteOff((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | ControlChange(u8, u8), [INFO] [stdout] | ------------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | ControlChange((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | ProgramChange(u8), [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | ProgramChange(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | PolyAftertouch(u8, u8), [INFO] [stdout] | -------------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 25 | PolyAftertouch((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | MonoAftertouch(u8), [INFO] [stdout] | -------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | MonoAftertouch(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | PitchBend(u8, u8), [INFO] [stdout] | --------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 28 | PitchBend((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/message.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum VoiceMessage { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let (remainder, _) = tag(spec.clone())(input)?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "3fc0fb06192496c11ff916b579317140b039f64071772d2176c9f1c971ebac26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fc0fb06192496c11ff916b579317140b039f64071772d2176c9f1c971ebac26", kill_on_drop: false }` [INFO] [stdout] 3fc0fb06192496c11ff916b579317140b039f64071772d2176c9f1c971ebac26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1b2c5f2488eea29020e80b053268ed4ec5d085e0f03309f250a72c863dc82c4a [INFO] running `Command { std: "docker" "start" "-a" "1b2c5f2488eea29020e80b053268ed4ec5d085e0f03309f250a72c863dc82c4a", kill_on_drop: false }` [INFO] [stderr] Compiling midi_parse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tuple` [INFO] [stdout] --> src/message.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | sequence::{pair, tuple}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/message.rs:126:71 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn parse_message_event<'a>(input: &'a [u8], time: u32) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/message.rs:126:78 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn parse_message_event<'a>(input: &'a [u8], time: u32) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::variable_length_7` [INFO] [stdout] --> src/meta.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{bytes::variable_length_7, take_with_tag_len, MidiEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/meta.rs:82:75 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn parse_meta_event<'a>(time: u32) -> impl FnMut(&'a [u8]) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/meta.rs:82:82 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn parse_meta_event<'a>(time: u32) -> impl FnMut(&'a [u8]) -> IResult<&[u8], MidiEvent> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/track.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_track<'a>(input: &'a [u8]) -> IResult<&'a [u8], Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Tuple`, `bits`, `branch::alt`, `pair`, and `tuple` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | bits, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | branch::alt, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | sequence::{pair, tuple, Tuple}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::meta::MetaEvent` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::meta::MetaEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/meta.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let (remainder, tag) = tag([0xff])(input)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/header.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | let (remainder, (length, format_type, tracks, division)) = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/meta.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let (remainder, num) = take(1usize)(remainder)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `track` [INFO] [stdout] --> src/main.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | let (mut remainder, track) = track::parse_track(remainder).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_track` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `format_type`, `tracks`, and `division` are never read [INFO] [stdout] --> src/header.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | format_type: Format, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | tracks: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | division: DivFormat, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/header.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | PPQ(usize), [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DivFormat` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | PPQ(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NegSMPTE` is never constructed [INFO] [stdout] --> src/header.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum DivFormat { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 28 | PPQ(usize), [INFO] [stdout] 29 | NegSMPTE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DivFormat` 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: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | ControlChange(u8, u8), [INFO] [stdout] | ------------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | ControlChange((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | ProgramChange(u8), [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | ProgramChange(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | PolyAftertouch(u8, u8), [INFO] [stdout] | -------------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 25 | PolyAftertouch((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/message.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | MonoAftertouch(u8), [INFO] [stdout] | -------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | MonoAftertouch(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/message.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | PitchBend(u8, u8), [INFO] [stdout] | --------- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 28 | PitchBend((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/message.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum VoiceMessage { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VoiceMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let (remainder, _) = tag(spec.clone())(input)?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "1b2c5f2488eea29020e80b053268ed4ec5d085e0f03309f250a72c863dc82c4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b2c5f2488eea29020e80b053268ed4ec5d085e0f03309f250a72c863dc82c4a", kill_on_drop: false }` [INFO] [stdout] 1b2c5f2488eea29020e80b053268ed4ec5d085e0f03309f250a72c863dc82c4a