[INFO] cloning repository https://github.com/paulotten/r_small_snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paulotten/r_small_snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaulotten%2Fr_small_snake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaulotten%2Fr_small_snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c29b55645308031b18a0340796ed6fbc41bb8e01 [INFO] checking paulotten/r_small_snake against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaulotten%2Fr_small_snake" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/paulotten/r_small_snake on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/paulotten/r_small_snake [INFO] finished tweaking git repo https://github.com/paulotten/r_small_snake [INFO] tweaked toml for git repo https://github.com/paulotten/r_small_snake written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/paulotten/r_small_snake already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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" "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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a65358c78ce40a4e8e930af9bd1d39aff4fa61183f97400de74a6327cf9416b2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a65358c78ce40a4e8e930af9bd1d39aff4fa61183f97400de74a6327cf9416b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a65358c78ce40a4e8e930af9bd1d39aff4fa61183f97400de74a6327cf9416b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a65358c78ce40a4e8e930af9bd1d39aff4fa61183f97400de74a6327cf9416b2", kill_on_drop: false }` [INFO] [stdout] a65358c78ce40a4e8e930af9bd1d39aff4fa61183f97400de74a6327cf9416b2 [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6295c0845624c022e98f90b89b6e7cdbe471721a9996286f5eead3f4c1da242f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6295c0845624c022e98f90b89b6e7cdbe471721a9996286f5eead3f4c1da242f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking r_small_snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> examples/no_std_printf.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `r_small_snake` [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] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/console.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::DWORD; [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/console.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::ntdef::VOID; [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/console.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::wincontypes::INPUT_RECORD; [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/console.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::wincontypes::KEY_EVENT; [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/console.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::wincontypes::KEY_EVENT_RECORD; [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/console.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::wincontypes::INPUT_RECORD_Event; [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/thread.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::DWORD; [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/console.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_INPUT_HANDLE) }; [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/console.rs:22:67 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_INPUT_HANDLE) }; [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/console.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | winapi::um::consoleapi::GetConsoleMode(stdin, mode_ptr); [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/console.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | winapi::um::consoleapi::SetConsoleMode( [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/console.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | & !(winapi::um::wincon::ENABLE_LINE_INPUT [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/console.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | | winapi::um::wincon::ENABLE_ECHO_INPUT), [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/console.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | winapi::um::consoleapi::PeekConsoleInputA( [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/console.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | winapi::um::consoleapi::ReadConsoleInputA( [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/console.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE) }; [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/console.rs:106:67 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE) }; [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/console.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | winapi::um::consoleapi::GetConsoleMode(stdout, mode_ptr); [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/console.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | winapi::um::consoleapi::SetConsoleMode( [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/console.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | mode | winapi::um::wincon::ENABLE_VIRTUAL_TERMINAL_PROCESSING, [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/console.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | winapi::um::consoleapi::WriteConsoleA( [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/thread.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | winapi::um::synchapi::Sleep(milliseconds as DWORD); [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | stdin: *mut VOID [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | stdout: *mut VOID [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | let mut mode: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | let mode_ptr: *mut DWORD = &mut mode; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | let mut input_record: INPUT_RECORD = INPUT_RECORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | let mut input_record: INPUT_RECORD = INPUT_RECORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | let input_record_ptr: *mut INPUT_RECORD = &mut input_record; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut read: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | let read_ptr: *mut DWORD = &mut read; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KEY_EVENT` in this scope [INFO] [stdout] --> src/console.rs:64:42 [INFO] [stdout] | [INFO] [stdout] 64 | if input_record.EventType != KEY_EVENT { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KEY_EVENT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:69:35 [INFO] [stdout] | [INFO] [stdout] 69 | ... let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.Event) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD_Event` in this scope [INFO] [stdout] --> src/console.rs:69:86 [INFO] [stdout] | [INFO] [stdout] 18 | impl Reader { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 69 | let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.E... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KEY_EVENT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:69:106 [INFO] [stdout] | [INFO] [stdout] 18 | impl Reader { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 69 | let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.E... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | let mut input: INPUT_RECORD = unsafe { core::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | let input_ptr: *mut INPUT_RECORD = &mut input; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | let mut read: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | let read_ptr: *mut DWORD = &mut read; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let mut mode: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | let mode_ptr: *mut DWORD = &mut mode; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | text.as_ptr() as *const VOID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 128 | text.len() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:129:27 [INFO] [stdout] | [INFO] [stdout] 129 | 0 as *mut DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:130:27 [INFO] [stdout] | [INFO] [stdout] 130 | 0 as *mut VOID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/thread.rs:7:53 [INFO] [stdout] | [INFO] [stdout] 7 | winapi::um::synchapi::Sleep(milliseconds as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/console.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::DWORD; [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/console.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::ntdef::VOID; [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/console.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::wincontypes::INPUT_RECORD; [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/console.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::wincontypes::KEY_EVENT; [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/console.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::wincontypes::KEY_EVENT_RECORD; [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/console.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::wincontypes::INPUT_RECORD_Event; [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/thread.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::DWORD; [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/console.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_INPUT_HANDLE) }; [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/console.rs:22:67 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_INPUT_HANDLE) }; [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/console.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | winapi::um::consoleapi::GetConsoleMode(stdin, mode_ptr); [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/console.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | winapi::um::consoleapi::SetConsoleMode( [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/console.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | & !(winapi::um::wincon::ENABLE_LINE_INPUT [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/console.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | | winapi::um::wincon::ENABLE_ECHO_INPUT), [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/console.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | winapi::um::consoleapi::PeekConsoleInputA( [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/console.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | winapi::um::consoleapi::ReadConsoleInputA( [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | fn panic(_info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `winapi` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e3026a7ea720d3a3.rlib [INFO] [stdout] = note: second definition in the local crate (`r_small_snake`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/console.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE) }; [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/console.rs:106:67 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe { winapi::um::processenv::GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE) }; [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/console.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | winapi::um::consoleapi::GetConsoleMode(stdout, mode_ptr); [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/console.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | winapi::um::consoleapi::SetConsoleMode( [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/console.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | mode | winapi::um::wincon::ENABLE_VIRTUAL_TERMINAL_PROCESSING, [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/console.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | winapi::um::consoleapi::WriteConsoleA( [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/thread.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | winapi::um::synchapi::Sleep(milliseconds as DWORD); [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | stdin: *mut VOID [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | stdout: *mut VOID [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | let mut mode: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | let mode_ptr: *mut DWORD = &mut mode; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | let mut input_record: INPUT_RECORD = INPUT_RECORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | let mut input_record: INPUT_RECORD = INPUT_RECORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | let input_record_ptr: *mut INPUT_RECORD = &mut input_record; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut read: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | let read_ptr: *mut DWORD = &mut read; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KEY_EVENT` in this scope [INFO] [stdout] --> src/console.rs:64:42 [INFO] [stdout] | [INFO] [stdout] 64 | if input_record.EventType != KEY_EVENT { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KEY_EVENT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:69:35 [INFO] [stdout] | [INFO] [stdout] 69 | ... let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.Event) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD_Event` in this scope [INFO] [stdout] --> src/console.rs:69:86 [INFO] [stdout] | [INFO] [stdout] 18 | impl Reader { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 69 | let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.E... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KEY_EVENT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:69:106 [INFO] [stdout] | [INFO] [stdout] 18 | impl Reader { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 69 | let key_event_recort: KEY_EVENT_RECORD = unsafe { core::mem::transmute::(input_record.E... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | let mut input: INPUT_RECORD = unsafe { core::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `INPUT_RECORD` in this scope [INFO] [stdout] --> src/console.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | let input_ptr: *mut INPUT_RECORD = &mut input; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | let mut read: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | let read_ptr: *mut DWORD = &mut read; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let mut mode: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | let mode_ptr: *mut DWORD = &mut mode; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | text.as_ptr() as *const VOID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 128 | text.len() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/console.rs:129:27 [INFO] [stdout] | [INFO] [stdout] 129 | 0 as *mut DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VOID` in this scope [INFO] [stdout] --> src/console.rs:130:27 [INFO] [stdout] | [INFO] [stdout] 130 | 0 as *mut VOID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/thread.rs:7:53 [INFO] [stdout] | [INFO] [stdout] 7 | winapi::um::synchapi::Sleep(milliseconds as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | fn panic(_info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `winapi` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e3026a7ea720d3a3.rlib [INFO] [stdout] = note: second definition in the local crate (`r_small_snake`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 47 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 47 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6295c0845624c022e98f90b89b6e7cdbe471721a9996286f5eead3f4c1da242f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6295c0845624c022e98f90b89b6e7cdbe471721a9996286f5eead3f4c1da242f", kill_on_drop: false }` [INFO] [stdout] 6295c0845624c022e98f90b89b6e7cdbe471721a9996286f5eead3f4c1da242f