[INFO] fetching crate memexec 0.2.0... [INFO] checking memexec-0.2.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate memexec 0.2.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate memexec 0.2.0 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 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-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 9750f8c1f6bd1d75c8d849d423bf5fa94c154cfb5a2b75cce56e1fe9ec7dd6ee [INFO] running `Command { std: "docker" "start" "-a" "9750f8c1f6bd1d75c8d849d423bf5fa94c154cfb5a2b75cce56e1fe9ec7dd6ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9750f8c1f6bd1d75c8d849d423bf5fa94c154cfb5a2b75cce56e1fe9ec7dd6ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9750f8c1f6bd1d75c8d849d423bf5fa94c154cfb5a2b75cce56e1fe9ec7dd6ee", kill_on_drop: false }` [INFO] [stdout] 9750f8c1f6bd1d75c8d849d423bf5fa94c154cfb5a2b75cce56e1fe9ec7dd6ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] f46a03e5bbdf368789fb755bbcc061cd743b1150ccb4fc706e9680d1dc603acb [INFO] running `Command { std: "docker" "start" "-a" "f46a03e5bbdf368789fb755bbcc061cd743b1150ccb4fc706e9680d1dc603acb", 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[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: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[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[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: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: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: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[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_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] error: aborting due to 9 previous errors [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] 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: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; 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" "f46a03e5bbdf368789fb755bbcc061cd743b1150ccb4fc706e9680d1dc603acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46a03e5bbdf368789fb755bbcc061cd743b1150ccb4fc706e9680d1dc603acb", kill_on_drop: false }` [INFO] [stdout] f46a03e5bbdf368789fb755bbcc061cd743b1150ccb4fc706e9680d1dc603acb