[INFO] updating cached repository https://github.com/andrewhickman/rdp-users [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] [stderr] From https://github.com/andrewhickman/rdp-users [INFO] [stderr] a1bee75..af8e53b master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af8e53b5d91002529171016517859420e314f29f [INFO] checking andrewhickman/rdp-users against try#5fdfba63a96c5e8ae0ebf6b8b66853110277087d for pr-73166 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewhickman%2Frdp-users" "/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/andrewhickman/rdp-users on toolchain 5fdfba63a96c5e8ae0ebf6b8b66853110277087d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5fdfba63a96c5e8ae0ebf6b8b66853110277087d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andrewhickman/rdp-users [INFO] finished tweaking git repo https://github.com/andrewhickman/rdp-users [INFO] tweaked toml for git repo https://github.com/andrewhickman/rdp-users written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/andrewhickman/rdp-users already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5fdfba63a96c5e8ae0ebf6b8b66853110277087d" "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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5fdfba63a96c5e8ae0ebf6b8b66853110277087d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fa5230deb82feecef4bd087a3f2ea734f53e44d7f841e08a06e34cabb1bc8d5 [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" "9fa5230deb82feecef4bd087a3f2ea734f53e44d7f841e08a06e34cabb1bc8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fa5230deb82feecef4bd087a3f2ea734f53e44d7f841e08a06e34cabb1bc8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fa5230deb82feecef4bd087a3f2ea734f53e44d7f841e08a06e34cabb1bc8d5", kill_on_drop: false }` [INFO] [stdout] 9fa5230deb82feecef4bd087a3f2ea734f53e44d7f841e08a06e34cabb1bc8d5 [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" "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5fdfba63a96c5e8ae0ebf6b8b66853110277087d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b9972f9c468aeb9d7ea6cd443e83a406a84a5bc32c8d218bc7fae33610c7007 [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" "6b9972f9c468aeb9d7ea6cd443e83a406a84a5bc32c8d218bc7fae33610c7007", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling libc v0.2.72 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.3 [INFO] [stderr] Compiling proc-macro-error v1.0.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling structopt-derive v0.4.8 [INFO] [stderr] Checking structopt v0.3.15 [INFO] [stderr] Checking rdp-users v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/rdp.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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/rdp.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::{HANDLE, PVOID}; [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/service.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | 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/service.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::GENERIC_READ; [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/service.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winsvc::{ [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/sys.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{BOOL, 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/sys.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::ntdef::{HANDLE, LPWSTR, PVOID}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::{OsStrExt, OsStringExt}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::ntdef::LPWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/rdp.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | handle: HANDLE, [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/rdp.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | count: 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/rdp.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 32 | impl RdpServer { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 45 | let mut count: MaybeUninit = MaybeUninit::uninit(); [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/rdp.rs:124:32 [INFO] [stdout] | [INFO] [stdout] 124 | fn new(ptr: *mut T, count: DWORD) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/rdp.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | sys::WTSFreeMemory(self.ptr as PVOID); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SC_HANDLE` in this scope [INFO] [stdout] --> src/service.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | handle: SC_HANDLE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SC_HANDLE` in this scope [INFO] [stdout] --> src/service.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | handle: SC_HANDLE, [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/service.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | state: 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/service.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | process_id: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope [INFO] [stdout] --> src/service.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = OpenSCManagerW(machine_name.as_ptr(), ptr::null(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/service.rs:35:77 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = OpenSCManagerW(machine_name.as_ptr(), ptr::null(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope [INFO] [stdout] --> src/service.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | let handle = OpenServiceW(self.handle, service_name.as_ptr(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/service.rs:47:75 [INFO] [stdout] | [INFO] [stdout] 47 | let handle = OpenServiceW(self.handle, service_name.as_ptr(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SERVICE_STATUS_PROCESS` in this scope [INFO] [stdout] --> src/service.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 60 | let mut status: MaybeUninit = MaybeUninit::uninit(); [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/service.rs:61:47 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | let mut bytes_needed: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryServiceStatusEx` in this scope [INFO] [stdout] --> src/service.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | if QueryServiceStatusEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_STATUS_PROCESS_INFO` in this scope [INFO] [stdout] --> src/service.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | SC_STATUS_PROCESS_INFO, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SERVICE_STATUS_PROCESS` in this scope [INFO] [stdout] --> src/service.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 67 | size_of::() 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/service.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope [INFO] [stdout] --> src/service.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if CloseServiceHandle(self.handle) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope [INFO] [stdout] --> src/service.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if CloseServiceHandle(self.handle) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn WTSOpenServerW(pServerName: LPWSTR) -> HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:7:51 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn WTSOpenServerW(pServerName: LPWSTR) -> HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn WTSCloseServer(hServer: HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | hServer: HANDLE, [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/sys.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pLevel: *mut 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/sys.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Filter: 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/sys.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pCount: *mut DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/sys.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | ) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/sys.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn WTSFreeMemory(pMemory: PVOID); [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/sys.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub ExecEnvId: 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/sys.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | pub SessionId: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | pub pSessionName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub pHostName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | pub pUserName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub pDomainName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | pub pFarmName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/util.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | pub unsafe fn decode_null_terminated_string(ptr: LPWSTR) -> Option { [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/rdp.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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/rdp.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::{HANDLE, PVOID}; [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/service.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | 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/service.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::GENERIC_READ; [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/service.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winsvc::{ [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/sys.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::minwindef::{BOOL, 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/sys.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::ntdef::{HANDLE, LPWSTR, PVOID}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::{OsStrExt, OsStringExt}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::ntdef::LPWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/rdp.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | handle: HANDLE, [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/rdp.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | count: 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/rdp.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 32 | impl RdpServer { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 45 | let mut count: MaybeUninit = MaybeUninit::uninit(); [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/rdp.rs:124:32 [INFO] [stdout] | [INFO] [stdout] 124 | fn new(ptr: *mut T, count: DWORD) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/rdp.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | sys::WTSFreeMemory(self.ptr as PVOID); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SC_HANDLE` in this scope [INFO] [stdout] --> src/service.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | handle: SC_HANDLE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SC_HANDLE` in this scope [INFO] [stdout] --> src/service.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | handle: SC_HANDLE, [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/service.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | state: 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/service.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | process_id: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope [INFO] [stdout] --> src/service.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = OpenSCManagerW(machine_name.as_ptr(), ptr::null(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/service.rs:35:77 [INFO] [stdout] | [INFO] [stdout] 35 | let handle = OpenSCManagerW(machine_name.as_ptr(), ptr::null(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope [INFO] [stdout] --> src/service.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | let handle = OpenServiceW(self.handle, service_name.as_ptr(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/service.rs:47:75 [INFO] [stdout] | [INFO] [stdout] 47 | let handle = OpenServiceW(self.handle, service_name.as_ptr(), GENERIC_READ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SERVICE_STATUS_PROCESS` in this scope [INFO] [stdout] --> src/service.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 60 | let mut status: MaybeUninit = MaybeUninit::uninit(); [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/service.rs:61:47 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | let mut bytes_needed: MaybeUninit = MaybeUninit::uninit(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryServiceStatusEx` in this scope [INFO] [stdout] --> src/service.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | if QueryServiceStatusEx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_STATUS_PROCESS_INFO` in this scope [INFO] [stdout] --> src/service.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | SC_STATUS_PROCESS_INFO, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SERVICE_STATUS_PROCESS` in this scope [INFO] [stdout] --> src/service.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 57 | impl Service { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 67 | size_of::() 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/service.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | size_of::() as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope [INFO] [stdout] --> src/service.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if CloseServiceHandle(self.handle) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope [INFO] [stdout] --> src/service.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | if CloseServiceHandle(self.handle) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn WTSOpenServerW(pServerName: LPWSTR) -> HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:7:51 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn WTSOpenServerW(pServerName: LPWSTR) -> HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn WTSCloseServer(hServer: HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/sys.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | hServer: HANDLE, [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/sys.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pLevel: *mut 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/sys.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Filter: 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/sys.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pCount: *mut DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/sys.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | ) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/sys.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn WTSFreeMemory(pMemory: PVOID); [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/sys.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub ExecEnvId: 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/sys.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | pub SessionId: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | pub pSessionName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub pHostName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | pub pUserName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub pDomainName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/sys.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | pub pFarmName: LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/util.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | pub unsafe fn decode_null_terminated_string(ptr: LPWSTR) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stdout] --> src/util.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | string.encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stdout] --> src/util.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | Some(OsString::from_wide(slice::from_raw_parts(ptr, len))) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rdp-users`. [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stdout] --> src/util.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | string.encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stdout] --> src/util.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | Some(OsString::from_wide(slice::from_raw_parts(ptr, len))) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6b9972f9c468aeb9d7ea6cd443e83a406a84a5bc32c8d218bc7fae33610c7007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b9972f9c468aeb9d7ea6cd443e83a406a84a5bc32c8d218bc7fae33610c7007", kill_on_drop: false }` [INFO] [stdout] 6b9972f9c468aeb9d7ea6cd443e83a406a84a5bc32c8d218bc7fae33610c7007