[INFO] fetching crate ezhook 0.2.2... [INFO] testing ezhook-0.2.2 against master#552a959051cebf8f88a8f558399baf733bec9ce0 for pr-136932 [INFO] extracting crate ezhook 0.2.2 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate ezhook 0.2.2 on toolchain 552a959051cebf8f88a8f558399baf733bec9ce0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "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-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lde v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16b6c208ebfb1ef6d35fd625c1f8b05f2546dc2809c9b7c12704a4aebeeb0439 [INFO] running `Command { std: "docker" "start" "-a" "16b6c208ebfb1ef6d35fd625c1f8b05f2546dc2809c9b7c12704a4aebeeb0439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16b6c208ebfb1ef6d35fd625c1f8b05f2546dc2809c9b7c12704a4aebeeb0439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16b6c208ebfb1ef6d35fd625c1f8b05f2546dc2809c9b7c12704a4aebeeb0439", kill_on_drop: false }` [INFO] [stdout] 16b6c208ebfb1ef6d35fd625c1f8b05f2546dc2809c9b7c12704a4aebeeb0439 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41c93146b90acb024c9b4f8be53e770676d50d7c489ebaaa69d6e516e3bc9ee6 [INFO] running `Command { std: "docker" "start" "-a" "41c93146b90acb024c9b4f8be53e770676d50d7c489ebaaa69d6e516e3bc9ee6", 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.15s [INFO] running `Command { std: "docker" "inspect" "41c93146b90acb024c9b4f8be53e770676d50d7c489ebaaa69d6e516e3bc9ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41c93146b90acb024c9b4f8be53e770676d50d7c489ebaaa69d6e516e3bc9ee6", kill_on_drop: false }` [INFO] [stdout] 41c93146b90acb024c9b4f8be53e770676d50d7c489ebaaa69d6e516e3bc9ee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 79d99f2614cba71232452f6b237cd419c81e1823aad3d8bd48c81fe67c6653b3 [INFO] running `Command { std: "docker" "start" "-a" "79d99f2614cba71232452f6b237cd419c81e1823aad3d8bd48c81fe67c6653b3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling ezhook v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/remote/swap.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | ) -> &mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'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: `#[warn(elided_named_lifetimes)]` 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: consider specifying it explicitly [INFO] [stdout] | [INFO] [stdout] 103 | ) -> &'static mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/remote/swap.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | ) -> &mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'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: 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: consider specifying it explicitly [INFO] [stdout] | [INFO] [stdout] 103 | ) -> &'static mut $crate::local::swap::Hook<__ez_Func> { [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 [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 189 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 189 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 195 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 195 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 201 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 201 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 219 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stdout] 219 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 225 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stdout] 225 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 231 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stdout] 231 + assert!(std::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 is discouraged [INFO] [stdout] --> src/local/swap.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | __ez_HOOK.hook(target) [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/local/swap.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | __ez_HOOK.unhook() [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/local/swap.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | __ez_HOOK.toggle() [INFO] [stdout] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/local/swap.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | __ez_HOOK.target() [INFO] [stdout] | ^^^^^^^^^ shared reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 160 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 160 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 166 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 166 + assert!(std::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 [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 172 - assert!(unsafe { hook.target() } == square); [INFO] [stdout] 172 + assert!(std::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 is discouraged [INFO] [stdout] --> src/remote/swap.rs:98:44 [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 [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] = 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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:104:48 [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 [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] = 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] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:56:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:58:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:65:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:98:44 [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 [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] = 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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:104:48 [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 [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] = 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] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:56:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:58:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/remote/swap.rs:65:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.63s [INFO] running `Command { std: "docker" "inspect" "79d99f2614cba71232452f6b237cd419c81e1823aad3d8bd48c81fe67c6653b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79d99f2614cba71232452f6b237cd419c81e1823aad3d8bd48c81fe67c6653b3", kill_on_drop: false }` [INFO] [stdout] 79d99f2614cba71232452f6b237cd419c81e1823aad3d8bd48c81fe67c6653b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4d6a001d22443054cf4dd45fadcdafd11cb9f292d2174604e5f86de54fe65900 [INFO] running `Command { std: "docker" "start" "-a" "4d6a001d22443054cf4dd45fadcdafd11cb9f292d2174604e5f86de54fe65900", kill_on_drop: false }` [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/remote/swap.rs:103:18 [INFO] [stderr] | [INFO] [stderr] 103 | ) -> &mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stderr] | ^ this elided lifetime gets resolved as `'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: `#[warn(elided_named_lifetimes)]` 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: consider specifying it explicitly [INFO] [stderr] | [INFO] [stderr] 103 | ) -> &'static mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/remote/swap.rs:103:18 [INFO] [stderr] | [INFO] [stderr] 103 | ) -> &mut $crate::local::swap::Hook<__ez_Func> { [INFO] [stderr] | ^ this elided lifetime gets resolved as `'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: 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: consider specifying it explicitly [INFO] [stderr] | [INFO] [stderr] 103 | ) -> &'static mut $crate::local::swap::Hook<__ez_Func> { [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 [INFO] [stderr] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 189 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 189 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 195 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 195 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 201 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 201 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 219 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stderr] 219 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 225 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stderr] 225 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 231 - assert!(unsafe { add_one_before::target() } == square); [INFO] [stderr] 231 + assert!(std::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 is discouraged [INFO] [stderr] --> src/local/swap.rs:132:17 [INFO] [stderr] | [INFO] [stderr] 132 | __ez_HOOK.hook(target) [INFO] [stderr] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/local/swap.rs:137:17 [INFO] [stderr] | [INFO] [stderr] 137 | __ez_HOOK.unhook() [INFO] [stderr] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/local/swap.rs:142:17 [INFO] [stderr] | [INFO] [stderr] 142 | __ez_HOOK.toggle() [INFO] [stderr] | ^^^^^^^^^ mutable reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/local/swap.rs:147:17 [INFO] [stderr] | [INFO] [stderr] 147 | __ez_HOOK.target() [INFO] [stderr] | ^^^^^^^^^ shared reference to mutable static [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: for more information, see [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] = note: this warning originates in the macro `$crate::local_swap_hook` which comes from the expansion of the macro `local_swap_hook` (in Nightly builds, run with -Z macro-backtrace for more info) [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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 160 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 160 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 166 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 166 + assert!(std::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 [INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stderr] | [INFO] [stderr] 172 - assert!(unsafe { hook.target() } == square); [INFO] [stderr] 172 + assert!(std::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 is discouraged [INFO] [stderr] --> src/remote/swap.rs:98:44 [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 [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] = 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] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:104:48 [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 [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] = 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] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:56:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:58:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:65:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:98:44 [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 [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] = 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] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:104:48 [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 [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] = 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] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:56:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:58:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/remote/swap.rs:65:33 [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: for more information, see [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] = note: this warning originates in the macro `orig` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `ezhook` (lib test) generated 25 warnings (run `cargo fix --lib -p ezhook --tests` to apply 2 suggestions) [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-b23b06d7a470b298) [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 ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_state ... ok [INFO] [stdout] test remote::swap::tests::hook_macro_multiple ... ok [INFO] [stdout] test local::swap::tests::hook_multiple ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ezhook [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" "4d6a001d22443054cf4dd45fadcdafd11cb9f292d2174604e5f86de54fe65900", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d6a001d22443054cf4dd45fadcdafd11cb9f292d2174604e5f86de54fe65900", kill_on_drop: false }` [INFO] [stdout] 4d6a001d22443054cf4dd45fadcdafd11cb9f292d2174604e5f86de54fe65900