[INFO] cloning repository https://github.com/lzqlzzq/midiparser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lzqlzzq/midiparser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flzqlzzq%2Fmidiparser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flzqlzzq%2Fmidiparser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 01c9cbde3f56bf24ccc50551ad7a7f4a4915edb0 [INFO] checking lzqlzzq/midiparser against try#69cf48176da7795067be67cef76e41a8aac9b134 for pr-146013-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flzqlzzq%2Fmidiparser" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lzqlzzq/midiparser [INFO] finished tweaking git repo https://github.com/lzqlzzq/midiparser [INFO] tweaked toml for git repo https://github.com/lzqlzzq/midiparser written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lzqlzzq/midiparser on toolchain 69cf48176da7795067be67cef76e41a8aac9b134 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lzqlzzq/midiparser 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" "+69cf48176da7795067be67cef76e41a8aac9b134" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91b6efb39c9fe7f1bbda92e1cc75e98a5bf2b91976e908013f26164815a819ed [INFO] running `Command { std: "docker" "start" "-a" "91b6efb39c9fe7f1bbda92e1cc75e98a5bf2b91976e908013f26164815a819ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91b6efb39c9fe7f1bbda92e1cc75e98a5bf2b91976e908013f26164815a819ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91b6efb39c9fe7f1bbda92e1cc75e98a5bf2b91976e908013f26164815a819ed", kill_on_drop: false }` [INFO] [stdout] 91b6efb39c9fe7f1bbda92e1cc75e98a5bf2b91976e908013f26164815a819ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c86051f084d4f41a702e9d1bdb355ae1330d2ebf03826aa5be541aedebc5fa2 [INFO] running `Command { std: "docker" "start" "-a" "9c86051f084d4f41a702e9d1bdb355ae1330d2ebf03826aa5be541aedebc5fa2", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking unsafe-libyaml v0.2.9 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling pyo3-build-config v0.18.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling pyo3-ffi v0.18.3 [INFO] [stderr] Compiling pyo3 v0.18.3 [INFO] [stderr] Checking serde_yaml v0.9.25 [INFO] [stderr] Compiling pyo3-macros-backend v0.18.3 [INFO] [stderr] Compiling pyo3-macros v0.18.3 [INFO] [stderr] Checking midiparse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:276:43 [INFO] [stdout] | [INFO] [stdout] 276 | let mut next_timesig_time = if(self.time_signatures.len() > 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 276 - let mut next_timesig_time = if(self.time_signatures.len() > 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] 276 + let mut next_timesig_time = if self.time_signatures.len() > 1 {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | if(note.start >= next_timesig_time) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(note.start >= next_timesig_time) { [INFO] [stdout] 280 + if note.start >= next_timesig_time { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:283:43 [INFO] [stdout] | [INFO] [stdout] 283 | ... next_timesig_time = if(this_timesig_idx < self.time_signatures.len() - 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 283 - next_timesig_time = if(this_timesig_idx < self.time_signatures.len() - 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] 283 + next_timesig_time = if this_timesig_idx < self.time_signatures.len() - 1 {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/sequence.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MetaStatus` [INFO] [stdout] --> src/io.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::message::{MIDIFormat, EventStatus, MIDIMessage, MetaStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:276:43 [INFO] [stdout] | [INFO] [stdout] 276 | let mut next_timesig_time = if(self.time_signatures.len() > 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 276 - let mut next_timesig_time = if(self.time_signatures.len() > 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] 276 + let mut next_timesig_time = if self.time_signatures.len() > 1 {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | if(note.start >= next_timesig_time) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(note.start >= next_timesig_time) { [INFO] [stdout] 280 + if note.start >= next_timesig_time { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/sequence.rs:283:43 [INFO] [stdout] | [INFO] [stdout] 283 | ... next_timesig_time = if(this_timesig_idx < self.time_signatures.len() - 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 283 - next_timesig_time = if(this_timesig_idx < self.time_signatures.len() - 1) {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] 283 + next_timesig_time = if this_timesig_idx < self.time_signatures.len() - 1 {self.time_signatures[1].time} else {f32::MAX}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | for mut track in self.tracks.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control_number` [INFO] [stdout] --> src/sequence.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 317 | for (control_number, control_change) in self.controls.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | for mut track in self.tracks.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control_number` [INFO] [stdout] --> src/sequence.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 317 | for (control_number, control_change) in self.controls.iter_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `track_idx` is never read [INFO] [stdout] --> src/io.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MidiTrack { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 15 | track_idx: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MidiTrack` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/io.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn iter(&self) -> MidiTrackIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | pub fn iter(&self) -> MidiTrackIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `track_idx` is never read [INFO] [stdout] --> src/io.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MidiTrack { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 15 | track_idx: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MidiTrack` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/io.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn iter(&self) -> MidiTrackIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | pub fn iter(&self) -> MidiTrackIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.10s [INFO] running `Command { std: "docker" "inspect" "9c86051f084d4f41a702e9d1bdb355ae1330d2ebf03826aa5be541aedebc5fa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c86051f084d4f41a702e9d1bdb355ae1330d2ebf03826aa5be541aedebc5fa2", kill_on_drop: false }` [INFO] [stdout] 9c86051f084d4f41a702e9d1bdb355ae1330d2ebf03826aa5be541aedebc5fa2