[INFO] fetching crate ezhook 0.2.2... [INFO] testing ezhook-0.2.2 against master#61223975d46f794466efa832bc7562b9707ecc46+rustflags=-Copt-level=3 for pr-121282 [INFO] extracting crate ezhook 0.2.2 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate ezhook 0.2.2 on toolchain 61223975d46f794466efa832bc7562b9707ecc46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ezhook 0.2.2 [INFO] finished tweaking crates.io crate ezhook 0.2.2 [INFO] tweaked toml for crates.io crate ezhook 0.2.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lde v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02ef586dbe90a2d806dfefe8794ae183375b461f5d2c3bf359ef07f9b57cb792 [INFO] running `Command { std: "docker" "start" "-a" "02ef586dbe90a2d806dfefe8794ae183375b461f5d2c3bf359ef07f9b57cb792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02ef586dbe90a2d806dfefe8794ae183375b461f5d2c3bf359ef07f9b57cb792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02ef586dbe90a2d806dfefe8794ae183375b461f5d2c3bf359ef07f9b57cb792", kill_on_drop: false }` [INFO] [stdout] 02ef586dbe90a2d806dfefe8794ae183375b461f5d2c3bf359ef07f9b57cb792 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef613d258c8d239edde7664bae291646b71692462f604cdd8cc2edb9106f32fc [INFO] running `Command { std: "docker" "start" "-a" "ef613d258c8d239edde7664bae291646b71692462f604cdd8cc2edb9106f32fc", kill_on_drop: false }` [INFO] [stderr] Compiling ezhook v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "ef613d258c8d239edde7664bae291646b71692462f604cdd8cc2edb9106f32fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef613d258c8d239edde7664bae291646b71692462f604cdd8cc2edb9106f32fc", kill_on_drop: false }` [INFO] [stdout] ef613d258c8d239edde7664bae291646b71692462f604cdd8cc2edb9106f32fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f77b77529fc11da616bf799c6a265d51e8aa6689d1681bffea78c1b802ce477 [INFO] running `Command { std: "docker" "start" "-a" "6f77b77529fc11da616bf799c6a265d51e8aa6689d1681bffea78c1b802ce477", kill_on_drop: false }` [INFO] [stderr] Compiling ezhook v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `util` is imported redundantly [INFO] [stdout] --> src/local/swap.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 158 | use super::*; [INFO] [stdout] | -------- the item `util` is already imported here [INFO] [stdout] 159 | use crate::util; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | $crate::remote::swap::len(&__ez_hook::__ez_HOOK, __ez_hook::$name) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 123 | / remote_swap_hook! { [INFO] [stdout] 124 | | #[hook] [INFO] [stdout] 125 | | fn add_one_before(x: i32) -> i32 { [INFO] [stdout] 126 | | orig!(x + 1) [INFO] [stdout] 127 | | } [INFO] [stdout] 128 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 98 | $crate::remote::swap::len(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:104:47 [INFO] [stdout] | [INFO] [stdout] 104 | $crate::remote::swap::copy_to(&__ez_hook::__ez_HOOK, __ez_hook::$name, dest) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 123 | / remote_swap_hook! { [INFO] [stdout] 124 | | #[hook] [INFO] [stdout] 125 | | fn add_one_before(x: i32) -> i32 { [INFO] [stdout] 126 | | orig!(x + 1) [INFO] [stdout] 127 | | } [INFO] [stdout] 128 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 104 | $crate::remote::swap::copy_to(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name, dest) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:98:43 [INFO] [stdout] | [INFO] [stdout] 98 | $crate::remote::swap::len(&__ez_hook::__ez_HOOK, __ez_hook::$name) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 130 | / remote_swap_hook! { [INFO] [stdout] 131 | | #[hook] [INFO] [stdout] 132 | | fn delayed(x: i32) -> i32 { [INFO] [stdout] 133 | | update_last(orig!(x)) [INFO] [stdout] ... | [INFO] [stdout] 142 | | static mut LAST: i32 = 0; [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 98 | $crate::remote::swap::len(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:104:47 [INFO] [stdout] | [INFO] [stdout] 104 | $crate::remote::swap::copy_to(&__ez_hook::__ez_HOOK, __ez_hook::$name, dest) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 130 | / remote_swap_hook! { [INFO] [stdout] 131 | | #[hook] [INFO] [stdout] 132 | | fn delayed(x: i32) -> i32 { [INFO] [stdout] 133 | | update_last(orig!(x)) [INFO] [stdout] ... | [INFO] [stdout] 142 | | static mut LAST: i32 = 0; [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 104 | $crate::remote::swap::copy_to(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name, dest) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "6f77b77529fc11da616bf799c6a265d51e8aa6689d1681bffea78c1b802ce477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f77b77529fc11da616bf799c6a265d51e8aa6689d1681bffea78c1b802ce477", kill_on_drop: false }` [INFO] [stdout] 6f77b77529fc11da616bf799c6a265d51e8aa6689d1681bffea78c1b802ce477 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 941e43a99c841112ef62eb1db5a748c1c2c30d17408cd32b837387ec47ff26fa [INFO] running `Command { std: "docker" "start" "-a" "941e43a99c841112ef62eb1db5a748c1c2c30d17408cd32b837387ec47ff26fa", kill_on_drop: false }` [INFO] [stderr] warning: the item `util` is imported redundantly [INFO] [stderr] --> src/local/swap.rs:159:9 [INFO] [stderr] | [INFO] [stderr] 158 | use super::*; [INFO] [stderr] | -------- the item `util` is already imported here [INFO] [stderr] 159 | use crate::util; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:98:43 [INFO] [stderr] | [INFO] [stderr] 98 | $crate::remote::swap::len(&__ez_hook::__ez_HOOK, __ez_hook::$name) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 123 | / remote_swap_hook! { [INFO] [stderr] 124 | | #[hook] [INFO] [stderr] 125 | | fn add_one_before(x: i32) -> i32 { [INFO] [stderr] 126 | | orig!(x + 1) [INFO] [stderr] 127 | | } [INFO] [stderr] 128 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 98 | $crate::remote::swap::len(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name) [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:104:47 [INFO] [stderr] | [INFO] [stderr] 104 | $crate::remote::swap::copy_to(&__ez_hook::__ez_HOOK, __ez_hook::$name, dest) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 123 | / remote_swap_hook! { [INFO] [stderr] 124 | | #[hook] [INFO] [stderr] 125 | | fn add_one_before(x: i32) -> i32 { [INFO] [stderr] 126 | | orig!(x + 1) [INFO] [stderr] 127 | | } [INFO] [stderr] 128 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 104 | $crate::remote::swap::copy_to(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name, dest) [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:98:43 [INFO] [stderr] | [INFO] [stderr] 98 | $crate::remote::swap::len(&__ez_hook::__ez_HOOK, __ez_hook::$name) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 130 | / remote_swap_hook! { [INFO] [stderr] 131 | | #[hook] [INFO] [stderr] 132 | | fn delayed(x: i32) -> i32 { [INFO] [stderr] 133 | | update_last(orig!(x)) [INFO] [stderr] ... | [INFO] [stderr] 142 | | static mut LAST: i32 = 0; [INFO] [stderr] 143 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 98 | $crate::remote::swap::len(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name) [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:104:47 [INFO] [stderr] | [INFO] [stderr] 104 | $crate::remote::swap::copy_to(&__ez_hook::__ez_HOOK, __ez_hook::$name, dest) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 130 | / remote_swap_hook! { [INFO] [stderr] 131 | | #[hook] [INFO] [stderr] 132 | | fn delayed(x: i32) -> i32 { [INFO] [stderr] 133 | | update_last(orig!(x)) [INFO] [stderr] ... | [INFO] [stderr] 142 | | static mut LAST: i32 = 0; [INFO] [stderr] 143 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] = note: this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 104 | $crate::remote::swap::copy_to(addr_of!(__ez_hook::__ez_HOOK), __ez_hook::$name, dest) [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: `ezhook` (lib test) generated 5 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ezhook-a83c17fbe28c9547) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test remote::swap::tests::hook_macro ... ok [INFO] [stdout] test local::swap::tests::hook_multiple ... ok [INFO] [stdout] test local::swap::tests::hook ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_multiple ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_state ... ok [INFO] [stdout] test local::swap::tests::hook_macro ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- local::swap::tests::hook_macro stdout ---- [INFO] [stdout] thread 'local::swap::tests::hook_macro' panicked at src/local/swap.rs:28:57: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: TryFromIntError(()) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5578923b4c76 - std::backtrace_rs::backtrace::libunwind::trace::h68e08e31a5edd928 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stdout] 1: 0x5578923b4c76 - std::backtrace_rs::backtrace::trace_unsynchronized::hc8e4d3186f828cab [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5578923b4c76 - std::sys_common::backtrace::_print_fmt::hdcdca1c0665ccefc [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x5578923b4c76 - ::fmt::h752651e67cc277a4 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x5578923dc59c - core::fmt::rt::Argument::fmt::h4e7c3e22f7386287 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/fmt/rt.rs:142:9 [INFO] [stdout] 5: 0x5578923dc59c - core::fmt::write::hd44b1d45ba162e21 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/fmt/mod.rs:1120:17 [INFO] [stdout] 6: 0x5578923b252f - std::io::Write::write_fmt::hdb67a49a0754f939 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/io/mod.rs:1846:15 [INFO] [stdout] 7: 0x5578923b4a24 - std::sys_common::backtrace::_print::hbca331de1381491f [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x5578923b4a24 - std::sys_common::backtrace::print::hade58077d78c625d [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x5578923b671b - std::panicking::default_hook::{{closure}}::hc9f80a2cdc6be4c4 [INFO] [stdout] 10: 0x5578923b63ed - std::panicking::default_hook::h1fc68886dc215416 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:289:9 [INFO] [stdout] 11: 0x557892386337 - as core::ops::function::Fn>::call::ha16821620acc0367 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/alloc/src/boxed.rs:2030:9 [INFO] [stdout] 12: 0x557892386337 - test::test_main::{{closure}}::h1a3ed7cd910c2945 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x5578923b6d50 - as core::ops::function::Fn>::call::he260753ff79c0e70 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/alloc/src/boxed.rs:2030:9 [INFO] [stdout] 14: 0x5578923b6d50 - std::panicking::rust_panic_with_hook::heff73da0ddd67492 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:786:13 [INFO] [stdout] 15: 0x5578923b6a92 - std::panicking::begin_panic_handler::{{closure}}::h141137f9c7de1e02 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:660:13 [INFO] [stdout] 16: 0x5578923b5156 - std::sys_common::backtrace::__rust_end_short_backtrace::hbde4e66d30db627d [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x5578923b67c4 - rust_begin_unwind [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:648:5 [INFO] [stdout] 18: 0x55789234ea35 - core::panicking::panic_fmt::h92fcc83e4972ca9b [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x55789234eee3 - core::result::unwrap_failed::h788f2905cd2dc947 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/result.rs:1653:5 [INFO] [stdout] 20: 0x55789235050b - core::result::Result::unwrap::hda9168480d3287a0 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/result.rs:1077:23 [INFO] [stdout] 21: 0x55789235050b - ezhook::local::swap::Hook::hook::h821fde31e53ce474 [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:28:22 [INFO] [stdout] 22: 0x55789235050b - ezhook::local::swap::tests::add_one_before::hook::hd195e00381e3aa7c [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:132:17 [INFO] [stdout] 23: 0x55789235050b - ezhook::local::swap::tests::hook_macro::hc6ee33ce46df1982 [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:217:22 [INFO] [stdout] 24: 0x557892352619 - ezhook::local::swap::tests::hook_macro::{{closure}}::h9c2584843c0a089c [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:213:20 [INFO] [stdout] 25: 0x557892352619 - core::ops::function::FnOnce::call_once::hbee4a667849278c8 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x55789238ba9f - core::ops::function::FnOnce::call_once::hb5d425830acba2e8 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 27: 0x55789238ba9f - test::__rust_begin_short_backtrace::h8054e86d0f5ccc86 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:620:18 [INFO] [stdout] 28: 0x55789238a6b0 - test::run_test_in_process::{{closure}}::h85d13cb166c10721 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:643:60 [INFO] [stdout] 29: 0x55789238a6b0 - as core::ops::function::FnOnce<()>>::call_once::hc3dc86b8d5205a04 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x55789238a6b0 - std::panicking::try::do_call::hc17666b06748adad [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:555:40 [INFO] [stdout] 31: 0x55789238a6b0 - std::panicking::try::h1e9fba0c97684d1d [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:519:19 [INFO] [stdout] 32: 0x55789238a6b0 - std::panic::catch_unwind::h8328c2da9899627c [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panic.rs:142:14 [INFO] [stdout] 33: 0x55789238a6b0 - test::run_test_in_process::hf19a99f254958c9c [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:643:27 [INFO] [stdout] 34: 0x55789238a6b0 - test::run_test::{{closure}}::hba6ab6b94e515411 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:566:43 [INFO] [stdout] 35: 0x5578923529f3 - test::run_test::{{closure}}::h6ac7c2253cb9cc0f [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/test/src/lib.rs:594:41 [INFO] [stdout] 36: 0x5578923529f3 - std::sys_common::backtrace::__rust_begin_short_backtrace::hb4fbc53b7e758a6f [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 37: 0x55789235771f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha24970823708ac98 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/thread/mod.rs:528:17 [INFO] [stdout] 38: 0x55789235771f - as core::ops::function::FnOnce<()>>::call_once::h16db0733eff2a03c [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x55789235771f - std::panicking::try::do_call::hc2890dbc9a490eee [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:555:40 [INFO] [stdout] 40: 0x55789235771f - std::panicking::try::ha67ad75b01f98422 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panicking.rs:519:19 [INFO] [stdout] 41: 0x55789235771f - std::panic::catch_unwind::h26725df9ddb3fcd2 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/panic.rs:142:14 [INFO] [stdout] 42: 0x55789235771f - std::thread::Builder::spawn_unchecked_::{{closure}}::hf0e59407b0ff3ed8 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/thread/mod.rs:527:30 [INFO] [stdout] 43: 0x55789235771f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd4eb105f82d3bb8e [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x5578923bafe5 - as core::ops::function::FnOnce>::call_once::h28564f61ef15890d [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/alloc/src/boxed.rs:2016:9 [INFO] [stdout] 45: 0x5578923bafe5 - as core::ops::function::FnOnce>::call_once::h03728738d990d027 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/alloc/src/boxed.rs:2016:9 [INFO] [stdout] 46: 0x5578923bafe5 - std::sys::pal::unix::thread::Thread::new::thread_start::heb455c9485795637 [INFO] [stdout] at /rustc/61223975d46f794466efa832bc7562b9707ecc46/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 47: 0x7fca662cbac3 - [INFO] [stdout] 48: 0x7fca6635cbf4 - __clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] local::swap::tests::hook_macro [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "941e43a99c841112ef62eb1db5a748c1c2c30d17408cd32b837387ec47ff26fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "941e43a99c841112ef62eb1db5a748c1c2c30d17408cd32b837387ec47ff26fa", kill_on_drop: false }` [INFO] [stdout] 941e43a99c841112ef62eb1db5a748c1c2c30d17408cd32b837387ec47ff26fa