[INFO] fetching crate memexec 0.2.0... [INFO] checking memexec-0.2.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate memexec 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate memexec 0.2.0 [INFO] finished tweaking crates.io crate memexec 0.2.0 [INFO] tweaked toml for crates.io crate memexec 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate memexec 0.2.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9a9b7f7161247ada7ff384f7b78dbaf9a92e822ec0fcf74a024f21aca5045d8 [INFO] running `Command { std: "docker" "start" "-a" "e9a9b7f7161247ada7ff384f7b78dbaf9a92e822ec0fcf74a024f21aca5045d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9a9b7f7161247ada7ff384f7b78dbaf9a92e822ec0fcf74a024f21aca5045d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9a9b7f7161247ada7ff384f7b78dbaf9a92e822ec0fcf74a024f21aca5045d8", kill_on_drop: false }` [INFO] [stdout] e9a9b7f7161247ada7ff384f7b78dbaf9a92e822ec0fcf74a024f21aca5045d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5553a7541ca00d7bf8ff2d057f583456bada3b5f76887b04876b92ba1d169b5 [INFO] running `Command { std: "docker" "start" "-a" "f5553a7541ca00d7bf8ff2d057f583456bada3b5f76887b04876b92ba1d169b5", kill_on_drop: false }` [INFO] [stderr] Checking memexec v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `IMAGE_REL_BASED` in this scope [INFO] [stdout] --> src/peloader/mod.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | if (item >> 12) == IMAGE_REL_BASED { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:80:79 [INFO] [stdout] | [INFO] [stdout] 80 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:82:35 [INFO] [stdout] | [INFO] [stdout] 82 | as *const IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:86:79 [INFO] [stdout] | [INFO] [stdout] 86 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:87:81 [INFO] [stdout] | [INFO] [stdout] 87 | base_addr.offset(import_desc.FirstThunk as isize) as *const IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_ORDINAL_FLAG` in this scope [INFO] [stdout] --> src/peloader/mod.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 97 | if thunk_data & IMAGE_ORDINAL_FLAG != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:153:45 [INFO] [stdout] | [INFO] [stdout] 153 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_TLS_DIRECTORY` in this scope [INFO] [stdout] --> src/peloader/mod.rs:169:60 [INFO] [stdout] | [INFO] [stdout] 169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/peparser/def.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct $name { [INFO] [stdout] | ---------------- similarly named struct `IMAGE_TLS_DIRECTORY32` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY32>( [INFO] [stdout] | ++ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | unsafe fn call_tls_callback(pe: &PE, base_addr: *const c_void) -> Result<()> { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_REL_BASED` in this scope [INFO] [stdout] --> src/peloader/mod.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | if (item >> 12) == IMAGE_REL_BASED { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:80:79 [INFO] [stdout] | [INFO] [stdout] 80 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:82:35 [INFO] [stdout] | [INFO] [stdout] 82 | as *const IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:86:79 [INFO] [stdout] | [INFO] [stdout] 86 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:87:81 [INFO] [stdout] | [INFO] [stdout] 87 | base_addr.offset(import_desc.FirstThunk as isize) as *const IMAGE_THUNK_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_ORDINAL_FLAG` in this scope [INFO] [stdout] --> src/peloader/mod.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 97 | if thunk_data & IMAGE_ORDINAL_FLAG != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_THUNK_DATA` in this scope [INFO] [stdout] --> src/peloader/mod.rs:153:45 [INFO] [stdout] | [INFO] [stdout] 153 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_TLS_DIRECTORY` in this scope [INFO] [stdout] --> src/peloader/mod.rs:169:60 [INFO] [stdout] | [INFO] [stdout] 169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/peparser/def.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct $name { [INFO] [stdout] | ---------------- similarly named struct `IMAGE_TLS_DIRECTORY32` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY32>( [INFO] [stdout] | ++ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | unsafe fn call_tls_callback(pe: &PE, base_addr: *const c_void) -> Result<()> { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut buf = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut buf = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memexec` (lib) due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `memexec` (lib test) due to 9 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f5553a7541ca00d7bf8ff2d057f583456bada3b5f76887b04876b92ba1d169b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5553a7541ca00d7bf8ff2d057f583456bada3b5f76887b04876b92ba1d169b5", kill_on_drop: false }` [INFO] [stdout] f5553a7541ca00d7bf8ff2d057f583456bada3b5f76887b04876b92ba1d169b5