[INFO] cloning repository https://github.com/Laegluin/elev [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Laegluin/elev" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaegluin%2Felev", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaegluin%2Felev'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 87c0ff6ff95a32495dbc4808cb72a2dfb902ed40 [INFO] checking Laegluin/elev/87c0ff6ff95a32495dbc4808cb72a2dfb902ed40 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaegluin%2Felev" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Laegluin/elev 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/Laegluin/elev [INFO] finished tweaking git repo https://github.com/Laegluin/elev [INFO] tweaked toml for git repo https://github.com/Laegluin/elev written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Laegluin/elev 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termcolor v1.0.4 [INFO] [stderr] Downloaded winreg v0.4.0 [INFO] [stderr] Downloaded winapi-util v0.1.1 [INFO] [stderr] Downloaded block-buffer v0.7.0 [INFO] [stderr] Downloaded embed-resource v1.1.4 [INFO] [stderr] Downloaded advapi32-sys v0.2.0 [INFO] [stderr] Downloaded opaque-debug v0.2.1 [INFO] [stderr] Downloaded redox_syscall v0.1.42 [INFO] [stderr] Downloaded byte-tools v0.3.0 [INFO] [stderr] Downloaded libc v0.2.44 [INFO] [stderr] Downloaded block-padding v0.1.2 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e10cad6233c571e68f05cb4d8b684fce9b8784ed4a2870f2f9de81d0f5920093 [INFO] running `Command { std: "docker" "start" "-a" "e10cad6233c571e68f05cb4d8b684fce9b8784ed4a2870f2f9de81d0f5920093", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e10cad6233c571e68f05cb4d8b684fce9b8784ed4a2870f2f9de81d0f5920093", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e10cad6233c571e68f05cb4d8b684fce9b8784ed4a2870f2f9de81d0f5920093", kill_on_drop: false }` [INFO] [stdout] e10cad6233c571e68f05cb4d8b684fce9b8784ed4a2870f2f9de81d0f5920093 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ccddc80ee3d325285c9fe0031143517201b027a4d209caa3a347d1d065eb5e2 [INFO] running `Command { std: "docker" "start" "-a" "8ccddc80ee3d325285c9fe0031143517201b027a4d209caa3a347d1d065eb5e2", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Checking byte-tools v0.3.0 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Compiling winapi v0.3.6 [INFO] [stderr] Compiling embed-resource v1.1.4 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking opaque-debug v0.2.1 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking termcolor v1.0.4 [INFO] [stderr] Checking block-padding v0.1.2 [INFO] [stderr] Compiling elev v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking generic-array v0.12.0 [INFO] [stderr] Checking block-buffer v0.7.0 [INFO] [stderr] Checking digest v0.8.0 [INFO] [stderr] Checking sha2 v0.8.0 [INFO] [stdout] error: this crate only supports windows [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | compile_error!("this crate only supports windows"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this crate only supports windows [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | compile_error!("this crate only supports windows"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/lib.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::windows::ffi::OsStrExt; [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/lib.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::windows::ffi::OsStrExt; [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 `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::minwindef::FALSE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::minwindef::FALSE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::ntdef::NULL; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::ntdef::NULL; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::shared::winerror::{E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::combaseapi::{CoInitializeEx, CoUninitialize}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::shared::winerror::{E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::combaseapi::{CoInitializeEx, CoUninitialize}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::objbase::{COINIT_APARTMENTTHREADED, COINIT_DISABLE_OLE1DDE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::objbase::{COINIT_APARTMENTTHREADED, COINIT_DISABLE_OLE1DDE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::processthreadsapi::GetExitCodeProcess; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::processthreadsapi::GetExitCodeProcess; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::shellapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::shellapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::synchapi::WaitForSingleObject; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::um::winbase::{INFINITE, WAIT_FAILED}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::synchapi::WaitForSingleObject; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | use winapi::um::winbase::{INFINITE, WAIT_FAILED}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | use winapi::um::winuser::SW_HIDE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | use winapi::um::winuser::SW_HIDE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/lib.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | string.encode_wide().collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stdout] --> src/lib.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | string.encode_wide().collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/lib.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | let arg: Vec<_> = arg.encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stdout] --> src/lib.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | let arg: Vec<_> = arg.encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `elev` (lib) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `elev` (lib test) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "8ccddc80ee3d325285c9fe0031143517201b027a4d209caa3a347d1d065eb5e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ccddc80ee3d325285c9fe0031143517201b027a4d209caa3a347d1d065eb5e2", kill_on_drop: false }` [INFO] [stdout] 8ccddc80ee3d325285c9fe0031143517201b027a4d209caa3a347d1d065eb5e2