[INFO] fetching crate ezhook 0.2.2... [INFO] testing ezhook-0.2.2 against master#9e297bf54d31eb3b30067208ff9af4416945a2ed for pr-125507 [INFO] extracting crate ezhook 0.2.2 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate ezhook 0.2.2 on toolchain 9e297bf54d31eb3b30067208ff9af4416945a2ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "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-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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-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" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53a40f1e68914e8d72982461b37a60caa320ef8b3ba387eb6ae8e0f514ca719e [INFO] running `Command { std: "docker" "start" "-a" "53a40f1e68914e8d72982461b37a60caa320ef8b3ba387eb6ae8e0f514ca719e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53a40f1e68914e8d72982461b37a60caa320ef8b3ba387eb6ae8e0f514ca719e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53a40f1e68914e8d72982461b37a60caa320ef8b3ba387eb6ae8e0f514ca719e", kill_on_drop: false }` [INFO] [stdout] 53a40f1e68914e8d72982461b37a60caa320ef8b3ba387eb6ae8e0f514ca719e [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7457ae480eb547f47a0563631fc09113955eff69e763029f9d598ab07c4e32f [INFO] running `Command { std: "docker" "start" "-a" "b7457ae480eb547f47a0563631fc09113955eff69e763029f9d598ab07c4e32f", 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.14s [INFO] running `Command { std: "docker" "inspect" "b7457ae480eb547f47a0563631fc09113955eff69e763029f9d598ab07c4e32f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7457ae480eb547f47a0563631fc09113955eff69e763029f9d598ab07c4e32f", kill_on_drop: false }` [INFO] [stdout] b7457ae480eb547f47a0563631fc09113955eff69e763029f9d598ab07c4e32f [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfa3eeb615a98a24df07dd0d94fc912d513a3adb254fa725e78190a27ce1ada6 [INFO] running `Command { std: "docker" "start" "-a" "bfa3eeb615a98a24df07dd0d94fc912d513a3adb254fa725e78190a27ce1ada6", kill_on_drop: false }` [INFO] [stderr] Compiling ezhook v0.2.2 (/opt/rustwide/workdir) [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "bfa3eeb615a98a24df07dd0d94fc912d513a3adb254fa725e78190a27ce1ada6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfa3eeb615a98a24df07dd0d94fc912d513a3adb254fa725e78190a27ce1ada6", kill_on_drop: false }` [INFO] [stdout] bfa3eeb615a98a24df07dd0d94fc912d513a3adb254fa725e78190a27ce1ada6 [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7924351d4a254a828a454bba1eb828d95d837d64e59859d3f8033d6c441e62cd [INFO] running `Command { std: "docker" "start" "-a" "7924351d4a254a828a454bba1eb828d95d837d64e59859d3f8033d6c441e62cd", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] running 6 tests [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 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ezhook-591c191387941ab1) [INFO] [stderr] Doc-tests ezhook [INFO] [stdout] test local::swap::tests::hook ... ok [INFO] [stdout] test local::swap::tests::hook_macro ... ok [INFO] [stdout] test local::swap::tests::hook_multiple ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_state ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_multiple ... ok [INFO] [stdout] test remote::swap::tests::hook_macro ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7924351d4a254a828a454bba1eb828d95d837d64e59859d3f8033d6c441e62cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7924351d4a254a828a454bba1eb828d95d837d64e59859d3f8033d6c441e62cd", kill_on_drop: false }` [INFO] [stdout] 7924351d4a254a828a454bba1eb828d95d837d64e59859d3f8033d6c441e62cd [INFO] testing ezhook-0.2.2 against try#61a9ac64344e91d62f5496627ff363d177f9daab for pr-125507 [INFO] extracting crate ezhook 0.2.2 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate ezhook 0.2.2 on toolchain 61a9ac64344e91d62f5496627ff363d177f9daab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "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-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc88e45e45ebcd37eeffc024310a2266971be2c0244dee354ed14232a37e26e6 [INFO] running `Command { std: "docker" "start" "-a" "fc88e45e45ebcd37eeffc024310a2266971be2c0244dee354ed14232a37e26e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc88e45e45ebcd37eeffc024310a2266971be2c0244dee354ed14232a37e26e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc88e45e45ebcd37eeffc024310a2266971be2c0244dee354ed14232a37e26e6", kill_on_drop: false }` [INFO] [stdout] fc88e45e45ebcd37eeffc024310a2266971be2c0244dee354ed14232a37e26e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bcbf60e8b86088c105225c16eba3ff87acaeb910f531e69f7dde91240c254b6 [INFO] running `Command { std: "docker" "start" "-a" "8bcbf60e8b86088c105225c16eba3ff87acaeb910f531e69f7dde91240c254b6", 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.12s [INFO] running `Command { std: "docker" "inspect" "8bcbf60e8b86088c105225c16eba3ff87acaeb910f531e69f7dde91240c254b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bcbf60e8b86088c105225c16eba3ff87acaeb910f531e69f7dde91240c254b6", kill_on_drop: false }` [INFO] [stdout] 8bcbf60e8b86088c105225c16eba3ff87acaeb910f531e69f7dde91240c254b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 133243b0e68e4c19916c352cdfbbb3f8d5a183cf3324c43cb13759f659fa1b1f [INFO] running `Command { std: "docker" "start" "-a" "133243b0e68e4c19916c352cdfbbb3f8d5a183cf3324c43cb13759f659fa1b1f", kill_on_drop: false }` [INFO] [stderr] Compiling ezhook v0.2.2 (/opt/rustwide/workdir) [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "133243b0e68e4c19916c352cdfbbb3f8d5a183cf3324c43cb13759f659fa1b1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "133243b0e68e4c19916c352cdfbbb3f8d5a183cf3324c43cb13759f659fa1b1f", kill_on_drop: false }` [INFO] [stdout] 133243b0e68e4c19916c352cdfbbb3f8d5a183cf3324c43cb13759f659fa1b1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1fa2f7ca1336cf43ff78f9adc7b2f107c67c7260faefbb91763b39fb72facf93 [INFO] running `Command { std: "docker" "start" "-a" "1fa2f7ca1336cf43ff78f9adc7b2f107c67c7260faefbb91763b39fb72facf93", kill_on_drop: false }` [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 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ezhook-591c191387941ab1) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test remote::swap::tests::hook_macro_state ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_multiple ... ok [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 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: 0x5633a81accb5 - std::backtrace_rs::backtrace::libunwind::trace::h00ba42e7ea42c749 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 [INFO] [stdout] 1: 0x5633a81accb5 - std::backtrace_rs::backtrace::trace_unsynchronized::h9c418817641943a2 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5633a81accb5 - std::sys_common::backtrace::_print_fmt::h16d2f41e50524011 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x5633a81accb5 - ::fmt::h024be4e490be0e9e [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x5633a81d4aab - core::fmt::rt::Argument::fmt::h374c4cfff31e7096 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/fmt/rt.rs:165:63 [INFO] [stdout] 5: 0x5633a81d4aab - core::fmt::write::hff043ad91cd7da0c [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/fmt/mod.rs:1172:21 [INFO] [stdout] 6: 0x5633a81aa04f - std::io::Write::write_fmt::hcbb4cf2cdd848a5b [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/io/mod.rs:1835:15 [INFO] [stdout] 7: 0x5633a81aca8e - std::sys_common::backtrace::_print::hdfa36fb392c08b8d [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x5633a81aca8e - std::sys_common::backtrace::print::h798da7279a9c7ae4 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x5633a81ae4e9 - std::panicking::default_hook::{{closure}}::h9b61607b4c5732c1 [INFO] [stdout] 10: 0x5633a81ae156 - std::panicking::default_hook::hc6544668bd872893 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:295:9 [INFO] [stdout] 11: 0x5633a817e03a - as core::ops::function::Fn>::call::h9d3afca40a444cde [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/alloc/src/boxed.rs:2077:9 [INFO] [stdout] 12: 0x5633a817e03a - test::test_main::{{closure}}::h3c541e298fe81c6f [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x5633a81aeb5b - as core::ops::function::Fn>::call::h1eb54927ae01d97f [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/alloc/src/boxed.rs:2077:9 [INFO] [stdout] 14: 0x5633a81aeb5b - std::panicking::rust_panic_with_hook::h468693c9efe3a031 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:799:13 [INFO] [stdout] 15: 0x5633a81ae8d4 - std::panicking::begin_panic_handler::{{closure}}::h98a70b5e29207c8e [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:664:13 [INFO] [stdout] 16: 0x5633a81ad179 - std::sys_common::backtrace::__rust_end_short_backtrace::h611a979064209015 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x5633a81ae607 - rust_begin_unwind [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:652:5 [INFO] [stdout] 18: 0x5633a81d3383 - core::panicking::panic_fmt::hb6dc9aface1df13b [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x5633a81d3906 - core::result::unwrap_failed::h68f46d2f65fd037f [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/result.rs:1658:5 [INFO] [stdout] 20: 0x5633a814677d - core::result::Result::unwrap::h034da237cf234dcc [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/result.rs:1081:23 [INFO] [stdout] 21: 0x5633a814677d - ezhook::local::swap::Hook::hook::h80bd718c242d925f [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:28:22 [INFO] [stdout] 22: 0x5633a81499b4 - ezhook::local::swap::tests::add_one_before::hook::h61bc5ec2cf478742 [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:132:17 [INFO] [stdout] 23: 0x5633a813f310 - ezhook::local::swap::tests::hook_macro::h73b32dc7a053776d [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:217:22 [INFO] [stdout] 24: 0x5633a813f2a7 - ezhook::local::swap::tests::hook_macro::{{closure}}::hf00db5a387c69546 [INFO] [stdout] at /opt/rustwide/workdir/src/local/swap.rs:213:20 [INFO] [stdout] 25: 0x5633a8144c96 - core::ops::function::FnOnce::call_once::h9771cf7c4c26cbf7 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5633a818286b - core::ops::function::FnOnce::call_once::h83b9e7210d04f0be [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 27: 0x5633a818286b - test::__rust_begin_short_backtrace::hc51e2566ee553989 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:625:18 [INFO] [stdout] 28: 0x5633a8181fc1 - test::run_test_in_process::{{closure}}::h507f8c4135041c73 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:648:60 [INFO] [stdout] 29: 0x5633a8181fc1 - as core::ops::function::FnOnce<()>>::call_once::hd632d14c2c0c86cc [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x5633a8181fc1 - std::panicking::try::do_call::he7cb1a3635628c20 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:559:40 [INFO] [stdout] 31: 0x5633a8181fc1 - std::panicking::try::h254585cffc0ff5cb [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:523:19 [INFO] [stdout] 32: 0x5633a8181fc1 - std::panic::catch_unwind::h30903f0fa4711873 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panic.rs:149:14 [INFO] [stdout] 33: 0x5633a8181fc1 - test::run_test_in_process::h270fbcadd28ef446 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:648:27 [INFO] [stdout] 34: 0x5633a8181fc1 - test::run_test::{{closure}}::h18e4da806d3313a0 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:569:43 [INFO] [stdout] 35: 0x5633a8149d14 - test::run_test::{{closure}}::hc076b6d6ee9c0fac [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/test/src/lib.rs:599:41 [INFO] [stdout] 36: 0x5633a8149d14 - std::sys_common::backtrace::__rust_begin_short_backtrace::h4f576a631d422da3 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 37: 0x5633a814e6a2 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hefe4a7694b5d43cd [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/thread/mod.rs:542:17 [INFO] [stdout] 38: 0x5633a814e6a2 - as core::ops::function::FnOnce<()>>::call_once::hf636fa9a6585dda1 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x5633a814e6a2 - std::panicking::try::do_call::h96113252ae0170f4 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:559:40 [INFO] [stdout] 40: 0x5633a814e6a2 - std::panicking::try::h8973076d4927ad1d [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panicking.rs:523:19 [INFO] [stdout] 41: 0x5633a814e6a2 - std::panic::catch_unwind::h19e5115b032f0ef3 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/panic.rs:149:14 [INFO] [stdout] 42: 0x5633a814e6a2 - std::thread::Builder::spawn_unchecked_::{{closure}}::h94b93148b33165cc [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/thread/mod.rs:541:30 [INFO] [stdout] 43: 0x5633a814e6a2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6156e4ffab7355ca [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x5633a81b2d7b - as core::ops::function::FnOnce>::call_once::h55fe8ae975f6a9ec [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/alloc/src/boxed.rs:2063:9 [INFO] [stdout] 45: 0x5633a81b2d7b - as core::ops::function::FnOnce>::call_once::hfe87b9909955678e [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/alloc/src/boxed.rs:2063:9 [INFO] [stdout] 46: 0x5633a81b2d7b - std::sys::pal::unix::thread::Thread::new::thread_start::h7a534a78099446c7 [INFO] [stdout] at /rustc/61a9ac64344e91d62f5496627ff363d177f9daab/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 47: 0x7f9df34e4ac3 - [INFO] [stdout] 48: 0x7f9df3575a04 - __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.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "1fa2f7ca1336cf43ff78f9adc7b2f107c67c7260faefbb91763b39fb72facf93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fa2f7ca1336cf43ff78f9adc7b2f107c67c7260faefbb91763b39fb72facf93", kill_on_drop: false }` [INFO] [stdout] 1fa2f7ca1336cf43ff78f9adc7b2f107c67c7260faefbb91763b39fb72facf93