[INFO] fetching crate daemon 0.0.8... [INFO] checking daemon-0.0.8 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate daemon 0.0.8 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate daemon 0.0.8 [INFO] finished tweaking crates.io crate daemon 0.0.8 [INFO] tweaked toml for crates.io crate daemon 0.0.8 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate daemon 0.0.8 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea89ed9fa6aade3fe2e924d80d35ef903c00fa888794d77ffd0ce4d94e6948ab [INFO] running `Command { std: "docker" "start" "-a" "ea89ed9fa6aade3fe2e924d80d35ef903c00fa888794d77ffd0ce4d94e6948ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea89ed9fa6aade3fe2e924d80d35ef903c00fa888794d77ffd0ce4d94e6948ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea89ed9fa6aade3fe2e924d80d35ef903c00fa888794d77ffd0ce4d94e6948ab", kill_on_drop: false }` [INFO] [stdout] ea89ed9fa6aade3fe2e924d80d35ef903c00fa888794d77ffd0ce4d94e6948ab [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78018288088a1340349f7b5899da6d6ae29bdba7d5fee0456562b10be3ac53ea [INFO] running `Command { std: "docker" "start" "-a" "78018288088a1340349f7b5899da6d6ae29bdba7d5fee0456562b10be3ac53ea", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking daemon v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/linux.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(guard_compare_and_swap(daemon_null(), &mut daemon)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/linux.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | try!(guard_compare_and_swap(&mut daemon, daemon_null())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux::*` [INFO] [stdout] --> src/lib.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use linux::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/singleton.rs:38:59 [INFO] [stdout] | [INFO] [stdout] 38 | static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/linux.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / declare_singleton!( [INFO] [stdout] 10 | | singleton, [INFO] [stdout] 11 | | DaemonHolder, [INFO] [stdout] 12 | | DaemonHolder { [INFO] [stdout] ... | [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `declare_singleton` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 38 - static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] 38 + static ONCE: ::std::sync::Once = ::std::sync::Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | holder: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | holder: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/linux.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sig` [INFO] [stdout] --> src/linux.rs:125:42 [INFO] [stdout] | [INFO] [stdout] 125 | unsafe extern "system" fn signal_handler(sig: libc::c_int) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sig` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send` and `take_tx` are never used [INFO] [stdout] --> src/linux.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 25 | trait DaemonFunc { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 26 | fn exec(&mut self) -> Result<(), Error>; [INFO] [stdout] 27 | fn send(&mut self, state: State) -> Result<(), Error>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | fn take_tx(&mut self) -> Option>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tx` is never read [INFO] [stdout] --> src/linux.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct DaemonFuncHolder)> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 32 | tx: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signal_handler` is never used [INFO] [stdout] --> src/linux.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | unsafe extern "system" fn signal_handler(sig: libc::c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raise` is never used [INFO] [stdout] --> src/linux.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | fn raise(sig: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signal` is never used [INFO] [stdout] --> src/linux.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn signal(sig: libc::c_int, handler: *const libc::c_void) -> libc::c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kill` is never used [INFO] [stdout] --> src/linux.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn kill(pid: libc::pid_t, sig: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/singleton.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn lock(&self) -> LockResult> { [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] 19 | pub fn lock(&self) -> LockResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/linux.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(guard_compare_and_swap(daemon_null(), &mut daemon)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/linux.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | try!(guard_compare_and_swap(&mut daemon, daemon_null())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux::*` [INFO] [stdout] --> src/lib.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use linux::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/singleton.rs:38:59 [INFO] [stdout] | [INFO] [stdout] 38 | static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | declare_singleton!(simple_singleton, u32, 0); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `declare_singleton` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 38 - static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] 38 + static ONCE: ::std::sync::Once = ::std::sync::Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/singleton.rs:38:59 [INFO] [stdout] | [INFO] [stdout] 38 | static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/linux.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / declare_singleton!( [INFO] [stdout] 10 | | singleton, [INFO] [stdout] 11 | | DaemonHolder, [INFO] [stdout] 12 | | DaemonHolder { [INFO] [stdout] ... | [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `declare_singleton` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 38 - static ONCE: ::std::sync::Once = ::std::sync::ONCE_INIT; [INFO] [stdout] 38 + static ONCE: ::std::sync::Once = ::std::sync::Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | holder: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | holder: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/linux.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sig` [INFO] [stdout] --> src/linux.rs:125:42 [INFO] [stdout] | [INFO] [stdout] 125 | unsafe extern "system" fn signal_handler(sig: libc::c_int) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sig` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send` and `take_tx` are never used [INFO] [stdout] --> src/linux.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 25 | trait DaemonFunc { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 26 | fn exec(&mut self) -> Result<(), Error>; [INFO] [stdout] 27 | fn send(&mut self, state: State) -> Result<(), Error>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | fn take_tx(&mut self) -> Option>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tx` is never read [INFO] [stdout] --> src/linux.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct DaemonFuncHolder)> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 32 | tx: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signal_handler` is never used [INFO] [stdout] --> src/linux.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | unsafe extern "system" fn signal_handler(sig: libc::c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raise` is never used [INFO] [stdout] --> src/linux.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | fn raise(sig: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signal` is never used [INFO] [stdout] --> src/linux.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn signal(sig: libc::c_int, handler: *const libc::c_void) -> libc::c_int; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kill` is never used [INFO] [stdout] --> src/linux.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn kill(pid: libc::pid_t, sig: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/singleton.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn lock(&self) -> LockResult> { [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] 19 | pub fn lock(&self) -> LockResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.08s [INFO] running `Command { std: "docker" "inspect" "78018288088a1340349f7b5899da6d6ae29bdba7d5fee0456562b10be3ac53ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78018288088a1340349f7b5899da6d6ae29bdba7d5fee0456562b10be3ac53ea", kill_on_drop: false }` [INFO] [stdout] 78018288088a1340349f7b5899da6d6ae29bdba7d5fee0456562b10be3ac53ea