[INFO] cloning repository https://github.com/synetic707/rust-recv-hook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/synetic707/rust-recv-hook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-recv-hook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-recv-hook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 47ebb6e6c50146d6892d07cb2d202009028d9607 [INFO] checking synetic707/rust-recv-hook against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-recv-hook" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/synetic707/rust-recv-hook on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/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 `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded user32-sys v0.1.3 [INFO] [stderr] Downloaded gcc v0.3.54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f72afe136d7da369543349838cce70b6acefcc3fc26cc2b6df5793cc3b37ea4 [INFO] running `Command { std: "docker" "start" "-a" "4f72afe136d7da369543349838cce70b6acefcc3fc26cc2b6df5793cc3b37ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f72afe136d7da369543349838cce70b6acefcc3fc26cc2b6df5793cc3b37ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f72afe136d7da369543349838cce70b6acefcc3fc26cc2b6df5793cc3b37ea4", kill_on_drop: false }` [INFO] [stdout] 4f72afe136d7da369543349838cce70b6acefcc3fc26cc2b6df5793cc3b37ea4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccb6446705bc9cc9b1e340abbb3cb55f5dc2315760b415e323cbd6339c83f5d8 [INFO] running `Command { std: "docker" "start" "-a" "ccb6446705bc9cc9b1e340abbb3cb55f5dc2315760b415e323cbd6339c83f5d8", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking gcc v0.3.54 [INFO] [stderr] Compiling user32-sys v0.1.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Checking rust-recv-hook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwinbase` [INFO] [stdout] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwinbase::LPTHREAD_START_ROUTINE; [INFO] [stdout] | ^^^^^^^^^^ could not find `minwinbase` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwinbase` [INFO] [stdout] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwinbase::LPTHREAD_START_ROUTINE; [INFO] [stdout] | ^^^^^^^^^^ could not find `minwinbase` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/helpers.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::minwindef::*; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/helpers.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::minwindef::*; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/hooks.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::minwindef::*; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/hooks.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::minwindef::*; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/hooks.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::winnt::*; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/hooks.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::winnt::*; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/hooks.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/hooks.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | asm!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use std::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/helpers.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn print_hex(text: &str, hex: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/helpers.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn print_hex(text: &str, hex: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | static mut RECVADDR: *mut c_void = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | static mut RECVADDR: *mut c_void = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:49 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:49 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn place_jmp(address: DWORD, jumpto: DWORD, length: DWORD) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | let dw_old_protect: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | let dw_old_protect: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | let mut dw_bkup: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | let mut dw_bkup: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | let mut dw_rel_addr: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | let mut dw_rel_addr: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/hooks.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [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/hooks.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [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/hooks.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | *((address + 0x1) as *mut DWORD) = dw_rel_addr; [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/hooks.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | *((address + 0x1) as *mut DWORD) = dw_rel_addr; [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/hooks.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | *((address + x) as *mut DWORD) = 0x90; [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/hooks.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | *((address + x) as *mut DWORD) = 0x90; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/hooks.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/hooks.rs:42:45 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/hooks.rs:42:64 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/hooks.rs:42:64 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:42:78 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:42:78 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:42:93 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn get_recv() -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:42:93 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn get_recv() -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:62:125 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/hooks.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | return RECVADDR as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/hooks.rs:62:125 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/hooks.rs:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [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/hooks.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | return RECVADDR as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/hooks.rs:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/hooks.rs:66:62 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/hooks.rs:66:62 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:75 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:75 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:89 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:89 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:99 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `winapi` [INFO] [stdout] --> src/lib.rs:22:66 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe extern "system" fn keep_alive(_lpthreadparameter: winapi::LPVOID) -> DWORD { [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/hooks.rs:66:99 [INFO] [stdout] | [INFO] [stdout] 66 | pub unsafe extern "system" fn hook_recv(s: SOCKET, buf: *mut c_char, len: c_int, flags: c_int) -> c_int { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/lib.rs:33:44 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `winapi` [INFO] [stdout] --> src/lib.rs:22:66 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe extern "system" fn keep_alive(_lpthreadparameter: winapi::LPVOID) -> DWORD { [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/lib.rs:33:85 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/lib.rs:33:44 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:33:96 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/lib.rs:33:85 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:33:96 [INFO] [stdout] | [INFO] [stdout] 33 | pub extern "system" fn DllMain(dll_module: HINSTANCE, call_reason: DWORD, reserved: LPVOID) -> BOOL [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | return TRUE; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 47 | return true; [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in crate `kernel32` [INFO] [stdout] --> src/lib.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | kernel32::AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | return TRUE; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 47 | return true; [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AllocConsole` in crate `kernel32` [INFO] [stdout] --> src/lib.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | kernel32::AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/hooks.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | return 0; [INFO] [stdout] | --------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/hooks.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe extern "system" fn real_recv(_s: SOCKET, _buf: *mut c_char, _len: c_int, _flags: c_int) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | return 0; [INFO] [stdout] | --------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/hooks.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/hooks.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | VirtualProtect(address as *mut c_void, length, PAGE_EXECUTE_READWRITE, &mut dw_rel_addr); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/hooks.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope [INFO] [stdout] --> src/hooks.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | VirtualProtect(address as *mut c_void, length, dw_old_protect, &mut dw_bkup); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/hooks.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/hooks.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [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/hooks.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [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/hooks.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | RECVADDR = GetProcAddress(GetModuleHandleA(helpers::c_str("ws2_32").as_ptr()), helpers::c_str("recv").as_ptr()) as *mut c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateThread` in this scope [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | CreateThread(std::ptr::null_mut(), 0, Some(keep_alive), std::ptr::null_mut(), 0, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateThread` in this scope [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | CreateThread(std::ptr::null_mut(), 0, Some(keep_alive), std::ptr::null_mut(), 0, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 43 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 43 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-recv-hook` (lib) due to 44 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-recv-hook` (lib test) due to 44 previous errors [INFO] running `Command { std: "docker" "inspect" "ccb6446705bc9cc9b1e340abbb3cb55f5dc2315760b415e323cbd6339c83f5d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccb6446705bc9cc9b1e340abbb3cb55f5dc2315760b415e323cbd6339c83f5d8", kill_on_drop: false }` [INFO] [stdout] ccb6446705bc9cc9b1e340abbb3cb55f5dc2315760b415e323cbd6339c83f5d8 [INFO] checking synetic707/rust-recv-hook against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-recv-hook" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/synetic707/rust-recv-hook on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/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 `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a3b70f5b892f32dbd6fe65a9673d856dfd184e3bc4b68085233179113d81d05 [INFO] running `Command { std: "docker" "start" "-a" "0a3b70f5b892f32dbd6fe65a9673d856dfd184e3bc4b68085233179113d81d05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a3b70f5b892f32dbd6fe65a9673d856dfd184e3bc4b68085233179113d81d05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a3b70f5b892f32dbd6fe65a9673d856dfd184e3bc4b68085233179113d81d05", kill_on_drop: false }` [INFO] [stdout] 0a3b70f5b892f32dbd6fe65a9673d856dfd184e3bc4b68085233179113d81d05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19aff03047f922e713fcbb7a5b2ea5b68364aea8a60c92fd70858944bc199cfe [INFO] running `Command { std: "docker" "start" "-a" "19aff03047f922e713fcbb7a5b2ea5b68364aea8a60c92fd70858944bc199cfe", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] no edition found in manifest, probably 2015, skipping [INFO] running `Command { std: "docker" "inspect" "19aff03047f922e713fcbb7a5b2ea5b68364aea8a60c92fd70858944bc199cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19aff03047f922e713fcbb7a5b2ea5b68364aea8a60c92fd70858944bc199cfe", kill_on_drop: false }` [INFO] [stdout] 19aff03047f922e713fcbb7a5b2ea5b68364aea8a60c92fd70858944bc199cfe