[INFO] fetching crate ezhook 0.2.2...
[INFO] testing ezhook-0.2.2 against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2
[INFO] extracting crate ezhook 0.2.2 into /workspace/builds/worker-0-tc2/source
[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-0-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate ezhook 0.2.2 on toolchain 1.101.0-beta.1
[INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] running `"cargo" "+1.101.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 5 packages to highest compatible versions
[INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] 542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c
[INFO] running `"docker" "start" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "inspect" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling ezhook v0.2.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.06s
[INFO] running `"docker" "inspect" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling ezhook v0.2.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: direct cast of function item into an integer
[INFO] [stdout]    --> src/local/swap.rs:177:32
[INFO] [stdout]     |
[INFO] [stdout] 177 |         util::unprotect(square as _, 5);
[INFO] [stdout]     |                                ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(function_casts_as_integer)]` on by default
[INFO] [stdout] help: first cast to a pointer `as *const ()`
[INFO] [stdout]     |
[INFO] [stdout] 177 |         util::unprotect(square as *const () as _, 5);
[INFO] [stdout]     |                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:189:21
[INFO] [stdout]     |
[INFO] [stdout] 189 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout]     = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 189 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 189 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:195:21
[INFO] [stdout]     |
[INFO] [stdout] 195 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 195 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 195 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:201:21
[INFO] [stdout]     |
[INFO] [stdout] 201 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 201 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 201 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:219:21
[INFO] [stdout]     |
[INFO] [stdout] 219 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 219 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout] 219 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:225:21
[INFO] [stdout]     |
[INFO] [stdout] 225 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 225 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout] 225 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/local/swap.rs:231:21
[INFO] [stdout]     |
[INFO] [stdout] 231 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 231 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stdout] 231 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/local/swap.rs:132:17
[INFO] [stdout]     |
[INFO] [stdout]  68 | / macro_rules! local_swap_hook {
[INFO] [stdout]  69 | |     {
[INFO] [stdout]  70 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 132 | |                 __ez_HOOK.hook(target)
[INFO] [stdout]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...   |
[INFO] [stdout] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 153 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stdout] ...
[INFO] [stdout] 170 | /     local_swap_hook! {
[INFO] [stdout] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stdout] 172 | |             orig!(x + 1)
[INFO] [stdout] 173 | |         }
[INFO] [stdout] 174 | |     }
[INFO] [stdout]     | |_____- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/local/swap.rs:137:17
[INFO] [stdout]     |
[INFO] [stdout]  68 | / macro_rules! local_swap_hook {
[INFO] [stdout]  69 | |     {
[INFO] [stdout]  70 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 137 | |                 __ez_HOOK.unhook()
[INFO] [stdout]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...   |
[INFO] [stdout] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 153 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stdout] ...
[INFO] [stdout] 170 | /     local_swap_hook! {
[INFO] [stdout] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stdout] 172 | |             orig!(x + 1)
[INFO] [stdout] 173 | |         }
[INFO] [stdout] 174 | |     }
[INFO] [stdout]     | |_____- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/local/swap.rs:142:17
[INFO] [stdout]     |
[INFO] [stdout]  68 | / macro_rules! local_swap_hook {
[INFO] [stdout]  69 | |     {
[INFO] [stdout]  70 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 142 | |                 __ez_HOOK.toggle()
[INFO] [stdout]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...   |
[INFO] [stdout] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 153 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stdout] ...
[INFO] [stdout] 170 | /     local_swap_hook! {
[INFO] [stdout] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stdout] 172 | |             orig!(x + 1)
[INFO] [stdout] 173 | |         }
[INFO] [stdout] 174 | |     }
[INFO] [stdout]     | |_____- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/local/swap.rs:147:17
[INFO] [stdout]     |
[INFO] [stdout]  68 | / macro_rules! local_swap_hook {
[INFO] [stdout]  69 | |     {
[INFO] [stdout]  70 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 147 | |                 __ez_HOOK.target()
[INFO] [stdout]     | |                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stdout] ...   |
[INFO] [stdout] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 153 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stdout] ...
[INFO] [stdout] 170 | /     local_swap_hook! {
[INFO] [stdout] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stdout] 172 | |             orig!(x + 1)
[INFO] [stdout] 173 | |         }
[INFO] [stdout] 174 | |     }
[INFO] [stdout]     | |_____- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: direct cast of function item into an integer
[INFO] [stdout]    --> src/remote/swap.rs:146:32
[INFO] [stdout]     |
[INFO] [stdout] 146 |         util::unprotect(square as _, 5);
[INFO] [stdout]     |                                ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: first cast to a pointer `as *const ()`
[INFO] [stdout]     |
[INFO] [stdout] 146 |         util::unprotect(square as *const () as _, 5);
[INFO] [stdout]     |                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: direct cast of function item into an integer
[INFO] [stdout]    --> src/remote/swap.rs:148:31
[INFO] [stdout]     |
[INFO] [stdout] 148 |         util::allocate(square as _, size)
[INFO] [stdout]     |                               ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: first cast to a pointer `as *const ()`
[INFO] [stdout]     |
[INFO] [stdout] 148 |         util::allocate(square as *const () as _, size)
[INFO] [stdout]     |                               ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/remote/swap.rs:160:21
[INFO] [stdout]     |
[INFO] [stdout] 160 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 160 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 160 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/remote/swap.rs:166:21
[INFO] [stdout]     |
[INFO] [stdout] 166 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 166 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 166 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stdout]    --> src/remote/swap.rs:172:21
[INFO] [stdout]     |
[INFO] [stdout] 172 |             assert!(unsafe { hook.target() } == square);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the address of the same function can vary between different codegen units
[INFO] [stdout]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stdout]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stdout] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stdout]     |
[INFO] [stdout] 172 -             assert!(unsafe { hook.target() } == square);
[INFO] [stdout] 172 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:98:44
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/remote/swap.rs:103:18
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 102 | |                 dest: &'static mut [u8],
[INFO] [stdout]     | |                        ------- the lifetime is named here
[INFO] [stdout] 103 | |             ) -> &mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stdout]     | |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is elided here
[INFO] [stdout] ...   |
[INFO] [stdout] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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]     = 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: consistently use `'static`
[INFO] [stdout]     |
[INFO] [stdout] 103 |             ) -> &'static mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stdout]     |                   +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:104:48
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:56:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  56 |                                 __ez_HOOK.toggle_inline();
[INFO] [stdout]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 126 |             orig!(x + 1)
[INFO] [stdout]     |             ------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:58:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  58 |                                 __ez_HOOK.target_inline()
[INFO] [stdout]     |                                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 126 |             orig!(x + 1)
[INFO] [stdout]     |             ------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:65:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  65 |                                 __ez_HOOK.toggle_inline();
[INFO] [stdout]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 126 |             orig!(x + 1)
[INFO] [stdout]     |             ------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:98:44
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/remote/swap.rs:103:18
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[INFO] [stdout] ...   |
[INFO] [stdout] 102 | |                 dest: &'static mut [u8],
[INFO] [stdout]     | |                        ------- the lifetime is named here
[INFO] [stdout] 103 | |             ) -> &mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stdout]     | |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is elided here
[INFO] [stdout] ...   |
[INFO] [stdout] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: consistently use `'static`
[INFO] [stdout]     |
[INFO] [stdout] 103 |             ) -> &'static mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stdout]     |                   +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:104:48
[INFO] [stdout]     |
[INFO] [stdout]  26 | / macro_rules! remote_swap_hook {
[INFO] [stdout]  27 | |     {
[INFO] [stdout]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stdout] 110 | | }
[INFO] [stdout]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:56:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  56 |                                 __ez_HOOK.toggle_inline();
[INFO] [stdout]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 133 |             update_last(orig!(x))
[INFO] [stdout]     |                         -------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:58:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  58 |                                 __ez_HOOK.target_inline()
[INFO] [stdout]     |                                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 133 |             update_last(orig!(x))
[INFO] [stdout]     |                         -------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/remote/swap.rs:65:33
[INFO] [stdout]     |
[INFO] [stdout]  51 |                 macro_rules! orig {
[INFO] [stdout] ...
[INFO] [stdout]  65 |                                 __ez_HOOK.toggle_inline();
[INFO] [stdout]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout] ...
[INFO] [stdout] 133 |             update_last(orig!(x))
[INFO] [stdout]     |                         -------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.64s
[INFO] running `"docker" "inspect" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--release"`
[INFO] [stderr] warning: direct cast of function item into an integer
[INFO] [stderr]    --> src/local/swap.rs:177:32
[INFO] [stderr]     |
[INFO] [stderr] 177 |         util::unprotect(square as _, 5);
[INFO] [stderr]     |                                ^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(function_casts_as_integer)]` on by default
[INFO] [stderr] help: first cast to a pointer `as *const ()`
[INFO] [stderr]     |
[INFO] [stderr] 177 |         util::unprotect(square as *const () as _, 5);
[INFO] [stderr]     |                                ++++++++++++
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:189:21
[INFO] [stderr]     |
[INFO] [stderr] 189 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr]     = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 189 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 189 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:195:21
[INFO] [stderr]     |
[INFO] [stderr] 195 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 195 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 195 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:201:21
[INFO] [stderr]     |
[INFO] [stderr] 201 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 201 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 201 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:219:21
[INFO] [stderr]     |
[INFO] [stderr] 219 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 219 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr] 219 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:225:21
[INFO] [stderr]     |
[INFO] [stderr] 225 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 225 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr] 225 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/local/swap.rs:231:21
[INFO] [stderr]     |
[INFO] [stderr] 231 |             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 231 -             assert!(unsafe { add_one_before::target() } == square);
[INFO] [stderr] 231 +             assert!(core::ptr::fn_addr_eq(unsafe { add_one_before::target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/local/swap.rs:132:17
[INFO] [stderr]     |
[INFO] [stderr]  68 | / macro_rules! local_swap_hook {
[INFO] [stderr]  69 | |     {
[INFO] [stderr]  70 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 132 | |                 __ez_HOOK.hook(target)
[INFO] [stderr]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...   |
[INFO] [stderr] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 153 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stderr] ...
[INFO] [stderr] 170 | /     local_swap_hook! {
[INFO] [stderr] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stderr] 172 | |             orig!(x + 1)
[INFO] [stderr] 173 | |         }
[INFO] [stderr] 174 | |     }
[INFO] [stderr]     | |_____- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr]     = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/local/swap.rs:137:17
[INFO] [stderr]     |
[INFO] [stderr]  68 | / macro_rules! local_swap_hook {
[INFO] [stderr]  69 | |     {
[INFO] [stderr]  70 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 137 | |                 __ez_HOOK.unhook()
[INFO] [stderr]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...   |
[INFO] [stderr] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 153 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stderr] ...
[INFO] [stderr] 170 | /     local_swap_hook! {
[INFO] [stderr] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stderr] 172 | |             orig!(x + 1)
[INFO] [stderr] 173 | |         }
[INFO] [stderr] 174 | |     }
[INFO] [stderr]     | |_____- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/local/swap.rs:142:17
[INFO] [stderr]     |
[INFO] [stderr]  68 | / macro_rules! local_swap_hook {
[INFO] [stderr]  69 | |     {
[INFO] [stderr]  70 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 142 | |                 __ez_HOOK.toggle()
[INFO] [stderr]     | |                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...   |
[INFO] [stderr] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 153 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stderr] ...
[INFO] [stderr] 170 | /     local_swap_hook! {
[INFO] [stderr] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stderr] 172 | |             orig!(x + 1)
[INFO] [stderr] 173 | |         }
[INFO] [stderr] 174 | |     }
[INFO] [stderr]     | |_____- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/local/swap.rs:147:17
[INFO] [stderr]     |
[INFO] [stderr]  68 | / macro_rules! local_swap_hook {
[INFO] [stderr]  69 | |     {
[INFO] [stderr]  70 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 147 | |                 __ez_HOOK.target()
[INFO] [stderr]     | |                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stderr] ...   |
[INFO] [stderr] 152 | |     ($($tt:tt)*) => { $crate::local_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 153 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook`
[INFO] [stderr] ...
[INFO] [stderr] 170 | /     local_swap_hook! {
[INFO] [stderr] 171 | |         fn add_one_before(x: i32) -> i32 {
[INFO] [stderr] 172 | |             orig!(x + 1)
[INFO] [stderr] 173 | |         }
[INFO] [stderr] 174 | |     }
[INFO] [stderr]     | |_____- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: direct cast of function item into an integer
[INFO] [stderr]    --> src/remote/swap.rs:146:32
[INFO] [stderr]     |
[INFO] [stderr] 146 |         util::unprotect(square as _, 5);
[INFO] [stderr]     |                                ^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: first cast to a pointer `as *const ()`
[INFO] [stderr]     |
[INFO] [stderr] 146 |         util::unprotect(square as *const () as _, 5);
[INFO] [stderr]     |                                ++++++++++++
[INFO] [stderr] 
[INFO] [stderr] warning: direct cast of function item into an integer
[INFO] [stderr]    --> src/remote/swap.rs:148:31
[INFO] [stderr]     |
[INFO] [stderr] 148 |         util::allocate(square as _, size)
[INFO] [stderr]     |                               ^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: first cast to a pointer `as *const ()`
[INFO] [stderr]     |
[INFO] [stderr] 148 |         util::allocate(square as *const () as _, size)
[INFO] [stderr]     |                               ++++++++++++
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/remote/swap.rs:160:21
[INFO] [stderr]     |
[INFO] [stderr] 160 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 160 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 160 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/remote/swap.rs:166:21
[INFO] [stderr]     |
[INFO] [stderr] 166 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 166 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 166 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/remote/swap.rs:172:21
[INFO] [stderr]     |
[INFO] [stderr] 172 |             assert!(unsafe { hook.target() } == square);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `core::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 172 -             assert!(unsafe { hook.target() } == square);
[INFO] [stderr] 172 +             assert!(core::ptr::fn_addr_eq(unsafe { hook.target() }, square as fn(i32) -> i32));
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:98:44
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stderr]    --> src/remote/swap.rs:103:18
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 102 | |                 dest: &'static mut [u8],
[INFO] [stderr]     | |                        ------- the lifetime is named here
[INFO] [stderr] 103 | |             ) -> &mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stderr]     | |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is elided here
[INFO] [stderr] ...   |
[INFO] [stderr] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: consistently use `'static`
[INFO] [stderr]     |
[INFO] [stderr] 103 |             ) -> &'static mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stderr]     |                   +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:104:48
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:56:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  56 |                                 __ez_HOOK.toggle_inline();
[INFO] [stderr]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 126 |             orig!(x + 1)
[INFO] [stderr]     |             ------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:58:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  58 |                                 __ez_HOOK.target_inline()
[INFO] [stderr]     |                                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 126 |             orig!(x + 1)
[INFO] [stderr]     |             ------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:65:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  65 |                                 __ez_HOOK.toggle_inline();
[INFO] [stderr]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 126 |             orig!(x + 1)
[INFO] [stderr]     |             ------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:98:44
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stderr]    --> src/remote/swap.rs:103:18
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[INFO] [stderr] ...   |
[INFO] [stderr] 102 | |                 dest: &'static mut [u8],
[INFO] [stderr]     | |                        ------- the lifetime is named here
[INFO] [stderr] 103 | |             ) -> &mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stderr]     | |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is elided here
[INFO] [stderr] ...   |
[INFO] [stderr] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: consistently use `'static`
[INFO] [stderr]     |
[INFO] [stderr] 103 |             ) -> &'static mut $crate::local::swap::Hook<__ez_Func> {
[INFO] [stderr]     |                   +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:104:48
[INFO] [stderr]     |
[INFO] [stderr]  26 | / macro_rules! remote_swap_hook {
[INFO] [stderr]  27 | |     {
[INFO] [stderr]  28 | |         @dollar($dollar:tt)
[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] 109 | |     ($($tt:tt)*) => { $crate::remote_swap_hook! { @dollar($) $($tt)* } };
[INFO] [stderr] 110 | | }
[INFO] [stderr]     | |_- this warning originates in the macro `$crate::remote_swap_hook` which comes from the expansion of the macro `remote_swap_hook`
[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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:56:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  56 |                                 __ez_HOOK.toggle_inline();
[INFO] [stderr]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 133 |             update_last(orig!(x))
[INFO] [stderr]     |                         -------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a shared reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:58:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  58 |                                 __ez_HOOK.target_inline()
[INFO] [stderr]     |                                 ^^^^^^^^^ shared reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 133 |             update_last(orig!(x))
[INFO] [stderr]     |                         -------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static
[INFO] [stderr]    --> src/remote/swap.rs:65:33
[INFO] [stderr]     |
[INFO] [stderr]  51 |                 macro_rules! orig {
[INFO] [stderr] ...
[INFO] [stderr]  65 |                                 __ez_HOOK.toggle_inline();
[INFO] [stderr]     |                                 ^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr] ...
[INFO] [stderr] 133 |             update_last(orig!(x))
[INFO] [stderr]     |                         -------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = help: use a type that relies on "interior mutability" instead; to read more on this, visit <https://doc.rust-lang.org/reference/interior-mutability.html>
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr] 
[INFO] [stderr] warning: `ezhook` (lib test) generated 28 warnings (run `cargo fix --lib -p ezhook --tests` to apply 5 suggestions)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/build/ezhook/895f3120ef799fa7/out/ezhook-895f3120ef799fa7)
[INFO] [stdout] 
[INFO] [stdout] running 6 tests
[INFO] [stdout] test local::swap::tests::hook_macro ... 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 ... ok
[INFO] [stdout] test remote::swap::tests::hook_macro_state ... FAILED
[INFO] [stdout] test local::swap::tests::hook_multiple ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- remote::swap::tests::hook_macro_state stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'remote::swap::tests::hook_macro_state' (152) panicked at src/local/swap.rs:28:57:
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: TryFromIntError(PosOverflow)
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x56819cf06b21 - <<std[218a0f7bb9a8af32]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt
[INFO] [stdout]    1:     0x56819cf1ae7a - core[5c14b8d5a259cc4e]::fmt::write
[INFO] [stdout]    2:     0x56819cf0af6c - <alloc[f65cf102c2e86268]::vec::Vec<u8> as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt
[INFO] [stdout]    3:     0x56819cee3706 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0}
[INFO] [stdout]    4:     0x56819ceff079 - std[218a0f7bb9a8af32]::panicking::default_hook
[INFO] [stdout]    5:     0x56819ce9c1b0 - test[2df5162924bba3e2]::test_main_inner::{closure#0}
[INFO] [stdout]    6:     0x56819ceff232 - std[218a0f7bb9a8af32]::panicking::panic_with_hook
[INFO] [stdout]    7:     0x56819cee37b2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0}
[INFO] [stdout]    8:     0x56819cedc119 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace::<std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]    9:     0x56819cee43bd - __rustc[abc93889656912e2]::rust_begin_unwind
[INFO] [stdout]   10:     0x56819cf1bb8c - core[5c14b8d5a259cc4e]::panicking::panic_fmt
[INFO] [stdout]   11:     0x56819cf1fd22 - core[5c14b8d5a259cc4e]::result::unwrap_failed::unwrap_failed_inner
[INFO] [stdout]   12:     0x56819ce8bdcb - core[5c14b8d5a259cc4e]::result::unwrap_failed::<core[5c14b8d5a259cc4e]::num::error::TryFromIntError>
[INFO] [stdout]   13:     0x56819ce8e7ad - <ezhook[9fe4a15659a854a3]::remote::swap::tests::hook_macro_state::{closure#0} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   14:     0x56819ce8f01b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::<core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>>
[INFO] [stdout]   15:     0x56819ce9c7d5 - test[2df5162924bba3e2]::run_test::{closure#0}
[INFO] [stdout]   16:     0x56819ce95c24 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace::<test[2df5162924bba3e2]::run_test::{closure#1}, ()>
[INFO] [stdout]   17:     0x56819ce9f762 - <std[218a0f7bb9a8af32]::thread::lifecycle::spawn_unchecked<test[2df5162924bba3e2]::run_test::{closure#1}, ()>::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]   18:     0x56819cf063bf - <std[218a0f7bb9a8af32]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]   19:     0x77ea457b5dfa - <unknown>
[INFO] [stdout]   20:     0x77ea458493d4 - clone
[INFO] [stdout]   21:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     remote::swap::tests::hook_macro_state
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] running `"docker" "inspect" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] running `"docker" "rm" "-f" "542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c"`
[INFO] [stdout] 542711785b0299b9f41f1f102cb68b51c50c11807762e6e3007a3389e8c5424c
