[INFO] fetching crate memexec 0.2.0...
[INFO] checking memexec-0.2.0 against master#c2f2db79ca3024f68d22b45aa22b570775c2c4ad for pr-124157
[INFO] extracting crate memexec 0.2.0 into /workspace/builds/worker-4-tc1/source
[INFO] validating manifest of crates.io crate memexec 0.2.0 on toolchain c2f2db79ca3024f68d22b45aa22b570775c2c4ad
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4949f0b26695828a83dfecb2282925971d2ca1e234730eb1ee9542c809b86c4d
[INFO] running `Command { std: "docker" "start" "-a" "4949f0b26695828a83dfecb2282925971d2ca1e234730eb1ee9542c809b86c4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4949f0b26695828a83dfecb2282925971d2ca1e234730eb1ee9542c809b86c4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4949f0b26695828a83dfecb2282925971d2ca1e234730eb1ee9542c809b86c4d", kill_on_drop: false }`
[INFO] [stdout] 4949f0b26695828a83dfecb2282925971d2ca1e234730eb1ee9542c809b86c4d
[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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 62ffd35aa76066359d1f3f38813a6e1b2421f76868a4956098454c7c14e68df3
[INFO] running `Command { std: "docker" "start" "-a" "62ffd35aa76066359d1f3f38813a6e1b2421f76868a4956098454c7c14e68df3", 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<IMAGE_TLS_DIRECTORY>(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] 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<IMAGE_TLS_DIRECTORY>(pe: &PE, base_addr: *const c_void) -> Result<()> {
[INFO] [stdout]     |                            +++++++++++++++++++++
[INFO] [stdout] 
[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] error: aborting due to 9 previous errors
[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] error: aborting due to 9 previous errors; 4 warnings emitted
[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 10 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `memexec` (lib test) due to 10 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "62ffd35aa76066359d1f3f38813a6e1b2421f76868a4956098454c7c14e68df3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "62ffd35aa76066359d1f3f38813a6e1b2421f76868a4956098454c7c14e68df3", kill_on_drop: false }`
[INFO] [stdout] 62ffd35aa76066359d1f3f38813a6e1b2421f76868a4956098454c7c14e68df3
