[INFO] fetching crate wil 0.0.6... [INFO] checking wil-0.0.6 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate wil 0.0.6 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate wil 0.0.6 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 crates.io crate wil 0.0.6 [INFO] finished tweaking crates.io crate wil 0.0.6 [INFO] tweaked toml for crates.io crate wil 0.0.6 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] 23637a1429e196a649bc226453a8a67bd072eca620e256ad93514e8f4bca36d7 [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" "23637a1429e196a649bc226453a8a67bd072eca620e256ad93514e8f4bca36d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23637a1429e196a649bc226453a8a67bd072eca620e256ad93514e8f4bca36d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23637a1429e196a649bc226453a8a67bd072eca620e256ad93514e8f4bca36d7", kill_on_drop: false }` [INFO] [stdout] 23637a1429e196a649bc226453a8a67bd072eca620e256ad93514e8f4bca36d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] 94ec5e8c8f7e4a335699469cd2d0976e3d608e6a0937680e10e5026cb5d97a05 [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" "94ec5e8c8f7e4a335699469cd2d0976e3d608e6a0937680e10e5026cb5d97a05", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking wil v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::handleapi::{CloseHandle, INVALID_HANDLE_VALUE}; [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/token.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winnt::{HANDLE, PHANDLE, PVOID}; [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/token.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::processthreadsapi::{ [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/token.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::securitybaseapi::{DuplicateToken, GetTokenInformation}; [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/token.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winnt::{ [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/token.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::securitybaseapi::{CheckTokenMembership, CreateWellKnownSid}; [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/token.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::winnt::{ [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/token.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::minwindef::{BOOL, DWORD, FALSE, PBOOL, TRUE}; [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/token.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::errhandlingapi::GetLastError; [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/token.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | use winapi::um::winnt::{TokenImpersonation, TokenPrimary}; [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/token.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | use winapi::um::winnt::{TOKEN_DUPLICATE, TOKEN_QUERY, TOKEN_QUERY_SOURCE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/token.rs:206:46 [INFO] [stdout] | [INFO] [stdout] 206 | let token_info_ptr: *mut winapi::ctypes::c_void = [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/token.rs:207:59 [INFO] [stdout] | [INFO] [stdout] 207 | &mut token_info as *mut _ as *mut winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/token.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | h_token: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | h_token: INVALID_HANDLE_VALUE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | if self.h_token != INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/token.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | CloseHandle(self.h_token); [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/token.rs:67:33 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn from_process(handle: HANDLE, mode: DWORD) -> Result { [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/token.rs:67:47 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn from_process(handle: HANDLE, mode: DWORD) -> Result { [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/token.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/token.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(handle, mode, &mut token) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:70:62 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(handle, mode, &mut token) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | let err = GetLastError(); [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/token.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn from_current_process(mode: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/token.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { Self::from_process(GetCurrentProcess(), mode) } [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/token.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | 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/token.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | mode: 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/token.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | open_as_self: BOOL, [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/token.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:93:33 [INFO] [stdout] | [INFO] [stdout] 93 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenThreadToken` in this scope [INFO] [stdout] --> src/token.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | if OpenThreadToken(handle, mode, open_as_self, &mut token) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:95:75 [INFO] [stdout] | [INFO] [stdout] 95 | if OpenThreadToken(handle, mode, open_as_self, &mut token) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let err = GetLastError(); [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/token.rs:106:38 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn from_current_thread(mode: DWORD, open_as_self: BOOL) -> Result { [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/token.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn from_current_thread(mode: DWORD, open_as_self: BOOL) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in this scope [INFO] [stdout] --> src/token.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { Token::from_thread(GetCurrentThread(), mode, open_as_self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn token_type(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | let mut token_type: TOKEN_TYPE = std::mem::zeroed(); [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/token.rs:114:63 [INFO] [stdout] | [INFO] [stdout] 114 | let token_type_ptr = &mut token_type as *mut _ as 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/token.rs:115:38 [INFO] [stdout] | [INFO] [stdout] 115 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:116:44 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 116 | let size = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenType` in this scope [INFO] [stdout] --> src/token.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | TokenType, [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `token_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:126:27 [INFO] [stdout] | [INFO] [stdout] 126 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:139:40 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn duplicate(&self, tokentype: TOKEN_TYPE) -> Result { [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/token.rs:141:32 [INFO] [stdout] | [INFO] [stdout] 141 | let mut dup_token: HANDLE = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHANDLE` in this scope [INFO] [stdout] --> src/token.rs:142:51 [INFO] [stdout] | [INFO] [stdout] 142 | let dup_token_ptr = &mut dup_token as PHANDLE; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateToken` in this scope [INFO] [stdout] --> src/token.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if DuplicateToken(self.h_token, tokentype, dup_token_ptr) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:143:74 [INFO] [stdout] | [INFO] [stdout] 143 | if DuplicateToken(self.h_token, tokentype, dup_token_ptr) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:144:27 [INFO] [stdout] | [INFO] [stdout] 144 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WELL_KNOWN_SID_TYPE` in this scope [INFO] [stdout] --> src/token.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn is_member(&self, known_sid: WELL_KNOWN_SID_TYPE) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECURITY_MAX_SID_SIZE` in this scope [INFO] [stdout] --> src/token.rs:157:43 [INFO] [stdout] | [INFO] [stdout] 157 | let mut admin_sid = vec![0u8; SECURITY_MAX_SID_SIZE]; [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/token.rs:158:59 [INFO] [stdout] | [INFO] [stdout] 158 | let admin_sid_ptr = admin_sid.as_mut_ptr() as PVOID; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECURITY_MAX_SID_SIZE` in this scope [INFO] [stdout] --> src/token.rs:159:61 [INFO] [stdout] | [INFO] [stdout] 159 | let mut sid_size = (std::mem::size_of::() * SECURITY_MAX_SID_SIZE) as DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::handleapi::{CloseHandle, INVALID_HANDLE_VALUE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/token.rs:159:87 [INFO] [stdout] | [INFO] [stdout] 159 | let mut sid_size = (std::mem::size_of::() * SECURITY_MAX_SID_SIZE) 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 `CreateWellKnownSid` in this scope [INFO] [stdout] --> src/token.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | if CreateWellKnownSid(known_sid, null_mut(), admin_sid_ptr, &mut sid_size) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:161:91 [INFO] [stdout] | [INFO] [stdout] 161 | if CreateWellKnownSid(known_sid, null_mut(), admin_sid_ptr, &mut sid_size) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | let err = GetLastError(); [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/token.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 169 | let mut is_member: BOOL = FALSE; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | let mut is_member: BOOL = FALSE; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CheckTokenMembership` in this scope [INFO] [stdout] --> src/token.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | if CheckTokenMembership( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PSID` in this scope [INFO] [stdout] --> src/token.rs:172:43 [INFO] [stdout] | [INFO] [stdout] 172 | admin_sid.as_mut_ptr() as PSID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PBOOL` in this scope [INFO] [stdout] --> src/token.rs:173:35 [INFO] [stdout] | [INFO] [stdout] 173 | &mut is_member as PBOOL, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/token.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | Ok(is_member == TRUE) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WinBuiltinAdministratorsSid` in this scope [INFO] [stdout] --> src/token.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | self.is_member(WinBuiltinAdministratorsSid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_ELEVATION_TYPE` in this scope [INFO] [stdout] --> src/token.rs:205:33 [INFO] [stdout] | [INFO] [stdout] 205 | let mut token_info: TOKEN_ELEVATION_TYPE = std::mem::zeroed(); [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/token.rs:208:38 [INFO] [stdout] | [INFO] [stdout] 208 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:209:16 [INFO] [stdout] | [INFO] [stdout] 209 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenElevationType` in this scope [INFO] [stdout] --> src/token.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | TokenElevationType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_ELEVATION_TYPE` in this scope [INFO] [stdout] --> src/token.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 213 | std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winnt::{HANDLE, PHANDLE, PVOID}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::processthreadsapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::securitybaseapi::{DuplicateToken, GetTokenInformation}; [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/token.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winnt::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenElevationTypeLimited` in this scope [INFO] [stdout] --> src/token.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | if token_info == TokenElevationTypeLimited { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/token.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::securitybaseapi::{CheckTokenMembership, CreateWellKnownSid}; [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/token.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::winnt::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_LINKED_TOKEN` in this scope [INFO] [stdout] --> src/token.rs:226:39 [INFO] [stdout] | [INFO] [stdout] 226 | let mut token_linked: TOKEN_LINKED_TOKEN = std::mem::zeroed(); [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/token.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::shared::minwindef::{BOOL, DWORD, FALSE, PBOOL, TRUE}; [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/token.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/token.rs:227:71 [INFO] [stdout] | [INFO] [stdout] 227 | let token_linked_ptr = &mut token_linked as *mut _ as 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/token.rs:229:42 [INFO] [stdout] | [INFO] [stdout] 229 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:230:20 [INFO] [stdout] | [INFO] [stdout] 230 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenLinkedToken` in this scope [INFO] [stdout] --> src/token.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | TokenLinkedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_LINKED_TOKEN` in this scope [INFO] [stdout] --> src/token.rs:234:41 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 234 | std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:236:22 [INFO] [stdout] | [INFO] [stdout] 236 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:238:31 [INFO] [stdout] | [INFO] [stdout] 238 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_DUPLICATE` in this scope [INFO] [stdout] --> src/token.rs:268:41 [INFO] [stdout] | [INFO] [stdout] 268 | Token::from_current_process(TOKEN_DUPLICATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/token.rs:268:59 [INFO] [stdout] | [INFO] [stdout] 268 | Token::from_current_process(TOKEN_DUPLICATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY_SOURCE` in this scope [INFO] [stdout] --> src/token.rs:268:73 [INFO] [stdout] | [INFO] [stdout] 268 | Token::from_current_process(TOKEN_DUPLICATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenPrimary` in this scope [INFO] [stdout] --> src/token.rs:270:47 [INFO] [stdout] | [INFO] [stdout] 270 | let token = if token.token_type()? == TokenPrimary { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenImpersonation` in this scope [INFO] [stdout] --> src/token.rs:271:29 [INFO] [stdout] | [INFO] [stdout] 271 | token.duplicate(TokenImpersonation)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/token.rs:289:41 [INFO] [stdout] | [INFO] [stdout] 289 | Token::from_current_process(TOKEN_QUERY).expect("failed to open process token"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/token.rs:294:49 [INFO] [stdout] | [INFO] [stdout] 294 | let token = Token::from_current_process(TOKEN_QUERY).expect("failed to open process token"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenImpersonation` in this scope [INFO] [stdout] --> src/token.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | assert!(token_type == TokenImpersonation || token_type == TokenPrimary); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenPrimary` in this scope [INFO] [stdout] --> src/token.rs:297:67 [INFO] [stdout] | [INFO] [stdout] 297 | assert!(token_type == TokenImpersonation || token_type == TokenPrimary); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/token.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 302 | let token = Token::from_current_process(TOKEN_QUERY | TOKEN_QUERY_SOURCE) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY_SOURCE` in this scope [INFO] [stdout] --> src/token.rs:302:63 [INFO] [stdout] | [INFO] [stdout] 302 | let token = Token::from_current_process(TOKEN_QUERY | TOKEN_QUERY_SOURCE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/token.rs:206:46 [INFO] [stdout] | [INFO] [stdout] 206 | let token_info_ptr: *mut winapi::ctypes::c_void = [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/token.rs:207:59 [INFO] [stdout] | [INFO] [stdout] 207 | &mut token_info as *mut _ as *mut winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 95 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/token.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | h_token: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | h_token: INVALID_HANDLE_VALUE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | if self.h_token != INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/token.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | CloseHandle(self.h_token); [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/token.rs:67:33 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn from_process(handle: HANDLE, mode: DWORD) -> Result { [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/token.rs:67:47 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn from_process(handle: HANDLE, mode: DWORD) -> Result { [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/token.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/token.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(handle, mode, &mut token) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:70:62 [INFO] [stdout] | [INFO] [stdout] 70 | if OpenProcessToken(handle, mode, &mut token) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | let err = GetLastError(); [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/token.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn from_current_process(mode: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wil` [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/token.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { Self::from_process(GetCurrentProcess(), mode) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/token.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/token.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | mode: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/token.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | open_as_self: BOOL, [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/token.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/token.rs:93:33 [INFO] [stdout] | [INFO] [stdout] 93 | let mut token: HANDLE = INVALID_HANDLE_VALUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenThreadToken` in this scope [INFO] [stdout] --> src/token.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | if OpenThreadToken(handle, mode, open_as_self, &mut token) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:95:75 [INFO] [stdout] | [INFO] [stdout] 95 | if OpenThreadToken(handle, mode, open_as_self, &mut token) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let err = GetLastError(); [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/token.rs:106:38 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn from_current_thread(mode: DWORD, open_as_self: BOOL) -> Result { [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/token.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn from_current_thread(mode: DWORD, open_as_self: BOOL) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in this scope [INFO] [stdout] --> src/token.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { Token::from_thread(GetCurrentThread(), mode, open_as_self) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn token_type(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | let mut token_type: TOKEN_TYPE = std::mem::zeroed(); [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/token.rs:114:63 [INFO] [stdout] | [INFO] [stdout] 114 | let token_type_ptr = &mut token_type as *mut _ as 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/token.rs:115:38 [INFO] [stdout] | [INFO] [stdout] 115 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:116:44 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 116 | let size = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenType` in this scope [INFO] [stdout] --> src/token.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | TokenType, [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `token_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:126:27 [INFO] [stdout] | [INFO] [stdout] 126 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_TYPE` in this scope [INFO] [stdout] --> src/token.rs:139:40 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn duplicate(&self, tokentype: TOKEN_TYPE) -> Result { [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/token.rs:141:32 [INFO] [stdout] | [INFO] [stdout] 141 | let mut dup_token: HANDLE = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHANDLE` in this scope [INFO] [stdout] --> src/token.rs:142:51 [INFO] [stdout] | [INFO] [stdout] 142 | let dup_token_ptr = &mut dup_token as PHANDLE; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateToken` in this scope [INFO] [stdout] --> src/token.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if DuplicateToken(self.h_token, tokentype, dup_token_ptr) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:143:74 [INFO] [stdout] | [INFO] [stdout] 143 | if DuplicateToken(self.h_token, tokentype, dup_token_ptr) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:144:27 [INFO] [stdout] | [INFO] [stdout] 144 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WELL_KNOWN_SID_TYPE` in this scope [INFO] [stdout] --> src/token.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn is_member(&self, known_sid: WELL_KNOWN_SID_TYPE) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECURITY_MAX_SID_SIZE` in this scope [INFO] [stdout] --> src/token.rs:157:43 [INFO] [stdout] | [INFO] [stdout] 157 | let mut admin_sid = vec![0u8; SECURITY_MAX_SID_SIZE]; [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/token.rs:158:59 [INFO] [stdout] | [INFO] [stdout] 158 | let admin_sid_ptr = admin_sid.as_mut_ptr() as PVOID; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECURITY_MAX_SID_SIZE` in this scope [INFO] [stdout] --> src/token.rs:159:61 [INFO] [stdout] | [INFO] [stdout] 159 | let mut sid_size = (std::mem::size_of::() * SECURITY_MAX_SID_SIZE) 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/token.rs:159:87 [INFO] [stdout] | [INFO] [stdout] 159 | let mut sid_size = (std::mem::size_of::() * SECURITY_MAX_SID_SIZE) 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 `CreateWellKnownSid` in this scope [INFO] [stdout] --> src/token.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | if CreateWellKnownSid(known_sid, null_mut(), admin_sid_ptr, &mut sid_size) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:161:91 [INFO] [stdout] | [INFO] [stdout] 161 | if CreateWellKnownSid(known_sid, null_mut(), admin_sid_ptr, &mut sid_size) == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | let err = GetLastError(); [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/token.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 169 | let mut is_member: BOOL = FALSE; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | let mut is_member: BOOL = FALSE; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CheckTokenMembership` in this scope [INFO] [stdout] --> src/token.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | if CheckTokenMembership( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PSID` in this scope [INFO] [stdout] --> src/token.rs:172:43 [INFO] [stdout] | [INFO] [stdout] 172 | admin_sid.as_mut_ptr() as PSID, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PBOOL` in this scope [INFO] [stdout] --> src/token.rs:173:35 [INFO] [stdout] | [INFO] [stdout] 173 | &mut is_member as PBOOL, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/token.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | Ok(is_member == TRUE) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WinBuiltinAdministratorsSid` in this scope [INFO] [stdout] --> src/token.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | self.is_member(WinBuiltinAdministratorsSid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_ELEVATION_TYPE` in this scope [INFO] [stdout] --> src/token.rs:205:33 [INFO] [stdout] | [INFO] [stdout] 205 | let mut token_info: TOKEN_ELEVATION_TYPE = std::mem::zeroed(); [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/token.rs:208:38 [INFO] [stdout] | [INFO] [stdout] 208 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:209:16 [INFO] [stdout] | [INFO] [stdout] 209 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenElevationType` in this scope [INFO] [stdout] --> src/token.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | TokenElevationType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_ELEVATION_TYPE` in this scope [INFO] [stdout] --> src/token.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 213 | std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenElevationTypeLimited` in this scope [INFO] [stdout] --> src/token.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | if token_info == TokenElevationTypeLimited { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_LINKED_TOKEN` in this scope [INFO] [stdout] --> src/token.rs:226:39 [INFO] [stdout] | [INFO] [stdout] 226 | let mut token_linked: TOKEN_LINKED_TOKEN = std::mem::zeroed(); [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/token.rs:227:71 [INFO] [stdout] | [INFO] [stdout] 227 | let token_linked_ptr = &mut token_linked as *mut _ as 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/token.rs:229:42 [INFO] [stdout] | [INFO] [stdout] 229 | let mut returned_length: DWORD = 0u32; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTokenInformation` in this scope [INFO] [stdout] --> src/token.rs:230:20 [INFO] [stdout] | [INFO] [stdout] 230 | if GetTokenInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenLinkedToken` in this scope [INFO] [stdout] --> src/token.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | TokenLinkedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_LINKED_TOKEN` in this scope [INFO] [stdout] --> src/token.rs:234:41 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 234 | std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/token.rs:236:22 [INFO] [stdout] | [INFO] [stdout] 236 | ) == FALSE [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/token.rs:238:31 [INFO] [stdout] | [INFO] [stdout] 238 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] error: aborting due to 82 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "94ec5e8c8f7e4a335699469cd2d0976e3d608e6a0937680e10e5026cb5d97a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94ec5e8c8f7e4a335699469cd2d0976e3d608e6a0937680e10e5026cb5d97a05", kill_on_drop: false }` [INFO] [stdout] 94ec5e8c8f7e4a335699469cd2d0976e3d608e6a0937680e10e5026cb5d97a05