[INFO] cloning repository https://github.com/tan541/evading-edr-demo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tan541/evading-edr-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftan541%2Fevading-edr-demo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftan541%2Fevading-edr-demo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ce563ad4c7d9276b7001177ace0ca9146b44fa8d
[INFO] checking tan541/evading-edr-demo against 165655a2f1981fef27b31c547ad7631979fc5139 for pr-160235
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftan541%2Fevading-edr-demo" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tan541/evading-edr-demo
[INFO] finished tweaking git repo https://github.com/tan541/evading-edr-demo
[INFO] tweaked toml for git repo https://github.com/tan541/evading-edr-demo written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tan541/evading-edr-demo on toolchain 165655a2f1981fef27b31c547ad7631979fc5139
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+165655a2f1981fef27b31c547ad7631979fc5139" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tan541/evading-edr-demo 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" "+165655a2f1981fef27b31c547ad7631979fc5139" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56
[INFO] running `Command { std: "docker" "start" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56" "/opt/rustwide/cargo-home/bin/cargo" "+165655a2f1981fef27b31c547ad7631979fc5139" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56" "/opt/rustwide/cargo-home/bin/cargo" "+165655a2f1981fef27b31c547ad7631979fc5139" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling windows_x86_64_gnu v0.52.6
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]     Checking windows-targets v0.52.6
[INFO] [stderr]     Checking windows-result v0.2.0
[INFO] [stderr]     Checking windows-strings v0.1.0
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling windows-implement v0.58.0
[INFO] [stderr]    Compiling windows-interface v0.58.0
[INFO] [stderr]     Checking windows-core v0.58.0
[INFO] [stderr]     Checking windows v0.58.0
[INFO] [stderr]     Checking ntreadfile_hook v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::Win32::Foundation::{HANDLE, HMODULE, NTSTATUS};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use windows::Win32::System::LibraryLoader::{GetModuleHandleW, GetProcAddress};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use windows::Win32::System::Memory::{VirtualProtect, PAGE_EXECUTE_READWRITE, PAGE_PROTECTION_FLAGS};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::Win32::Foundation::{HANDLE, HMODULE, NTSTATUS};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use windows::Win32::System::LibraryLoader::{GetModuleHandleW, GetProcAddress};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `Win32` in `windows`
[INFO] [stdout]  --> src/main.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use windows::Win32::System::Memory::{VirtualProtect, PAGE_EXECUTE_READWRITE, PAGE_PROTECTION_FLAGS};
[INFO] [stdout]   |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `windows::core`
[INFO] [stdout]  --> src/main.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use windows::core::PCWSTR;
[INFO] [stdout]   |              ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:93:56
[INFO] [stdout]    |
[INFO] [stdout] 93 |         let proc_addr = GetProcAddress(ntdll, windows::core::s!("NtQueryObject"));
[INFO] [stdout]    |                                                        ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:129:56
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let proc_addr = GetProcAddress(ntdll, windows::core::s!("NtReadFile"));
[INFO] [stdout]     |                                                        ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `windows::core`
[INFO] [stdout]  --> src/main.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use windows::core::PCWSTR;
[INFO] [stdout]   |              ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:93:56
[INFO] [stdout]    |
[INFO] [stdout] 93 |         let proc_addr = GetProcAddress(ntdll, windows::core::s!("NtQueryObject"));
[INFO] [stdout]    |                                                        ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:129:56
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let proc_addr = GetProcAddress(ntdll, windows::core::s!("NtReadFile"));
[INFO] [stdout]     |                                                        ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PIO_APC_ROUTINE` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:31:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | type PIO_APC_ROUTINE = Option<unsafe extern "system" fn(*mut std::ffi::c_void, *mut IO_STATUS_BLOCK, u32)>;
[INFO] [stdout]    |      ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PioApcRoutine`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PIO_APC_ROUTINE` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:31:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | type PIO_APC_ROUTINE = Option<unsafe extern "system" fn(*mut std::ffi::c_void, *mut IO_STATUS_BLOCK, u32)>;
[INFO] [stdout]    |      ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PioApcRoutine`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ntreadfile_hook` (bin "ntreadfile_hook" test) due to 6 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `ntreadfile_hook` (bin "ntreadfile_hook") due to 6 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56", kill_on_drop: false }`
[INFO] [stdout] de7e2320b83d48c62b0f926c7fa961f0c54ec131e0888d791e6c0aa1ba768b56
