[INFO] fetching crate linux-input 0.1.0... [INFO] building linux-input-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate linux-input 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate linux-input 0.1.0 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 crates.io crate linux-input 0.1.0 [INFO] finished tweaking crates.io crate linux-input 0.1.0 [INFO] tweaked toml for crates.io crate linux-input 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] [stderr] Adding nix v0.17.0 (available: v0.29.0) [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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 26615f48811225a25b866d0e0aa05ce608c2bd63c3a81fb2e519352b3f3e7706 [INFO] running `Command { std: "docker" "start" "-a" "26615f48811225a25b866d0e0aa05ce608c2bd63c3a81fb2e519352b3f3e7706", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26615f48811225a25b866d0e0aa05ce608c2bd63c3a81fb2e519352b3f3e7706", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26615f48811225a25b866d0e0aa05ce608c2bd63c3a81fb2e519352b3f3e7706", kill_on_drop: false }` [INFO] [stdout] 26615f48811225a25b866d0e0aa05ce608c2bd63c3a81fb2e519352b3f3e7706 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 94c83727c32d16a917a57a0d48ad129d9f704d28bcc79c05f6558d027ee99723 [INFO] running `Command { std: "docker" "start" "-a" "94c83727c32d16a917a57a0d48ad129d9f704d28bcc79c05f6558d027ee99723", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling linux-input v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/input.rs:377:5 [INFO] [stdout] | [INFO] [stdout] 377 | std::mem::drop( timeout ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^-------^^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `Option` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 377 - std::mem::drop( timeout ); [INFO] [stdout] 377 + let _ = timeout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.58s [INFO] running `Command { std: "docker" "inspect" "94c83727c32d16a917a57a0d48ad129d9f704d28bcc79c05f6558d027ee99723", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c83727c32d16a917a57a0d48ad129d9f704d28bcc79c05f6558d027ee99723", kill_on_drop: false }` [INFO] [stdout] 94c83727c32d16a917a57a0d48ad129d9f704d28bcc79c05f6558d027ee99723 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3574ca6690d6c6cb2e9f10553432c53c92cd9060aa8853e43fbdaaba9587f96f [INFO] running `Command { std: "docker" "start" "-a" "3574ca6690d6c6cb2e9f10553432c53c92cd9060aa8853e43fbdaaba9587f96f", kill_on_drop: false }` [INFO] [stderr] Compiling linux-input v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/input.rs:377:5 [INFO] [stdout] | [INFO] [stdout] 377 | std::mem::drop( timeout ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^-------^^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `Option` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 377 - std::mem::drop( timeout ); [INFO] [stdout] 377 + let _ = timeout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:66:49 [INFO] [stdout] | [INFO] [stdout] 66 | let mut iter = EventBitsIter::< u16 >::new( &[] ); [INFO] [stdout] | --------------------------- ^^^ expected `Cow<'_, [u8]>`, found `&[_; 0]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 66 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:72:49 [INFO] [stdout] | [INFO] [stdout] 72 | let mut iter = EventBitsIter::< u16 >::new( &[0] ); [INFO] [stdout] | --------------------------- ^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 1]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 72 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | let mut iter = EventBitsIter::< u16 >::new( &[0, 0, 0, 0] ); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 4]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 4]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 78 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0, 0, 0, 0]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let mut iter = EventBitsIter::< u16 >::new( &[0b0000_0001] ); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 1]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 84 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0b0000_0001]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:91:49 [INFO] [stdout] | [INFO] [stdout] 91 | let mut iter = EventBitsIter::< u16 >::new( &[0b1000_0000] ); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 1]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 91 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0b1000_0000]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 98 | let mut iter = EventBitsIter::< u16 >::new( &[0b1000_0001] ); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 1]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 1]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 98 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0b1000_0001]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event_bits_iter.rs:106:49 [INFO] [stdout] | [INFO] [stdout] 106 | let mut iter = EventBitsIter::< u16 >::new( &[0, 0b1000_0001, 0] ); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^^^^^^^^^ expected `Cow<'_, [u8]>`, found `&[{integer}; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Cow<'_, [u8]>` [INFO] [stdout] found reference `&[{integer}; 3]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/event_bits_iter.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn new( buffer: Cow< 'a, [u8] > ) -> Self { [INFO] [stdout] | ^^^ ----------------------- [INFO] [stdout] help: try wrapping the expression in `std::borrow::Cow::Borrowed` [INFO] [stdout] | [INFO] [stdout] 106 | let mut iter = EventBitsIter::< u16 >::new( std::borrow::Cow::Borrowed(&[0, 0b1000_0001, 0]) ); [INFO] [stdout] | +++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `linux-input` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "3574ca6690d6c6cb2e9f10553432c53c92cd9060aa8853e43fbdaaba9587f96f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3574ca6690d6c6cb2e9f10553432c53c92cd9060aa8853e43fbdaaba9587f96f", kill_on_drop: false }` [INFO] [stdout] 3574ca6690d6c6cb2e9f10553432c53c92cd9060aa8853e43fbdaaba9587f96f