[INFO] fetching crate detour 0.8.1... [INFO] checking detour-0.8.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate detour 0.8.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate detour 0.8.1 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate detour 0.8.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate detour 0.8.1 [INFO] tweaked toml for crates.io crate detour 0.8.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate detour 0.8.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded slice-pool v0.4.1 [INFO] [stderr] Downloaded libudis86-sys v0.2.1 [INFO] [stderr] Downloaded mmap-fixed v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 521deefcdbd60a6fe6ce4fff99f3f0e784f385aa9e121f52654eb7a020df181e [INFO] running `Command { std: "docker" "start" "-a" "521deefcdbd60a6fe6ce4fff99f3f0e784f385aa9e121f52654eb7a020df181e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "521deefcdbd60a6fe6ce4fff99f3f0e784f385aa9e121f52654eb7a020df181e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "521deefcdbd60a6fe6ce4fff99f3f0e784f385aa9e121f52654eb7a020df181e", kill_on_drop: false }` [INFO] [stdout] 521deefcdbd60a6fe6ce4fff99f3f0e784f385aa9e121f52654eb7a020df181e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93dc7a322bac7127fe489d681c76d228dcdec6feca96bc7d3a0def3924c8fa2f [INFO] running `Command { std: "docker" "start" "-a" "93dc7a322bac7127fe489d681c76d228dcdec6feca96bc7d3a0def3924c8fa2f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking slice-pool v0.4.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling libudis86-sys v0.2.1 [INFO] [stderr] Checking mmap-fixed v0.1.5 [INFO] [stderr] Checking region v2.2.0 [INFO] [stderr] Checking detour v0.8.1 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:144:7 [INFO] [stdout] | [INFO] [stdout] 144 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:124:7 [INFO] [stdout] | [INFO] [stdout] 124 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/arch/x86/mod.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | feature(naked_functions, core_intrinsics, asm) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_trait_bound` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | feature(const_fn_trait_bound, unboxed_closures, abi_thiscall) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `abi_thiscall` has been stable since 1.73.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:51 [INFO] [stdout] | [INFO] [stdout] 4 | feature(const_fn_trait_bound, unboxed_closures, abi_thiscall) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_trait_bound` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | feature(const_fn_trait_bound, unboxed_closures, abi_thiscall) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `abi_thiscall` has been stable since 1.73.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:51 [INFO] [stdout] | [INFO] [stdout] 4 | feature(const_fn_trait_bound, unboxed_closures, abi_thiscall) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | feature(naked_functions, core_intrinsics, asm) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0059]: type parameter to bare `Fn` trait must be a tuple [INFO] [stdout] --> src/detours/statik.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | D: Fn + Send + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `::Arguments` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Fn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/function.rs:76:1 [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 106 | D: Fn + Send + 'static, ::Arguments: Tuple [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0059]: type parameter to bare `Fn` trait must be a tuple [INFO] [stdout] --> src/detours/statik.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | C: Fn + Send + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `::Arguments` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Fn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/function.rs:76:1 [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 157 | C: Fn + Send + 'static, ::Arguments: Tuple [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0059]: type parameter to bare `Fn` trait must be a tuple [INFO] [stdout] --> src/detours/statik.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | D: Fn + Send + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `::Arguments` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Fn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/function.rs:76:1 [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 106 | D: Fn + Send + 'static, ::Arguments: Tuple [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0059]: type parameter to bare `Fn` trait must be a tuple [INFO] [stdout] --> src/detours/statik.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | C: Fn + Send + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `::Arguments` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Fn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/function.rs:76:1 [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 157 | C: Fn + Send + 'static, ::Arguments: Tuple [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `::Arguments` is not a tuple [INFO] [stdout] --> src/detours/statik.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | / unsafe { self.closure.load(Ordering::SeqCst).as_ref() } [INFO] [stdout] 181 | | .ok_or(Error::NotInitialized) [INFO] [stdout] 182 | | .expect("retrieving detour closure") [INFO] [stdout] | |__________________________________________^ the trait `Tuple` is not implemented for `::Arguments`, which is required by `Box::Arguments, Output = ::Output>>: Fn<::Arguments>` [INFO] [stdout] | [INFO] [stdout] = note: required for `Box::Arguments, Output = ::Output>>` to implement `Fn<::Arguments>` [INFO] [stdout] = note: required for the cast from `&Box::Arguments, Output = ::Output>>` to `&dyn Fn<::Arguments, Output = ::Output>` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 178 | pub fn __detour(&self) -> &dyn Fn where ::Arguments: Tuple { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe extern "C" fn branch_ret5() -> i32 { [INFO] [stdout] | ----------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:63:45 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe extern "C" fn hotpatch_ret0() -> i32 { [INFO] [stdout] | ------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:84:50 [INFO] [stdout] | [INFO] [stdout] 84 | unsafe extern "C" fn padding_after_ret0() -> i32 { [INFO] [stdout] | ------------------ ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:102:45 [INFO] [stdout] | [INFO] [stdout] 102 | unsafe extern "C" fn external_loop() -> i32 { [INFO] [stdout] | ------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:123:51 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe extern "C" fn rip_relative_ret195() -> i32 { [INFO] [stdout] | ------------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/arch/x86/mod.rs:143:57 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe extern "C" fn rip_relative_prolog_ret49() -> i32 { [INFO] [stdout] | ------------------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `::Arguments` is not a tuple [INFO] [stdout] --> src/detours/statik.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | / unsafe { self.closure.load(Ordering::SeqCst).as_ref() } [INFO] [stdout] 181 | | .ok_or(Error::NotInitialized) [INFO] [stdout] 182 | | .expect("retrieving detour closure") [INFO] [stdout] | |__________________________________________^ the trait `Tuple` is not implemented for `::Arguments`, which is required by `Box::Arguments, Output = ::Output>>: Fn<::Arguments>` [INFO] [stdout] | [INFO] [stdout] = note: required for `Box::Arguments, Output = ::Output>>` to implement `Fn<::Arguments>` [INFO] [stdout] = note: required for the cast from `&Box::Arguments, Output = ::Output>>` to `&dyn Fn<::Arguments, Output = ::Output>` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 178 | pub fn __detour(&self) -> &dyn Fn where ::Arguments: Tuple { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0059, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0059`. [INFO] [stdout] [INFO] [stderr] error: could not compile `detour` (lib) due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 15 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0059, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0059`. [INFO] [stdout] [INFO] [stderr] error: could not compile `detour` (lib test) due to 16 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "93dc7a322bac7127fe489d681c76d228dcdec6feca96bc7d3a0def3924c8fa2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93dc7a322bac7127fe489d681c76d228dcdec6feca96bc7d3a0def3924c8fa2f", kill_on_drop: false }` [INFO] [stdout] 93dc7a322bac7127fe489d681c76d228dcdec6feca96bc7d3a0def3924c8fa2f