[INFO] fetching crate detour 0.8.1... [INFO] checking detour-0.8.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate detour 0.8.1 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate detour 0.8.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "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-3-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" "+506512391b1a75ae450d36c9420978402a91abcc" "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-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88f2c84a4161bd8694daa72c8a9f0ca2b957c74553036cc68b6513a7d91b7fc0 [INFO] running `Command { std: "docker" "start" "-a" "88f2c84a4161bd8694daa72c8a9f0ca2b957c74553036cc68b6513a7d91b7fc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88f2c84a4161bd8694daa72c8a9f0ca2b957c74553036cc68b6513a7d91b7fc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88f2c84a4161bd8694daa72c8a9f0ca2b957c74553036cc68b6513a7d91b7fc0", kill_on_drop: false }` [INFO] [stdout] 88f2c84a4161bd8694daa72c8a9f0ca2b957c74553036cc68b6513a7d91b7fc0 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5340efcd878f07fa29da059aa88ef5c428350e5d02ab3a11f49991d632f30126 [INFO] running `Command { std: "docker" "start" "-a" "5340efcd878f07fa29da059aa88ef5c428350e5d02ab3a11f49991d632f30126", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling cc v1.0.67 [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 region v2.2.0 [INFO] [stderr] Checking mmap-fixed v0.1.5 [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [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 one of these items [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] 14 + use std::arch::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/506512391b1a75ae450d36c9420978402a91abcc/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/506512391b1a75ae450d36c9420978402a91abcc/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/506512391b1a75ae450d36c9420978402a91abcc/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/506512391b1a75ae450d36c9420978402a91abcc/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[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[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 [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 [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 15 previous errors [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 [INFO] running `Command { std: "docker" "inspect" "5340efcd878f07fa29da059aa88ef5c428350e5d02ab3a11f49991d632f30126", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5340efcd878f07fa29da059aa88ef5c428350e5d02ab3a11f49991d632f30126", kill_on_drop: false }` [INFO] [stdout] 5340efcd878f07fa29da059aa88ef5c428350e5d02ab3a11f49991d632f30126