[INFO] fetching crate djin 0.1.1... [INFO] checking djin-0.1.1 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate djin 0.1.1 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate djin 0.1.1 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 djin 0.1.1 [INFO] finished tweaking crates.io crate djin 0.1.1 [INFO] tweaked toml for crates.io crate djin 0.1.1 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate djin 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] 5a75ec1f1f1fd1a6b9fa66b82a5d275e0f1bacc7b8dfc3a658152502ac8f085d [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" "5a75ec1f1f1fd1a6b9fa66b82a5d275e0f1bacc7b8dfc3a658152502ac8f085d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a75ec1f1f1fd1a6b9fa66b82a5d275e0f1bacc7b8dfc3a658152502ac8f085d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a75ec1f1f1fd1a6b9fa66b82a5d275e0f1bacc7b8dfc3a658152502ac8f085d", kill_on_drop: false }` [INFO] [stdout] 5a75ec1f1f1fd1a6b9fa66b82a5d275e0f1bacc7b8dfc3a658152502ac8f085d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8ac2c31b0cb6c2cc0c654a75cd071c9027f7aa97d084b801234df1fa227c272f [INFO] running `Command { std: "docker" "start" "-a" "8ac2c31b0cb6c2cc0c654a75cd071c9027f7aa97d084b801234df1fa227c272f", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking djin v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: this crate is only meant to be used for windows targets [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | compile_error!("this crate is only meant to be used for windows targets"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows_prelude.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | shared::{ [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/windows_prelude.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/windows_prelude.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this crate is only meant to be used for windows targets [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | compile_error!("this crate is only meant to be used for windows targets"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | bail_if_null!(alloc); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows_prelude.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | shared::{ [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/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 121 | | process, [INFO] [stdout] 122 | | alloc as _, [INFO] [stdout] 123 | | ptr!(SHELLCODE), [INFO] [stdout] 124 | | SHELLCODE.len(), [INFO] [stdout] 125 | | NULL as _ [INFO] [stdout] 126 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 129 | | process, [INFO] [stdout] 130 | | alloc.add(SHELLCODE.len()) as _, [INFO] [stdout] 131 | | &pointers as *const _ as _, [INFO] [stdout] 132 | | plen, [INFO] [stdout] 133 | | NULL as _, [INFO] [stdout] 134 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows_prelude.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/windows_prelude.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 137 | | process, [INFO] [stdout] 138 | | alloc.add(SHELLCODE.len() + plen) as _, [INFO] [stdout] 139 | | ptr!(dllstr), [INFO] [stdout] ... | [INFO] [stdout] 142 | | NULL as _ [INFO] [stdout] 143 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 148 | | process, [INFO] [stdout] 149 | | alloc.add(SHELLCODE.len() + plen + dlllen) as _, [INFO] [stdout] 150 | | ptr!(function), [INFO] [stdout] 151 | | fnlen - 1, [INFO] [stdout] 152 | | NULL as _ [INFO] [stdout] 153 | | )); [INFO] [stdout] | |_______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | bail_if_null!(thread); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | bail_if_nonzero!(result); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / bail_if_zero!(ReadProcessMemory( [INFO] [stdout] 175 | | process, [INFO] [stdout] 176 | | alloc.add(SHELLCODE.len() + plen - std::mem::size_of::()) as _, [INFO] [stdout] 177 | | &mut error as *mut _ as _, [INFO] [stdout] 178 | | 4, [INFO] [stdout] 179 | | NULL as _ [INFO] [stdout] 180 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/imp/util.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let k32 = GetModuleHandleA(ptr!(b"Kernel32.dll\0")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let llw = GetProcAddress(k32, ptr!(b"LoadLibraryW\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | let gpa = GetProcAddress(k32, ptr!(b"GetProcAddress\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | let gle = GetProcAddress(k32, ptr!(b"GetLastError\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:50 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:70 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:90 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [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/imp/util.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn alloc(process: HANDLE, size: usize) -> LPVOID { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/imp/util.rs:72:47 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn alloc(process: HANDLE, size: usize) -> LPVOID { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stdout] --> src/imp/util.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | VirtualAllocEx( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | NULL, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/imp/util.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/imp/util.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/imp/util.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | PAGE_EXECUTE_READWRITE, [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/imp/mod.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> 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/imp/mod.rs:94:86 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/imp/mod.rs:94:93 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:147:27 [INFO] [stdout] | [INFO] [stdout] 147 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateRemoteThread` in this scope [INFO] [stdout] --> src/imp/mod.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | let thread = CreateRemoteThread( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in this scope [INFO] [stdout] --> src/imp/mod.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | let result = WaitForSingleObject(thread, INFINITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INFINITE` in this scope [INFO] [stdout] --> src/imp/mod.rs:168:50 [INFO] [stdout] | [INFO] [stdout] 168 | let result = WaitForSingleObject(thread, INFINITE); [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/imp/mod.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 173 | let mut error: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:174:23 [INFO] [stdout] | [INFO] [stdout] 174 | bail_if_zero!(ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | NULL as _ [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/imp/mod.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | let mut exit: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetExitCodeThread` in this scope [INFO] [stdout] --> src/imp/mod.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | GetExitCodeThread(thread, &mut exit as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFreeEx` in this scope [INFO] [stdout] --> src/imp/mod.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | VirtualFreeEx(process, alloc.cast(), total_size, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/imp/mod.rs:188:58 [INFO] [stdout] | [INFO] [stdout] 188 | VirtualFreeEx(process, alloc.cast(), total_size, MEM_RELEASE); [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/imp/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | CloseHandle(thread); [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/lib.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: 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/lib.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: DWORD) -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: DWORD) -> Result { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | OpenProcess( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_CREATE_THREAD` in this scope [INFO] [stdout] --> src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | PROCESS_CREATE_THREAD [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/lib.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | | PROCESS_QUERY_INFORMATION [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/lib.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | | PROCESS_VM_OPERATION [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/lib.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | | PROCESS_VM_WRITE [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/lib.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | | PROCESS_VM_READ, [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/lib.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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/lib.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | Err(unsafe { GetLastError() }) [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/lib.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | process: 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/lib.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn inject_dll>( [INFO] [stdout] | - help: you might be missing a type parameter: `, DWORD` [INFO] [stdout] ... [INFO] [stdout] 42 | ) -> 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/lib.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn inject_dll>( [INFO] [stdout] | - help: you might be missing a type parameter: `, DWORD` [INFO] [stdout] ... [INFO] [stdout] 42 | ) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::windows_prelude::*` [INFO] [stdout] --> src/imp/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::windows_prelude::*` [INFO] [stdout] --> src/imp/util.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use crate::windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_prelude::*` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | bail_if_null!(alloc); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 121 | | process, [INFO] [stdout] 122 | | alloc as _, [INFO] [stdout] 123 | | ptr!(SHELLCODE), [INFO] [stdout] 124 | | SHELLCODE.len(), [INFO] [stdout] 125 | | NULL as _ [INFO] [stdout] 126 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 129 | | process, [INFO] [stdout] 130 | | alloc.add(SHELLCODE.len()) as _, [INFO] [stdout] 131 | | &pointers as *const _ as _, [INFO] [stdout] 132 | | plen, [INFO] [stdout] 133 | | NULL as _, [INFO] [stdout] 134 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 137 | | process, [INFO] [stdout] 138 | | alloc.add(SHELLCODE.len() + plen) as _, [INFO] [stdout] 139 | | ptr!(dllstr), [INFO] [stdout] ... | [INFO] [stdout] 142 | | NULL as _ [INFO] [stdout] 143 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | / bail_if_zero!(WriteProcessMemory( [INFO] [stdout] 148 | | process, [INFO] [stdout] 149 | | alloc.add(SHELLCODE.len() + plen + dlllen) as _, [INFO] [stdout] 150 | | ptr!(function), [INFO] [stdout] 151 | | fnlen - 1, [INFO] [stdout] 152 | | NULL as _ [INFO] [stdout] 153 | | )); [INFO] [stdout] | |_______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | bail_if_null!(thread); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | bail_if_nonzero!(result); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/imp/util.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | winapi::um::errhandlingapi::GetLastError() [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/imp/mod.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / bail_if_zero!(ReadProcessMemory( [INFO] [stdout] 175 | | process, [INFO] [stdout] 176 | | alloc.add(SHELLCODE.len() + plen - std::mem::size_of::()) as _, [INFO] [stdout] 177 | | &mut error as *mut _ as _, [INFO] [stdout] 178 | | 4, [INFO] [stdout] 179 | | NULL as _ [INFO] [stdout] 180 | | )); [INFO] [stdout] | |___________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/imp/util.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let k32 = GetModuleHandleA(ptr!(b"Kernel32.dll\0")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let llw = GetProcAddress(k32, ptr!(b"LoadLibraryW\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | let gpa = GetProcAddress(k32, ptr!(b"GetProcAddress\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/imp/util.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | let gle = GetProcAddress(k32, ptr!(b"GetLastError\0")).cast(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:50 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:70 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:66:90 [INFO] [stdout] | [INFO] [stdout] 66 | debug_assert!(k32 != NULL as _ && llw != NULL as _ && gpa != NULL as _ && gle != NULL as _); [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/imp/util.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn alloc(process: HANDLE, size: usize) -> LPVOID { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/imp/util.rs:72:47 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn alloc(process: HANDLE, size: usize) -> LPVOID { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stdout] --> src/imp/util.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | VirtualAllocEx( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/util.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | NULL, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/imp/util.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/imp/util.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/imp/util.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | PAGE_EXECUTE_READWRITE, [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/imp/mod.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> 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/imp/mod.rs:94:86 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/imp/mod.rs:94:93 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn inject_dll(process: HANDLE, dll: &std::path::Path, function: &[u8]) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | NULL as _, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:147:27 [INFO] [stdout] | [INFO] [stdout] 147 | bail_if_zero!(WriteProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | NULL as _ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateRemoteThread` in this scope [INFO] [stdout] --> src/imp/mod.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | let thread = CreateRemoteThread( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | NULL.cast(), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in this scope [INFO] [stdout] --> src/imp/mod.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | let result = WaitForSingleObject(thread, INFINITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INFINITE` in this scope [INFO] [stdout] --> src/imp/mod.rs:168:50 [INFO] [stdout] | [INFO] [stdout] 168 | let result = WaitForSingleObject(thread, INFINITE); [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/imp/mod.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 173 | let mut error: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/imp/mod.rs:174:23 [INFO] [stdout] | [INFO] [stdout] 174 | bail_if_zero!(ReadProcessMemory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/imp/mod.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | NULL as _ [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/imp/mod.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | let mut exit: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetExitCodeThread` in this scope [INFO] [stdout] --> src/imp/mod.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | GetExitCodeThread(thread, &mut exit as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFreeEx` in this scope [INFO] [stdout] --> src/imp/mod.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | VirtualFreeEx(process, alloc.cast(), total_size, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/imp/mod.rs:188:58 [INFO] [stdout] | [INFO] [stdout] 188 | VirtualFreeEx(process, alloc.cast(), total_size, MEM_RELEASE); [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/imp/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | CloseHandle(thread); [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/lib.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: 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/lib.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: DWORD) -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn open_process(pid: DWORD) -> Result { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | OpenProcess( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_CREATE_THREAD` in this scope [INFO] [stdout] --> src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | PROCESS_CREATE_THREAD [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/lib.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | | PROCESS_QUERY_INFORMATION [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/lib.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | | PROCESS_VM_OPERATION [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/lib.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | | PROCESS_VM_WRITE [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/lib.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | | PROCESS_VM_READ, [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/lib.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | 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/lib.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | Err(unsafe { GetLastError() }) [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/lib.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | process: 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/lib.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn inject_dll>( [INFO] [stdout] | - help: you might be missing a type parameter: `, DWORD` [INFO] [stdout] ... [INFO] [stdout] 42 | ) -> 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/lib.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn inject_dll>( [INFO] [stdout] | - help: you might be missing a type parameter: `, DWORD` [INFO] [stdout] ... [INFO] [stdout] 42 | ) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::windows_prelude::*` [INFO] [stdout] --> src/imp/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::windows_prelude::*` [INFO] [stdout] --> src/imp/util.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use crate::windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_prelude::*` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/imp/mod.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | .encode_wide() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/imp/mod.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | .encode_wide() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 67 previous errors; 3 warnings emitted [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] [stdout] error: aborting due to 67 previous errors; 3 warnings emitted [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: could not compile `djin` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8ac2c31b0cb6c2cc0c654a75cd071c9027f7aa97d084b801234df1fa227c272f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ac2c31b0cb6c2cc0c654a75cd071c9027f7aa97d084b801234df1fa227c272f", kill_on_drop: false }` [INFO] [stdout] 8ac2c31b0cb6c2cc0c654a75cd071c9027f7aa97d084b801234df1fa227c272f