[INFO] updating cached repository https://github.com/synetic707/rust-recv-hook
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 47ebb6e6c50146d6892d07cb2d202009028d9607
[INFO] checking synetic707/rust-recv-hook against master#209b2be09fcaff937480d1fbbe8b31646e361c7a for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-recv-hook" "/workspace/builds/worker-3/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/synetic707/rust-recv-hook on toolchain 209b2be09fcaff937480d1fbbe8b31646e361c7a
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/synetic707/rust-recv-hook
[INFO] finished tweaking git repo https://github.com/synetic707/rust-recv-hook
[INFO] tweaked toml for git repo https://github.com/synetic707/rust-recv-hook written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/synetic707/rust-recv-hook already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 2868a13be9912b839f0b37eabab384511549fc99f7d290d60d849804824b54fb
[INFO] running `"docker" "start" "-a" "2868a13be9912b839f0b37eabab384511549fc99f7d290d60d849804824b54fb"`
[INFO] [stderr]     Checking gcc v0.3.54
[INFO] [stderr]    Compiling user32-sys v0.1.3
[INFO] [stderr]    Compiling ws2_32-sys v0.2.1
[INFO] [stderr]     Checking rust-recv-hook v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]   --> src/lib.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::minwindef::DWORD;
[INFO] [stderr]    |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwinbase`
[INFO] [stderr]   --> src/lib.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::minwinbase::LPTHREAD_START_ROUTINE;
[INFO] [stderr]    |             ^^^^^^^^^^ could not find `minwinbase` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]  --> src/helpers.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::minwindef::*;
[INFO] [stderr]   |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]  --> src/hooks.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::minwindef::*;
[INFO] [stderr]   |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::winnt`
[INFO] [stderr]  --> src/hooks.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::winnt::*;
[INFO] [stderr]   |             ^^^^^ could not find `winnt` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]   --> src/lib.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::minwindef::DWORD;
[INFO] [stderr]    |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwinbase`
[INFO] [stderr]   --> src/lib.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::minwinbase::LPTHREAD_START_ROUTINE;
[INFO] [stderr]    |             ^^^^^^^^^^ could not find `minwinbase` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]  --> src/helpers.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::minwindef::*;
[INFO] [stderr]   |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef`
[INFO] [stderr]  --> src/hooks.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::minwindef::*;
[INFO] [stderr]   |             ^^^^^^^^^ could not find `minwindef` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::winnt`
[INFO] [stderr]  --> src/hooks.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::winnt::*;
[INFO] [stderr]   |             ^^^^^ could not find `winnt` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/helpers.rs:12:35
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn print_hex(text: &str, hex: DWORD) {
[INFO] [stderr]    |                                   ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:12:27
[INFO] [stderr]    |
[INFO] [stderr] 12 | static mut RECVADDR: *mut c_void = std::ptr::null_mut();
[INFO] [stderr]    |                           ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:34
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:49
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:64
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:15:25
[INFO] [stderr]    |
[INFO] [stderr] 15 |     let dw_old_protect: DWORD = 0;
[INFO] [stderr]    |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:16:22
[INFO] [stderr]    |
[INFO] [stderr] 16 |     let mut dw_bkup: DWORD = 0;
[INFO] [stderr]    |                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:17:26
[INFO] [stderr]    |
[INFO] [stderr] 17 |     let mut dw_rel_addr: DWORD = 0;
[INFO] [stderr]    |                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:5
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:36
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |                                    ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:52
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |                                                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:30:31
[INFO] [stderr]    |
[INFO] [stderr] 30 |     *((address + 0x1) as *mut DWORD) = dw_rel_addr;
[INFO] [stderr]    |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:33:33
[INFO] [stderr]    |
[INFO] [stderr] 33 |         *((address + x) as *mut DWORD) = 0x90;
[INFO] [stderr]    |                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stderr]   --> src/hooks.rs:36:5
[INFO] [stderr]    |
[INFO] [stderr] 36 |     VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:36:36
[INFO] [stderr]    |
[INFO] [stderr] 36 |     VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup);
[INFO] [stderr]    |                                    ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `SOCKET` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:45
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:64
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: a builtin type with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                ^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_char;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:78
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                              ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:93
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                                             ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:61:29
[INFO] [stderr]    |
[INFO] [stderr] 61 | pub unsafe fn get_recv() -> DWORD {
[INFO] [stderr]    |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:16
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:31
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:125
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                                                                                                                             ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:63:24
[INFO] [stderr]    |
[INFO] [stderr] 63 |     return RECVADDR as DWORD;
[INFO] [stderr]    |                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `SOCKET` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:44
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:62
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                              ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: a builtin type with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                              ^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_char;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:75
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                           ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:89
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                                         ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/helpers.rs:12:35
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn print_hex(text: &str, hex: DWORD) {
[INFO] [stderr]    |                                   ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:99
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                                                   ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:12:27
[INFO] [stderr]    |
[INFO] [stderr] 12 | static mut RECVADDR: *mut c_void = std::ptr::null_mut();
[INFO] [stderr]    |                           ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in crate `winapi`
[INFO] [stderr]   --> src/lib.rs:22:66
[INFO] [stderr]    |
[INFO] [stderr] 22 | unsafe extern "system" fn keep_alive(_lpthreadparameter: winapi::LPVOID) -> DWORD {
[INFO] [stderr]    |                                                                  ^^^^^^ not found in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:34
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stderr]   --> src/lib.rs:33:44
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                            ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:49
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/lib.rs:33:85
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:14:64
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) {
[INFO] [stderr]    |                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]   --> src/lib.rs:33:96
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                                                                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:15:25
[INFO] [stderr]    |
[INFO] [stderr] 15 |     let dw_old_protect: DWORD = 0;
[INFO] [stderr]    |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateThread` in this scope
[INFO] [stderr]   --> src/lib.rs:40:13
[INFO] [stderr]    |
[INFO] [stderr] 40 |             CreateThread(std::ptr::null_mut(), 0, Some(keep_alive), std::ptr::null_mut(), 0, std::ptr::null_mut());
[INFO] [stderr]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:16:22
[INFO] [stderr]    |
[INFO] [stderr] 16 |     let mut dw_bkup: DWORD = 0;
[INFO] [stderr]    |                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:17:26
[INFO] [stderr]    |
[INFO] [stderr] 17 |     let mut dw_rel_addr: DWORD = 0;
[INFO] [stderr]    |                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/lib.rs:47:12
[INFO] [stderr]    |
[INFO] [stderr] 47 |     return TRUE;
[INFO] [stderr]    |            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:5
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in crate `kernel32`
[INFO] [stderr]   --> src/lib.rs:52:15
[INFO] [stderr]    |
[INFO] [stderr] 52 |     kernel32::AllocConsole();
[INFO] [stderr]    |               ^^^^^^^^^^^^ not found in `kernel32`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:36
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |                                    ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope
[INFO] [stderr]   --> src/hooks.rs:19:52
[INFO] [stderr]    |
[INFO] [stderr] 19 |     VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr);
[INFO] [stderr]    |                                                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:30:31
[INFO] [stderr]    |
[INFO] [stderr] 30 |     *((address + 0x1) as *mut DWORD) = dw_rel_addr;
[INFO] [stderr]    |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:33:33
[INFO] [stderr]    |
[INFO] [stderr] 33 |         *((address + x) as *mut DWORD) = 0x90;
[INFO] [stderr]    |                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stderr]   --> src/hooks.rs:36:5
[INFO] [stderr]    |
[INFO] [stderr] 36 |     VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:36:36
[INFO] [stderr]    |
[INFO] [stderr] 36 |     VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup);
[INFO] [stderr]    |                                    ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `SOCKET` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:45
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:64
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: a builtin type with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                ^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_char;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:78
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                              ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:42:93
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{
[INFO] [stderr]    |                                                                                             ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:61:29
[INFO] [stderr]    |
[INFO] [stderr] 61 | pub unsafe fn get_recv() -> DWORD {
[INFO] [stderr]    |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:16
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:31
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stderr]   --> src/hooks.rs:62:125
[INFO] [stderr]    |
[INFO] [stderr] 62 |     RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void;
[INFO] [stderr]    |                                                                                                                             ^^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::ffi::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_void;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/hooks.rs:63:24
[INFO] [stderr]    |
[INFO] [stderr] 63 |     return RECVADDR as DWORD;
[INFO] [stderr]    |                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `SOCKET` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:44
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:62
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                              ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: a builtin type with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                              ^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_char;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:75
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                           ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:89
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                                         ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stderr]   --> src/hooks.rs:66:99
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int {
[INFO] [stderr]    |                                                                                                   ^^^^^ not found in this scope
[INFO] [stderr]    |
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use std::os::raw::c_int;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in crate `winapi`
[INFO] [stderr]   --> src/lib.rs:22:66
[INFO] [stderr]    |
[INFO] [stderr] 22 | unsafe extern "system" fn keep_alive(_lpthreadparameter: winapi::LPVOID) -> DWORD {
[INFO] [stderr]    |                                                                  ^^^^^^ not found in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stderr]   --> src/lib.rs:33:44
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                            ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/lib.rs:33:85
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]   --> src/lib.rs:33:96
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL
[INFO] [stderr]    |                                                                                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateThread` in this scope
[INFO] [stderr]   --> src/lib.rs:40:13
[INFO] [stderr]    |
[INFO] [stderr] 40 |             CreateThread(std::ptr::null_mut(), 0, Some(keep_alive), std::ptr::null_mut(), 0, std::ptr::null_mut());
[INFO] [stderr]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/lib.rs:47:12
[INFO] [stderr]    |
[INFO] [stderr] 47 |     return TRUE;
[INFO] [stderr]    |            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in crate `kernel32`
[INFO] [stderr]   --> src/lib.rs:52:15
[INFO] [stderr]    |
[INFO] [stderr] 52 |     kernel32::AllocConsole();
[INFO] [stderr]    |               ^^^^^^^^^^^^ not found in `kernel32`
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable statement
[INFO] [stderr]   --> src/lib.rs:27:5
[INFO] [stderr]    |
[INFO] [stderr] 23 | /     loop {
[INFO] [stderr] 24 | |         thread::sleep(std::time::Duration::from_millis(250));
[INFO] [stderr] 25 | |     }
[INFO] [stderr]    | |_____- any code following this expression is unreachable
[INFO] [stderr] 26 | 
[INFO] [stderr] 27 |       return 0;
[INFO] [stderr]    |       ^^^^^^^^^ unreachable statement
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable statement
[INFO] [stderr]   --> src/lib.rs:27:5
[INFO] [stderr]    |
[INFO] [stderr] 23 | /     loop {
[INFO] [stderr] 24 | |         thread::sleep(std::time::Duration::from_millis(250));
[INFO] [stderr] 25 | |     }
[INFO] [stderr]    | |_____- any code following this expression is unreachable
[INFO] [stderr] 26 | 
[INFO] [stderr] 27 |       return 0;
[INFO] [stderr]    |       ^^^^^^^^^ unreachable statement
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 41 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: aborting due to 41 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `rust-recv-hook`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust-recv-hook`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "2868a13be9912b839f0b37eabab384511549fc99f7d290d60d849804824b54fb"`
[INFO] running `"docker" "rm" "-f" "2868a13be9912b839f0b37eabab384511549fc99f7d290d60d849804824b54fb"`
[INFO] [stdout] 2868a13be9912b839f0b37eabab384511549fc99f7d290d60d849804824b54fb
