[INFO] updating cached repository https://github.com/HotelCalifornia/er [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] fd3ae152e4f50e5cb681772ed4d519f372ab54b5 [INFO] checking HotelCalifornia/er against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHotelCalifornia%2Fer" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HotelCalifornia/er on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/HotelCalifornia/er [INFO] finished tweaking git repo https://github.com/HotelCalifornia/er [INFO] tweaked toml for git repo https://github.com/HotelCalifornia/er written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/HotelCalifornia/er already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 97ce9775a9f1a32547b916a99cbb6da924e973d89c8f1a1d34fdf8bf93e1ca64 [INFO] running `"docker" "start" "-a" "97ce9775a9f1a32547b916a99cbb6da924e973d89c8f1a1d34fdf8bf93e1ca64"` [INFO] [stderr] Checking er v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::shared::basetsd::{DWORD_PTR, PSIZE_T, SIZE_T}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use winapi::shared::minwindef::{BOOL, DWORD, LPCVOID, LPDWORD, LPVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use winapi::um::consoleapi::CreatePseudoConsole; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::um::fileapi::WriteFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::um::minwinbase::{LPSECURITY_ATTRIBUTES, LPOVERLAPPED}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::um::namedpipeapi::CreatePipe; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::wincon::{GetConsoleScreenBufferInfo, PCONSOLE_SCREEN_BUFFER_INFO}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::um::wincontypes::{COORD, HPCON}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::um::winnt::{HANDLE, LPCWSTR, LPWSTR, PHANDLE, PVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/win/mod.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{DWORD, LPCVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::um::winbase::{STD_ERROR_HANDLE, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::um::winnt::{HANDLE, PHANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | use winapi::um::minwinbase::SECURITY_ATTRIBUTES; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:65:30 [INFO] [stderr] | [INFO] [stderr] 65 | fn get_std_handle(handle_id: winapi::shared::minwindef::DWORD) -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::shared::basetsd::{DWORD_PTR, PSIZE_T, SIZE_T}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use winapi::shared::minwindef::{BOOL, DWORD, LPCVOID, LPDWORD, LPVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use winapi::um::consoleapi::CreatePseudoConsole; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::um::fileapi::WriteFile; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::um::handleapi::CloseHandle; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::um::minwinbase::{LPSECURITY_ATTRIBUTES, LPOVERLAPPED}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::um::namedpipeapi::CreatePipe; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::um::processthreadsapi::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::wincon::{GetConsoleScreenBufferInfo, PCONSOLE_SCREEN_BUFFER_INFO}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use winapi::um::wincontypes::{COORD, HPCON}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/win/api.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use winapi::um::winnt::{HANDLE, LPCWSTR, LPWSTR, PHANDLE, PVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/win/mod.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::shared::minwindef::{DWORD, LPCVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::um::winbase::{STD_ERROR_HANDLE, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::um::winnt::{HANDLE, PHANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | use winapi::um::minwinbase::SECURITY_ATTRIBUTES; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:65:30 [INFO] [stderr] | [INFO] [stderr] 65 | fn get_std_handle(handle_id: winapi::shared::minwindef::DWORD) -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:66:35 [INFO] [stderr] | [INFO] [stderr] 66 | let handle: HANDLE = unsafe { winapi::um::processenv::GetStdHandle(handle_id) }; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | winapi::um::handleapi::INVALID_HANDLE_VALUE => Err("Failed to get handle!".into()), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:104:29 [INFO] [stderr] | [INFO] [stderr] 104 | let mut write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:105:33 [INFO] [stderr] | [INFO] [stderr] 105 | let mut pty_write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:106:28 [INFO] [stderr] | [INFO] [stderr] 106 | let mut read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:107:32 [INFO] [stderr] | [INFO] [stderr] 107 | let mut pty_read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:117:33 [INFO] [stderr] | [INFO] [stderr] 117 | fn get_console_size() -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:118:27 [INFO] [stderr] | [INFO] [stderr] 118 | let mut console_size: winapi::um::wincontypes::COORD = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:119:29 [INFO] [stderr] | [INFO] [stderr] 119 | let mut console_sb_inf: winapi::um::wincon::CONSOLE_SCREEN_BUFFER_INFO = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:130:14 [INFO] [stderr] | [INFO] [stderr] 130 | pc: *mut winapi::um::wincontypes::HPCON, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:66:35 [INFO] [stderr] | [INFO] [stderr] 66 | let handle: HANDLE = unsafe { winapi::um::processenv::GetStdHandle(handle_id) }; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | winapi::um::handleapi::INVALID_HANDLE_VALUE => Err("Failed to get handle!".into()), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:104:29 [INFO] [stderr] | [INFO] [stderr] 104 | let mut write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:105:33 [INFO] [stderr] | [INFO] [stderr] 105 | let mut pty_write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:106:28 [INFO] [stderr] | [INFO] [stderr] 106 | let mut read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:137:18 [INFO] [stderr] | [INFO] [stderr] 137 | if fds[3] == winapi::um::handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:140:18 [INFO] [stderr] | [INFO] [stderr] 140 | if fds[2] == winapi::um::handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:148:9 [INFO] [stderr] | [INFO] [stderr] 148 | pc: winapi::um::wincontypes::HPCON, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:149:13 [INFO] [stderr] | [INFO] [stderr] 149 | ) -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:150:17 [INFO] [stderr] | [INFO] [stderr] 150 | let mut si: winapi::um::winbase::STARTUPINFOEXW = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:151:45 [INFO] [stderr] | [INFO] [stderr] 151 | si.StartupInfo.cb = std::mem::size_of::() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:161:36 [INFO] [stderr] | [INFO] [stderr] 161 | si.lpAttributeList = a_list as winapi::um::processthreadsapi::LPPROC_THREAD_ATTRIBUTE_LIST; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:65:74 [INFO] [stderr] | [INFO] [stderr] 65 | fn get_std_handle(handle_id: winapi::shared::minwindef::DWORD) -> Result> { [INFO] [stderr] | - ^^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:66:17 [INFO] [stderr] | [INFO] [stderr] 66 | let handle: HANDLE = unsafe { winapi::um::processenv::GetStdHandle(handle_id) }; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:103:34 [INFO] [stderr] | [INFO] [stderr] 103 | fn create_pty_pipes() -> Result<[HANDLE; 4], Box> { [INFO] [stderr] | - ^^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:107:32 [INFO] [stderr] | [INFO] [stderr] 107 | let mut pty_read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:104:20 [INFO] [stderr] | [INFO] [stderr] 104 | let mut write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:105:24 [INFO] [stderr] | [INFO] [stderr] 105 | let mut pty_write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:106:19 [INFO] [stderr] | [INFO] [stderr] 106 | let mut read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:107:23 [INFO] [stderr] | [INFO] [stderr] 107 | let mut pty_read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SECURITY_ATTRIBUTES` in this scope [INFO] [stderr] --> src/main.rs:109:19 [INFO] [stderr] | [INFO] [stderr] 109 | let mut attr: SECURITY_ATTRIBUTES = Default::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pipe` in module `win::api` [INFO] [stderr] --> src/main.rs:111:15 [INFO] [stderr] | [INFO] [stderr] 111 | win::api::create_pipe(&mut pty_write, &mut read, &mut attr, 0)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pipe` in module `win::api` [INFO] [stderr] --> src/main.rs:112:15 [INFO] [stderr] | [INFO] [stderr] 112 | win::api::create_pipe(&mut write, &mut pty_read, &mut attr, 0)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_console_screen_buffer_info` in module `win::api` [INFO] [stderr] --> src/main.rs:121:15 [INFO] [stderr] | [INFO] [stderr] 121 | win::api::get_console_screen_buffer_info(get_std_handle(STD_OUTPUT_HANDLE)?, &mut console_sb_inf)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `STD_OUTPUT_HANDLE` in this scope [INFO] [stderr] --> src/main.rs:121:61 [INFO] [stderr] | [INFO] [stderr] 121 | win::api::get_console_screen_buffer_info(get_std_handle(STD_OUTPUT_HANDLE)?, &mut console_sb_inf)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:131:14 [INFO] [stderr] | [INFO] [stderr] 129 | fn create_pseudoconsole_and_pipes( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 130 | pc: *mut winapi::um::wincontypes::HPCON, [INFO] [stderr] 131 | ) -> Result<[HANDLE; 2], Box> { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pseudoconsole` in module `win::api` [INFO] [stderr] --> src/main.rs:135:15 [INFO] [stderr] | [INFO] [stderr] 135 | win::api::create_pseudoconsole(console_size, fds[2], fds[3], 0, pc)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `close_handle` in module `win::api` [INFO] [stderr] --> src/main.rs:138:19 [INFO] [stderr] | [INFO] [stderr] 138 | win::api::close_handle(fds[3])?; [INFO] [stderr] | ^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `close_handle` in module `win::api` [INFO] [stderr] --> src/main.rs:141:19 [INFO] [stderr] | [INFO] [stderr] 141 | win::api::close_handle(fds[2])?; [INFO] [stderr] | ^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `init_proc_thread_attr_list` in module `win::api` [INFO] [stderr] --> src/main.rs:156:15 [INFO] [stderr] | [INFO] [stderr] 156 | win::api::init_proc_thread_attr_list(std::ptr::null_mut(), 1, 0, &mut bytes)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_proc_thread_attr` in module `win::api` [INFO] [stderr] --> src/main.rs:164:15 [INFO] [stderr] | [INFO] [stderr] 164 | win::api::update_proc_thread_attr( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:117:33 [INFO] [stderr] | [INFO] [stderr] 117 | fn get_console_size() -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:118:27 [INFO] [stderr] | [INFO] [stderr] 118 | let mut console_size: winapi::um::wincontypes::COORD = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:119:29 [INFO] [stderr] | [INFO] [stderr] 119 | let mut console_sb_inf: winapi::um::wincon::CONSOLE_SCREEN_BUFFER_INFO = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:130:14 [INFO] [stderr] | [INFO] [stderr] 130 | pc: *mut winapi::um::wincontypes::HPCON, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:137:18 [INFO] [stderr] | [INFO] [stderr] 137 | if fds[3] == winapi::um::handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:140:18 [INFO] [stderr] | [INFO] [stderr] 140 | if fds[2] == winapi::um::handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:148:9 [INFO] [stderr] | [INFO] [stderr] 148 | pc: winapi::um::wincontypes::HPCON, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:149:13 [INFO] [stderr] | [INFO] [stderr] 149 | ) -> Result> { [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:150:17 [INFO] [stderr] | [INFO] [stderr] 150 | let mut si: winapi::um::winbase::STARTUPINFOEXW = Default::default(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:151:45 [INFO] [stderr] | [INFO] [stderr] 151 | si.StartupInfo.cb = std::mem::size_of::() [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/main.rs:161:36 [INFO] [stderr] | [INFO] [stderr] 161 | si.lpAttributeList = a_list as winapi::um::processthreadsapi::LPPROC_THREAD_ATTRIBUTE_LIST; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:65:74 [INFO] [stderr] | [INFO] [stderr] 65 | fn get_std_handle(handle_id: winapi::shared::minwindef::DWORD) -> Result> { [INFO] [stderr] | - ^^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:66:17 [INFO] [stderr] | [INFO] [stderr] 66 | let handle: HANDLE = unsafe { winapi::um::processenv::GetStdHandle(handle_id) }; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:103:34 [INFO] [stderr] | [INFO] [stderr] 103 | fn create_pty_pipes() -> Result<[HANDLE; 4], Box> { [INFO] [stderr] | - ^^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:104:20 [INFO] [stderr] | [INFO] [stderr] 104 | let mut write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:105:24 [INFO] [stderr] | [INFO] [stderr] 105 | let mut pty_write: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:106:19 [INFO] [stderr] | [INFO] [stderr] 106 | let mut read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:107:23 [INFO] [stderr] | [INFO] [stderr] 107 | let mut pty_read: HANDLE = winapi::um::handleapi::INVALID_HANDLE_VALUE; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SECURITY_ATTRIBUTES` in this scope [INFO] [stderr] --> src/main.rs:109:19 [INFO] [stderr] | [INFO] [stderr] 109 | let mut attr: SECURITY_ATTRIBUTES = Default::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pipe` in module `win::api` [INFO] [stderr] --> src/main.rs:111:15 [INFO] [stderr] | [INFO] [stderr] 111 | win::api::create_pipe(&mut pty_write, &mut read, &mut attr, 0)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pipe` in module `win::api` [INFO] [stderr] --> src/main.rs:112:15 [INFO] [stderr] | [INFO] [stderr] 112 | win::api::create_pipe(&mut write, &mut pty_read, &mut attr, 0)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_console_screen_buffer_info` in module `win::api` [INFO] [stderr] --> src/main.rs:121:15 [INFO] [stderr] | [INFO] [stderr] 121 | win::api::get_console_screen_buffer_info(get_std_handle(STD_OUTPUT_HANDLE)?, &mut console_sb_inf)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `STD_OUTPUT_HANDLE` in this scope [INFO] [stderr] --> src/main.rs:121:61 [INFO] [stderr] | [INFO] [stderr] 121 | win::api::get_console_screen_buffer_info(get_std_handle(STD_OUTPUT_HANDLE)?, &mut console_sb_inf)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:131:14 [INFO] [stderr] | [INFO] [stderr] 129 | fn create_pseudoconsole_and_pipes( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 130 | pc: *mut winapi::um::wincontypes::HPCON, [INFO] [stderr] 131 | ) -> Result<[HANDLE; 2], Box> { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `create_pseudoconsole` in module `win::api` [INFO] [stderr] --> src/main.rs:135:15 [INFO] [stderr] | [INFO] [stderr] 135 | win::api::create_pseudoconsole(console_size, fds[2], fds[3], 0, pc)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `close_handle` in module `win::api` [INFO] [stderr] --> src/main.rs:138:19 [INFO] [stderr] | [INFO] [stderr] 138 | win::api::close_handle(fds[3])?; [INFO] [stderr] | ^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `close_handle` in module `win::api` [INFO] [stderr] --> src/main.rs:141:19 [INFO] [stderr] | [INFO] [stderr] 141 | win::api::close_handle(fds[2])?; [INFO] [stderr] | ^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `init_proc_thread_attr_list` in module `win::api` [INFO] [stderr] --> src/main.rs:156:15 [INFO] [stderr] | [INFO] [stderr] 156 | win::api::init_proc_thread_attr_list(std::ptr::null_mut(), 1, 0, &mut bytes)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_proc_thread_attr` in module `win::api` [INFO] [stderr] --> src/main.rs:164:15 [INFO] [stderr] | [INFO] [stderr] 164 | win::api::update_proc_thread_attr( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `win::api` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/win/mod.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | .encode_wide() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error: aborting due to 53 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/win/mod.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | .encode_wide() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error: aborting due to 53 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `er`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `er`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "97ce9775a9f1a32547b916a99cbb6da924e973d89c8f1a1d34fdf8bf93e1ca64"` [INFO] running `"docker" "rm" "-f" "97ce9775a9f1a32547b916a99cbb6da924e973d89c8f1a1d34fdf8bf93e1ca64"` [INFO] [stdout] 97ce9775a9f1a32547b916a99cbb6da924e973d89c8f1a1d34fdf8bf93e1ca64