[INFO] cloning repository https://github.com/briangreenery/with-clean-env [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/briangreenery/with-clean-env" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbriangreenery%2Fwith-clean-env", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbriangreenery%2Fwith-clean-env'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a31bfcc78d48d015987d12e4ce721f9473c6351 [INFO] checking briangreenery/with-clean-env/6a31bfcc78d48d015987d12e4ce721f9473c6351 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbriangreenery%2Fwith-clean-env" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/briangreenery/with-clean-env 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 git repo https://github.com/briangreenery/with-clean-env [INFO] finished tweaking git repo https://github.com/briangreenery/with-clean-env [INFO] tweaked toml for git repo https://github.com/briangreenery/with-clean-env written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/briangreenery/with-clean-env 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] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded userenv-sys v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6001168b9fc7cbf65c83c569fa6a8f5fbf037d95f012b092fbcdd82dfa80d557 [INFO] running `Command { std: "docker" "start" "-a" "6001168b9fc7cbf65c83c569fa6a8f5fbf037d95f012b092fbcdd82dfa80d557", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6001168b9fc7cbf65c83c569fa6a8f5fbf037d95f012b092fbcdd82dfa80d557", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6001168b9fc7cbf65c83c569fa6a8f5fbf037d95f012b092fbcdd82dfa80d557", kill_on_drop: false }` [INFO] [stdout] 6001168b9fc7cbf65c83c569fa6a8f5fbf037d95f012b092fbcdd82dfa80d557 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a22ee7ac0ee45bf2e2efe53449789f0ec8ac7a4395c6925b7ce70ec510fb78e5 [INFO] running `Command { std: "docker" "start" "-a" "a22ee7ac0ee45bf2e2efe53449789f0ec8ac7a4395c6925b7ce70ec510fb78e5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling userenv-sys v0.2.0 [INFO] [stderr] Compiling advapi32-sys v0.2.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking with-clean-env v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:101:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:100:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:101:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:100:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `kernel32::CloseHandle`, `kernel32::GetCurrentProcess` [INFO] [stdout] --> src/main.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use kernel32::{CloseHandle, GetCurrentProcess}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `GetCurrentProcess` in the root [INFO] [stdout] | | [INFO] [stdout] | no `CloseHandle` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `kernel32::CloseHandle`, `kernel32::GetCurrentProcess` [INFO] [stdout] --> src/main.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use kernel32::{CloseHandle, GetCurrentProcess}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `GetCurrentProcess` in the root [INFO] [stdout] | | [INFO] [stdout] | no `CloseHandle` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `advapi32::OpenProcessToken` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use advapi32::OpenProcessToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OpenProcessToken` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `advapi32::OpenProcessToken` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use advapi32::OpenProcessToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OpenProcessToken` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `userenv::CreateEnvironmentBlock`, `userenv::DestroyEnvironmentBlock` [INFO] [stdout] --> src/main.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use userenv::{CreateEnvironmentBlock, DestroyEnvironmentBlock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `DestroyEnvironmentBlock` in the root [INFO] [stdout] | | [INFO] [stdout] | no `CreateEnvironmentBlock` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `userenv::CreateEnvironmentBlock`, `userenv::DestroyEnvironmentBlock` [INFO] [stdout] --> src/main.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use userenv::{CreateEnvironmentBlock, DestroyEnvironmentBlock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `DestroyEnvironmentBlock` in the root [INFO] [stdout] | | [INFO] [stdout] | no `CreateEnvironmentBlock` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in crate `winapi` [INFO] [stdout] --> src/main.rs:41:63 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe fn parse_environment(environment_block: *const winapi::c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 6 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_void`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 41 - unsafe fn parse_environment(environment_block: *const winapi::c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] 41 + unsafe fn parse_environment(environment_block: *const c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in crate `winapi` [INFO] [stdout] --> src/main.rs:41:63 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe fn parse_environment(environment_block: *const winapi::c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 6 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] help: if you import `c_void`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 41 - unsafe fn parse_environment(environment_block: *const winapi::c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] 41 + unsafe fn parse_environment(environment_block: *const c_void) -> Vec<(OsString, OsString)> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_READ` in crate `winapi` [INFO] [stdout] --> src/main.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(GetCurrentProcess(), winapi::TOKEN_READ, &mut token) == 0 { [INFO] [stdout] | ^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in crate `winapi` [INFO] [stdout] --> src/main.rs:76:74 [INFO] [stdout] | [INFO] [stdout] 76 | if CreateEnvironmentBlock(&mut environment_block, token, winapi::FALSE) == 0 { [INFO] [stdout] | ^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 76 | if CreateEnvironmentBlock(&mut environment_block, token, winapi::false) == 0 { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_READ` in crate `winapi` [INFO] [stdout] --> src/main.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(GetCurrentProcess(), winapi::TOKEN_READ, &mut token) == 0 { [INFO] [stdout] | ^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in crate `winapi` [INFO] [stdout] --> src/main.rs:76:74 [INFO] [stdout] | [INFO] [stdout] 76 | if CreateEnvironmentBlock(&mut environment_block, token, winapi::FALSE) == 0 { [INFO] [stdout] | ^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 76 | if CreateEnvironmentBlock(&mut environment_block, token, winapi::false) == 0 { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | OsString::from_wide(slice) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/ffi/os_str.rs:141:5 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 38 | OsString::from_iter(slice) [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | OsString::from_wide(slice) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/ffi/os_str.rs:141:5 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 38 | OsString::from_iter(slice) [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | Err(err) => die(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | Err(err) => die(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | Err(err) => die(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | Err(err) => die(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `with-clean-env` (bin "with-clean-env") due to 9 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `with-clean-env` (bin "with-clean-env" test) due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a22ee7ac0ee45bf2e2efe53449789f0ec8ac7a4395c6925b7ce70ec510fb78e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a22ee7ac0ee45bf2e2efe53449789f0ec8ac7a4395c6925b7ce70ec510fb78e5", kill_on_drop: false }` [INFO] [stdout] a22ee7ac0ee45bf2e2efe53449789f0ec8ac7a4395c6925b7ce70ec510fb78e5