[INFO] fetching crate launchpad 0.1.1... [INFO] checking launchpad-0.1.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate launchpad 0.1.1 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate launchpad 0.1.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate launchpad 0.1.1 [INFO] finished tweaking crates.io crate launchpad 0.1.1 [INFO] tweaked toml for crates.io crate launchpad 0.1.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages to latest compatible versions [INFO] [stderr] Adding portmidi v0.2.6 (latest: v0.3.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded portmidi v0.2.6 [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f16949d9bebe0d38e9c6bfc843ba51640e1715ead8cb5dd0ce77f2397726d13 [INFO] running `Command { std: "docker" "start" "-a" "7f16949d9bebe0d38e9c6bfc843ba51640e1715ead8cb5dd0ce77f2397726d13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f16949d9bebe0d38e9c6bfc843ba51640e1715ead8cb5dd0ce77f2397726d13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f16949d9bebe0d38e9c6bfc843ba51640e1715ead8cb5dd0ce77f2397726d13", kill_on_drop: false }` [INFO] [stdout] 7f16949d9bebe0d38e9c6bfc843ba51640e1715ead8cb5dd0ce77f2397726d13 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f92373410537668773d7473e7434722ec081780c01a6669b94ea616b120c1ade [INFO] running `Command { std: "docker" "start" "-a" "f92373410537668773d7473e7434722ec081780c01a6669b94ea616b120c1ade", kill_on_drop: false }` [INFO] [stderr] Checking portmidi v0.2.6 [INFO] [stderr] Checking launchpad v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/launchpad.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | input_port: pm::InputPort, [INFO] [stdout] | ^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 14 ~ pub struct LaunchpadMk2<'a> { [INFO] [stdout] 15 ~ input_port: pm::InputPort<'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/launchpad.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | output_port: pm::OutputPort, [INFO] [stdout] | ^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 14 ~ pub struct LaunchpadMk2<'a> { [INFO] [stdout] 15 | input_port: pm::InputPort, [INFO] [stdout] 16 ~ output_port: pm::OutputPort<'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/launchpad.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | input_port: pm::InputPort, [INFO] [stdout] | ^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 14 ~ pub struct LaunchpadMk2<'a> { [INFO] [stdout] 15 ~ input_port: pm::InputPort<'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/launchpad.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | output_port: pm::OutputPort, [INFO] [stdout] | ^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 14 ~ pub struct LaunchpadMk2<'a> { [INFO] [stdout] 15 | input_port: pm::InputPort, [INFO] [stdout] 16 ~ output_port: pm::OutputPort<'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MidiMessage: From<[u8; 3]>` is not satisfied [INFO] [stdout] --> src/launchpad.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | self.output_port.write_message([0x91, led.position, led.color]).expect("Fail"); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[u8; 3]>` is not implemented for `MidiMessage`, which is required by `[u8; 3]: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `[u8; 3]` to implement `Into` [INFO] [stdout] note: required by a bound in `OutputPort::<'a>::write_message` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/portmidi-0.2.6/src/io.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn write_message>(&mut self, midi_message: T) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `OutputPort::<'a>::write_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MidiMessage: From<[u8; 3]>` is not satisfied [INFO] [stdout] --> src/launchpad.rs:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | self.output_port.write_message([0x92, led.position, led.color]).expect("Fail"); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[u8; 3]>` is not implemented for `MidiMessage`, which is required by `[u8; 3]: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `[u8; 3]` to implement `Into` [INFO] [stdout] note: required by a bound in `OutputPort::<'a>::write_message` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/portmidi-0.2.6/src/io.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn write_message>(&mut self, midi_message: T) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `OutputPort::<'a>::write_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MidiMessage: From<[u8; 3]>` is not satisfied [INFO] [stdout] --> src/launchpad.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | self.output_port.write_message([0x91, led.position, led.color]).expect("Fail"); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[u8; 3]>` is not implemented for `MidiMessage`, which is required by `[u8; 3]: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `[u8; 3]` to implement `Into` [INFO] [stdout] note: required by a bound in `OutputPort::<'a>::write_message` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/portmidi-0.2.6/src/io.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn write_message>(&mut self, midi_message: T) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `OutputPort::<'a>::write_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MidiMessage: From<[u8; 3]>` is not satisfied [INFO] [stdout] --> src/launchpad.rs:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | self.output_port.write_message([0x92, led.position, led.color]).expect("Fail"); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[u8; 3]>` is not implemented for `MidiMessage`, which is required by `[u8; 3]: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `[u8; 3]` to implement `Into` [INFO] [stdout] note: required by a bound in `OutputPort::<'a>::write_message` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/portmidi-0.2.6/src/io.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn write_message>(&mut self, midi_message: T) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `OutputPort::<'a>::write_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> src/launchpad.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn guess_from(midi: &pm::PortMidi) -> LaunchpadMk2 { [INFO] [stdout] | ---- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `midi` is a reference that is only valid in the associated function body [INFO] [stdout] ... [INFO] [stdout] 94 | let input = midi.input_port(input_device, 1024) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `midi` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> src/launchpad.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn guess_from(midi: &pm::PortMidi) -> LaunchpadMk2 { [INFO] [stdout] | ---- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `midi` is a reference that is only valid in the associated function body [INFO] [stdout] ... [INFO] [stdout] 94 | let input = midi.input_port(input_device, 1024) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `midi` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0277, E0521. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0277, E0521. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `launchpad` (lib test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `launchpad` (lib) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "f92373410537668773d7473e7434722ec081780c01a6669b94ea616b120c1ade", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f92373410537668773d7473e7434722ec081780c01a6669b94ea616b120c1ade", kill_on_drop: false }` [INFO] [stdout] f92373410537668773d7473e7434722ec081780c01a6669b94ea616b120c1ade