[INFO] fetching crate firehazard 0.0.0-2022-09-10...
[INFO] checking firehazard-0.0.0-2022-09-10 against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848
[INFO] extracting crate firehazard 0.0.0-2022-09-10 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate firehazard 0.0.0-2022-09-10 on toolchain b0696a5160711c068cb1f01b7437db7990d15750
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml
[INFO] removed /workspace/builds/worker-0-tc1/source/rust-toolchain.toml
[INFO] started tweaking crates.io crate firehazard 0.0.0-2022-09-10
[INFO] finished tweaking crates.io crate firehazard 0.0.0-2022-09-10
[INFO] tweaked toml for crates.io crate firehazard 0.0.0-2022-09-10 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] crate crates.io crate firehazard 0.0.0-2022-09-10 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" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded abistr v0.2.0-rc3
[INFO] [stderr]   Downloaded abibool v0.5.3
[INFO] [stderr]   Downloaded abistr-macros v0.2.0-rc3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b79e23867fb7b9dd731256c15eeb0cee28efcf5783503a4d1832aee205bb01d5
[INFO] running `Command { std: "docker" "start" "-a" "b79e23867fb7b9dd731256c15eeb0cee28efcf5783503a4d1832aee205bb01d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b79e23867fb7b9dd731256c15eeb0cee28efcf5783503a4d1832aee205bb01d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b79e23867fb7b9dd731256c15eeb0cee28efcf5783503a4d1832aee205bb01d5", kill_on_drop: false }`
[INFO] [stdout] b79e23867fb7b9dd731256c15eeb0cee28efcf5783503a4d1832aee205bb01d5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4a0496e594cbc42b098ef90dd767153cecaae1101042e80f33b4cd291a6ecacd
[INFO] running `Command { std: "docker" "start" "-a" "4a0496e594cbc42b098ef90dd767153cecaae1101042e80f33b4cd291a6ecacd", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]    Compiling abistr-macros v0.2.0-rc3
[INFO] [stderr]     Checking widestring v1.0.2
[INFO] [stderr]    Compiling firehazard v0.0.0-2022-09-10 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking abibool v0.5.3
[INFO] [stderr]    Compiling quote v1.0.21
[INFO] [stderr]     Checking abistr v0.2.0-rc3
[INFO] [stderr]    Compiling bytemuck_derive v1.2.1
[INFO] [stderr]     Checking bytemuck v1.12.1
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_child_shutdown.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::shared::winerror::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::shared::minwindef::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use winapi::shared::windef::HWND;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]   --> examples/ui_basic_window.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use winapi::um::wingdi::{CreateSolidBrush, RGB};
[INFO] [stdout]    |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]   --> examples/ui_basic_window.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use winapi::um::winuser::*;
[INFO] [stdout]    |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `winapi::shared::minwindef::*`, `winapi::shared::windef::HWND`, `winapi::um::libloaderapi::GetModuleHandleW`, `winapi::um::wingdi::CreateSolidBrush`, `winapi::um::wingdi::RGB`, `winapi::um::winuser::*`
[INFO] [stdout]   --> examples/ui_basic_window.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout] 7  | use winapi::shared::minwindef::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 8  | use winapi::shared::windef::HWND;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 9  | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 | use winapi::um::wingdi::{CreateSolidBrush, RGB};
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^  ^^^
[INFO] [stdout] 11 | use winapi::um::winuser::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `firehazard::process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use firehazard::process::ThreadAttributeList;
[INFO] [stdout]   |                 ^^^^^^^ could not find `process` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/run.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use winapi::um::winbase::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use winapi::ctypes::c_void;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use winapi::shared::minwindef::FALSE;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use winapi::um::handleapi::DuplicateHandle;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use winapi::um::minwinbase::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::um::winnt::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `debug`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         use debug::DebugEventU::*;
[INFO] [stdout]    |             ^^^^^ use of undeclared crate or module `debug`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `firehazard::job`
[INFO] [stdout]  --> examples/max_sandbox/job.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use firehazard::job::*;
[INFO] [stdout]   |                     ^^^ could not find `job` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:13:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:11:51
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:11:27
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                           ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(std::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                           ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `FromLocalHandle` in this scope
[INFO] [stdout]   --> examples/less_trivial.rs:43:29
[INFO] [stdout]    |
[INFO] [stdout] 43 | unsafe fn env_var_handle<H: FromLocalHandle>(name: &str) -> H {
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/less_trivial.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:21:35
[INFO] [stdout]    |
[INFO] [stdout] 21 |             restricted: Some(vec![sid!(S-1-0-0)]),
[INFO] [stdout]    |                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_self_policy.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use winapi::um::winnt::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:60:27
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let users       = sid!(S-1-5-32-545);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/less_trivial.rs:26:35
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut write_handle        : io::WriteHandle<'static>  = unsafe { env_var_handle("%WRITE_HANDLE%"          ) };
[INFO] [stdout]    |                                   ^^
[INFO] [stdout]    |                                   |
[INFO] [stdout]    |                                   use of undeclared crate or module `io`
[INFO] [stdout]    |                                   help: a builtin type with a similar name exists: `i8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/less_trivial.rs:27:35
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let read_handle_noinherit   : io::ReadHandle<'static>   = unsafe { env_var_handle("%READ_HANDLE_NOINHERIT%" ) };
[INFO] [stdout]    |                                   ^^
[INFO] [stdout]    |                                   |
[INFO] [stdout]    |                                   use of undeclared crate or module `io`
[INFO] [stdout]    |                                   help: a builtin type with a similar name exists: `i8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `output_debug_string_a` in this scope
[INFO] [stdout]   --> examples/less_trivial.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 |     output_debug_string_a(cstr!("sandbox"));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_handle_information` in this scope
[INFO] [stdout]   --> examples/less_trivial.rs:28:18
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let _ = dbg!(get_handle_information(write_handle));
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_handle_information` in this scope
[INFO] [stdout]   --> examples/less_trivial.rs:39:50
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let _ = dbg!(std::panic::catch_unwind(|| get_handle_information(read_handle_noinherit)));
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:61:27
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let everyone    = sid!(S-1-1-0);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_self_shutdown.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use winapi::shared::winerror::ERROR_ACCESS_DENIED;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:62:27
[INFO] [stdout]    |
[INFO] [stdout] 62 |         let null        = sid!(S-1-0-0);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:13:27
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                           ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(std::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                           ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_integrity.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:32
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:55
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |                                                       ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:79
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let restrictive = create_restricted_token(&permissive, None, None, Some(&[privilege::LuidAndAttributes::new(se_shutdown, privilege::A...
[INFO] [stdout]    |                                                                               ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub mitigation_policy:  process::creation::MitigationPolicy,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:8:29
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub child_policy:       process::creation::ChildProcessPolicyFlags,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |         let mut msg : MSG = Default::default();
[INFO] [stdout]    |                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PM_REMOVE` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:31:65
[INFO] [stdout]    |
[INFO] [stdout] 31 |         while unsafe { PeekMessageW(&mut msg, null_mut(), 0, 0, PM_REMOVE) } != 0 {
[INFO] [stdout]    |                                                                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "less_trivial") due to 7 previous errors; 1 warning emitted
[INFO] [stdout] error[E0425]: cannot find function `sleep_ms` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |             sleep_ms(100);
[INFO] [stdout]    |             ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::thread::sleep_ms;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:126
[INFO] [stdout]    |
[INFO] [stdout] 24 | ...e::LuidAndAttributes::new(se_shutdown, privilege::Attributes::default())]), None).unwrap();
[INFO] [stdout]    |                                           ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:50:27
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn get_exe_hinstance() -> HINSTANCE {
[INFO] [stdout]    |                           ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:56:24
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn create_window(atom: ATOM) -> HWND {
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:58:68
[INFO] [stdout]    |
[INFO] [stdout] 58 |         0, atom as usize as _, cstr16!("Example Window").as_ptr(), WS_OVERLAPPEDWINDOW,
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         CW_USEDEFAULT, CW_USEDEFAULT, 400, 300,
[INFO] [stdout]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:59:24
[INFO] [stdout]    |
[INFO] [stdout] 59 |         CW_USEDEFAULT, CW_USEDEFAULT, 400, 300,
[INFO] [stdout]    |                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_SHOWDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:64:58
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let _was_already_visible = unsafe { ShowWindow(hwnd, SW_SHOWDEFAULT) };
[INFO] [stdout]    |                                                          ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:68:31
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn register_window_class() -> ATOM {
[INFO] [stdout]    |                               ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:69:57
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let cursor_arrow = unsafe { LoadCursorW(null_mut(), IDC_ARROW) };
[INFO] [stdout]    |                                                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:74:43
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let atom = unsafe { RegisterClassExW(&WNDCLASSEXW {
[INFO] [stdout]    |                                           ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:75:35
[INFO] [stdout]    |
[INFO] [stdout] 75 |         cbSize:         size_of::<WNDCLASSEXW>() as _,
[INFO] [stdout]    |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn register_window_class<WNDCLASSEXW>() -> ATOM {
[INFO] [stdout]    |                         +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/ui_basic_window.rs:83:76
[INFO] [stdout]    |
[INFO] [stdout] 83 |     assert!(atom != 0, "RegisterClassExW failed with GetLastError()={:?}", Error::get_last());
[INFO] [stdout]    |                                                                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:52
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:66
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:82
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:93
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `firehazard::process`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use firehazard::process::{environment, StartupInfoW};
[INFO] [stdout]    |                 ^^^^^^^ could not find `process` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/ui_basic_window.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:29
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:52
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |                                                    ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `output_debug_string_w` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     output_debug_string_w(cstr16!("sandbox"));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `revert_to_self` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 |     revert_to_self().unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:9:29
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub dab_policy:         process::creation::DesktopAppPolicyFlags,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let si = process::StartupInfoW::default();
[INFO] [stdout]    |              ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:31:24
[INFO] [stdout]    |
[INFO] [stdout] 31 |         while unsafe { PeekMessageW(&mut msg, null_mut(), 0, 0, PM_REMOVE) } != 0 {
[INFO] [stdout]    |                        ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:36:22
[INFO] [stdout]    |
[INFO] [stdout] 36 |             unsafe { TranslateMessage(&msg) };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:118
[INFO] [stdout]    |
[INFO] [stdout] 33 | ... None, false, process::DETACHED_PROCESS, process::environment::Inherit, (), &si)?;
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |             unsafe { DispatchMessageW(&msg) };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_integrity") due to 11 previous errors; 1 warning emitted
[INFO] [stdout] error[E0412]: cannot find type `Error` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:30:76
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn shutdown_as_user(args: &str, token: &token::OwnedHandle) -> Result<u32, Error> {
[INFO] [stdout]    |                                                                            ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_child_shutdown.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:45:22
[INFO] [stdout]    |
[INFO] [stdout] 45 |             unsafe { WaitMessage() };
[INFO] [stdout]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:41
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sleep_ms` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |         sleep_ms(3000);
[INFO] [stdout]    |         ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 10 + use std::thread::sleep_ms;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:64
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                                ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use firehazard::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_thread_id` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:19:40
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let original = open_thread_desktop(get_current_thread_id()).unwrap();
[INFO] [stdout]    |                                        ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:57:25
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let hwnd = unsafe { CreateWindowExW(
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_shutdown.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:64:41
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let _was_already_visible = unsafe { ShowWindow(hwnd, SW_SHOWDEFAULT) };
[INFO] [stdout]    |                                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_ASLR_POLICY` in this scope
[INFO] [stdout]  --> examples/restrict_self_policy.rs:7:22
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut policy = PROCESS_MITIGATION_ASLR_POLICY { Flags: 0 };
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut policy = PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_CHILD_PROCESS_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut policy = PROCESS_MITIGATION_CHILD_PROCESS_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:25:22
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut policy = PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:22
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_DEP_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:31:22
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut policy = PROCESS_MITIGATION_DEP_POLICY { Flags: 0, Permanent: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_DYNAMIC_CODE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut policy = PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_thread_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:19:20
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let original = open_thread_desktop(get_current_thread_id()).unwrap();
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:43:22
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let mut policy = PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_FONT_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:47:22
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let mut policy = PROCESS_MITIGATION_FONT_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:69:33
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let cursor_arrow = unsafe { LoadCursorW(null_mut(), IDC_ARROW) };
[INFO] [stdout]    |                                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:17:60
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let restrictive = create_restricted_token(&permissive, token::DISABLE_MAX_PRIVILEGE, None, None, None).unwrap();
[INFO] [stdout]    |                                                            ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:21:66
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let desktop = create_desktop_w(desktop_name, (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                                                                  ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_IMAGE_LOAD_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:51:22
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let mut policy = PROCESS_MITIGATION_IMAGE_LOAD_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:57:22
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let mut policy = PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:66:22
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let mut policy = PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:71:22
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let mut policy = PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:75:22
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let mut policy = PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `lookup_privilege_value_a` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:16:23
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let se_shutdown = lookup_privilege_value_a(cstr!("SeShutdownPrivilege")).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:74:25
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let atom = unsafe { RegisterClassExW(&WNDCLASSEXW {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_policy.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_desktop_w` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:21:19
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let desktop = create_desktop_w(desktop_name, (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:18:11
[INFO] [stdout]    |
[INFO] [stdout] 18 |         = token::QUERY              // Required to enumerate the `token.privileges()`, as used internally by `privileges_disable_if`
[INFO] [stdout]    |           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:17:23
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let restrictive = create_restricted_token(&permissive, token::DISABLE_MAX_PRIVILEGE, None, None, None).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `heap_enable_termination_on_corruption` in this scope
[INFO] [stdout]  --> examples/restrict_self_policy.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     heap_enable_termination_on_corruption().unwrap();
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 |         | token::ADJUST_PRIVILEGES  // Required to modify the privileges
[INFO] [stdout]    |           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 |     switch_desktop(&original).expect("unable to switch_desktop to original desktop, that's a bit sketchy");
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:21:36
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let token = open_process_token(get_current_process(), access).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |             PostQuitMessage(0);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `lookup_privilege_value_a` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let se_shutdown = lookup_privilege_value_a(cstr!("SeShutdownPrivilege")).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let token = open_process_token(get_current_process(), access).unwrap();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `argv_to_command_line_0` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:28:23
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let mut cmd = argv_to_command_line_0(t, args);
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:95:13
[INFO] [stdout]    |
[INFO] [stdout] 95 |             DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_w` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |         create_process_w((), Some(&mut cmd[..]), None, None, false, None, environment::Inherit, (), &StartupInfoW {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let restrictive = create_restricted_token(&permissive, None, None, Some(&[privilege::LuidAndAttributes::new(se_shutdown, privilege::A...
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 37 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:91
[INFO] [stdout]    |
[INFO] [stdout] 33 | ... Some(&mut args[..]), None, None, false, process::DETACHED_PROCESS, process::environment::Inherit, (), &si)?;
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     switch_desktop(&desktop).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:19:15
[INFO] [stdout]    |
[INFO] [stdout] 19 |             | process::creation::mitigation_policy::DEP_ENABLE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         wait_for_process(&child.process)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_as_user_w` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:15
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let cmd = create_process_as_user_w(token, (), Some(&mut args[..]), None, None, false, process::DETACHED_PROCESS, process::environment...
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "ui_basic_window") due to 38 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:21:15
[INFO] [stdout]    |
[INFO] [stdout] 21 |             | process::creation::mitigation_policy::SEHOP_ENABLE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     wait_for_process(&cmd.process)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 45 |     switch_desktop(&original).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_shutdown") due to 7 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn shutdown_as_user(args: &str, token: &token::OwnedHandle) -> Result<u32, Error> {
[INFO] [stdout]    |                                         ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:22:15
[INFO] [stdout]    |
[INFO] [stdout] 22 |             | process::creation::mitigation_policy::force_relocate_images::ALWAYS_ON_REQ_RELOCS // chrome.exe doesn't bother with this
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:23:15
[INFO] [stdout]    |
[INFO] [stdout] 23 |             | process::creation::mitigation_policy::heap_terminate::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_child_shutdown") due to 18 previous errors; 1 warning emitted
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:35:50
[INFO] [stdout]    |
[INFO] [stdout] 35 |     assert_eq!(core::mem::size_of::<usize>()==8, set_process_mitigation_policy(policy).is_err()); // ERROR_NOT_SUPPORTED - possibly becau...
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:24:15
[INFO] [stdout]    |
[INFO] [stdout] 24 |             | process::creation::mitigation_policy::bottom_up_aslr::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "ui_switch_desktop") due to 13 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:25:15
[INFO] [stdout]    |
[INFO] [stdout] 25 |             | process::creation::mitigation_policy::high_entropy_aslr::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 41 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:26:15
[INFO] [stdout]    |
[INFO] [stdout] 26 |             | process::creation::mitigation_policy::strict_handle_checks::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 45 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:27:45
[INFO] [stdout]    |
[INFO] [stdout] 27 | ...   | (!target.allow.same_desktop * process::creation::mitigation_policy::win32k_system_call_disable::ALWAYS_ON) // user32.dll(?) requi...
[INFO] [stdout]    |                                       ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:28:15
[INFO] [stdout]    |
[INFO] [stdout] 28 |             | process::creation::mitigation_policy::extension_point_disable::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 49 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:29:45
[INFO] [stdout]    |
[INFO] [stdout] 29 |             | (!target.allow.dynamic_code * process::creation::mitigation_policy::prohibit_dynamic_code::ALWAYS_ON)
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:30:15
[INFO] [stdout]    |
[INFO] [stdout] 30 |             | process::creation::mitigation_policy::control_flow_guard::ALWAYS_ON               // Redundant?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...   | process::creation::mitigation_policy::control_flow_guard::EXPORT_SUPPRESSION      // https://docs.microsoft.com/en-us/windows/win...
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:32:15
[INFO] [stdout]    |
[INFO] [stdout] 32 |             | process::creation::mitigation_policy::block_non_microsoft_binaries::ALWAYS_ON     // Redundant?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:33:15
[INFO] [stdout]    |
[INFO] [stdout] 33 |             | process::creation::mitigation_policy::block_non_microsoft_binaries::ALLOW_STORE   // ?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:34:45
[INFO] [stdout]    |
[INFO] [stdout] 34 | ...   | (!target.allow.same_desktop * process::creation::mitigation_policy::font_disable::ALWAYS_ON) // user32.dll(?) requires access on ...
[INFO] [stdout]    |                                       ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:73:5
[INFO] [stdout]    |
[INFO] [stdout] 73 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:35:15
[INFO] [stdout]    |
[INFO] [stdout] 35 |             | process::creation::mitigation_policy::image_load_no_remote::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:77:5
[INFO] [stdout]    |
[INFO] [stdout] 77 |     set_process_mitigation_policy(policy).unwrap(); // XXX: "This structure is not supported."
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 36 |             | process::creation::mitigation_policy::image_load_no_low_label::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 26 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |             | process::creation::mitigation_policy::image_load_prefer_system32::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:41:15
[INFO] [stdout]    |
[INFO] [stdout] 41 |             | process::creation::mitigation_policy2::loader_integrity_continuity::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:42:15
[INFO] [stdout]    |
[INFO] [stdout] 42 |             | process::creation::mitigation_policy2::strict_control_flow_guard::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_policy") due to 27 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |             | process::creation::mitigation_policy2::module_tampering_protection::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 |             | process::creation::mitigation_policy2::restrict_indirect_branch_prediction::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:45:45
[INFO] [stdout]    |
[INFO] [stdout] 45 |             | (!target.allow.dynamic_code * process::creation::mitigation_policy2::allow_downgrade_dynamic_code_policy::ALWAYS_OFF)
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:46:15
[INFO] [stdout]    |
[INFO] [stdout] 46 |             | process::creation::mitigation_policy2::speculative_store_bypass_disable::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |             | process::creation::mitigation_policy2::cet_user_shadow_stacks::ALWAYS_ON      // Redundant
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:48:15
[INFO] [stdout]    |
[INFO] [stdout] 48 |             | process::creation::mitigation_policy2::cet_user_shadow_stacks::STRICT_MODE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:49:15
[INFO] [stdout]    |
[INFO] [stdout] 49 |             | process::creation::mitigation_policy2::user_cet_set_context_ip_validation::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:50:44
[INFO] [stdout]    |
[INFO] [stdout] 50 |             | (!target.allow.missing_cet * process::creation::mitigation_policy2::block_non_cet_binaries::ALWAYS_ON)
[INFO] [stdout]    |                                            ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:53:15
[INFO] [stdout]    |
[INFO] [stdout] 53 |             | process::creation::mitigation_policy2::cet_dynamic_apis_out_of_proc_only::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:57:35
[INFO] [stdout]    |
[INFO] [stdout] 57 |         let mitigation_policy   = process::creation::MitigationPolicy::from((policy1, policy2));
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:58:35
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let child_policy        = process::creation::child_process::RESTRICTED;
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:59:35
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let dab_policy          = process::creation::desktop_app_breakaway::ENABLE_PROCESS_TREE;
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |         process::ThreadAttributeList::try_from(&[
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:70:13
[INFO] [stdout]    |
[INFO] [stdout] 70 |             process::ThreadAttributeRef::mitigation_policy(&self.mitigation_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |             process::ThreadAttributeRef::child_process_policy(&self.child_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:72:13
[INFO] [stdout]    |
[INFO] [stdout] 72 |             process::ThreadAttributeRef::desktop_app_policy(&self.dab_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |             process::ThreadAttributeRef::component_filter_flags(&self.component_filter),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:80:13
[INFO] [stdout]    |
[INFO] [stdout] 80 |             process::ThreadAttributeRef::job_list(&self.job_list[..]),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             process::ThreadAttributeRef::handle_list(&self.inherit[..]),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:51:39
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 let thread = unsafe { thread::OwnedHandle::from_raw(thread) }.unwrap();
[INFO] [stdout]    |                                       ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 |                 let thread = unsafe { thread::OwnedHandle::from_raw(thread) }.unwrap();
[INFO] [stdout]    |                                       ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:85:38
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let hfile = unsafe { io::FileHandle::from_raw(event.hFile) }.unwrap();
[INFO] [stdout]    |                                      ^^ use of undeclared crate or module `io`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:18:42
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_information_job_object(&mut job, job::object::BasicUiRestrictions { ui_restrictions_class: ()
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | ...   | job::object::uilimit::DESKTOP            // Prevents processes associated with the job from creating desktops and switching deskt...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:20:11
[INFO] [stdout]    |
[INFO] [stdout] 20 | ...   | job::object::uilimit::DISPLAYSETTINGS    // Prevents processes associated with the job from calling the ChangeDisplaySettings fun...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:21:11
[INFO] [stdout]    |
[INFO] [stdout] 21 | ...   | job::object::uilimit::EXITWINDOWS        // Prevents processes associated with the job from calling the ExitWindows or ExitWindow...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:22:11
[INFO] [stdout]    |
[INFO] [stdout] 22 | ...   | job::object::uilimit::GLOBALATOMS        // Prevents processes associated with the job from accessing global atoms. When this fla...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:23:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | ...   | job::object::uilimit::HANDLES            // Prevents processes associated with the job from using USER handles owned by processes...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 24 |         | job::object::uilimit::READCLIPBOARD      // Prevents processes associated with the job from reading data from the clipboard.
[INFO] [stdout]    |           ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:25:11
[INFO] [stdout]    |
[INFO] [stdout] 25 | ...   | job::object::uilimit::SYSTEMPARAMETERS   // Prevents processes associated with the job from changing system parameters by using t...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:26:11
[INFO] [stdout]    |
[INFO] [stdout] 26 |         | job::object::uilimit::WRITECLIPBOARD     // Prevents processes associated with the job from writing data to the clipboard.
[INFO] [stdout]    |           ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:29:42
[INFO] [stdout]    |
[INFO] [stdout] 29 |     set_information_job_object(&mut job, job::object::EndOfJobTimeInformation {
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:32:33
[INFO] [stdout]    |
[INFO] [stdout] 32 |         end_of_job_time_action: job::object::TERMINATE_AT_END_OF_JOB,
[INFO] [stdout]    |                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:38:42
[INFO] [stdout]    |
[INFO] [stdout] 38 |     set_information_job_object(&mut job, job::object::NetRateControlInformation {
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:40:25
[INFO] [stdout]    |
[INFO] [stdout] 40 |         control_flags:  job::object::NET_RATE_CONTROL_ENABLE | job::object::NET_RATE_CONTROL_MAX_BANDWIDTH,
[INFO] [stdout]    |                         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:40:64
[INFO] [stdout]    |
[INFO] [stdout] 40 |         control_flags:  job::object::NET_RATE_CONTROL_ENABLE | job::object::NET_RATE_CONTROL_MAX_BANDWIDTH,
[INFO] [stdout]    |                                                                ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:44:42
[INFO] [stdout]    |
[INFO] [stdout] 44 |     set_information_job_object(&mut job, job::object::CpuRateControlInformation::from_weight(5, false, false)).unwrap();
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:54:37
[INFO] [stdout]    |
[INFO] [stdout] 54 |     set_information_job_object(job, job::object::ExtendedLimitInformation {
[INFO] [stdout]    |                                     ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:55:34
[INFO] [stdout]    |
[INFO] [stdout] 55 |         basic_limit_information: job::object::BasicLimitInformation {
[INFO] [stdout]    |                                  ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:57:19
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 | job::object::limit::ACTIVE_PROCESS
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:58:19
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 | job::object::limit::DIE_ON_UNHANDLED_EXCEPTION
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 | job::object::limit::JOB_MEMORY
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:60:19
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 | job::object::limit::KILL_ON_JOB_CLOSE
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `security`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:21:48
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let (_read, write) = io::create_pipe(Some(&security::Attributes::new(None, true)), 0).unwrap();
[INFO] [stdout]    |                                                ^^^^^^^^ use of undeclared crate or module `security`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:24:18
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut si = process::StartupInfoExW::default();
[INFO] [stdout]    |                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]  --> examples/max_sandbox/settings.rs:9:25
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub integrity:      sid::integrity::Level,
[INFO] [stdout]   |                         ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]   |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub integrity:      std::integrity::Level,
[INFO] [stdout]   |                         ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:70:42
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let se_change_notify_privilege = privilege::name::CHANGE_NOTIFY.luid();
[INFO] [stdout]    |                                          ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:110:33
[INFO] [stdout]     |
[INFO] [stdout] 110 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 110 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:143:33
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:163:33
[INFO] [stdout]     |
[INFO] [stdout] 163 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 163 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:182:33
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:20:99
[INFO] [stdout]    |
[INFO] [stdout] 20 | ..._or(&all_group_sids).iter().copied().map(|r| sid::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 20 |         Some(&target.spawn.restricted.as_ref().unwrap_or(&all_group_sids).iter().copied().map(|r| std::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                                                                   ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:28:102
[INFO] [stdout]    |
[INFO] [stdout] 28 | ..._or(&all_group_sids).iter().copied().map(|r| sid::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 28 |         Some(&target.lockdown.restricted.as_ref().unwrap_or(&all_group_sids).iter().copied().map(|r| std::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                                                                      ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:31:36
[INFO] [stdout]    |
[INFO] [stdout] 31 |     permissive.set_integrity_level(sid::AndAttributes::new(&target.spawn.integrity, None)).unwrap();
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 31 |     permissive.set_integrity_level(std::AndAttributes::new(&target.spawn.integrity, None)).unwrap();
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:32:36
[INFO] [stdout]    |
[INFO] [stdout] 32 |     restricted.set_integrity_level(sid::AndAttributes::new(&target.spawn.integrity, None)).unwrap(); // lower child token to target.lockd...
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 32 |     restricted.set_integrity_level(std::AndAttributes::new(&target.spawn.integrity, None)).unwrap(); // lower child token to target.lockdown.integrity post-spawn
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DEBUG_EVENT` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |         let DEBUG_EVENT { dwProcessId, dwThreadId, .. } = *event;
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DBG_CONTINUE` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:25:97
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let dbg_continue                = move || continue_debug_event(dwProcessId, dwThreadId, DBG_CONTINUE).unwrap();
[INFO] [stdout]    |                                                                                                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DBG_EXCEPTION_NOT_HANDLED` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:26:97
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dbg_exception_not_handled   = move || continue_debug_event(dwProcessId, dwThreadId, DBG_EXCEPTION_NOT_HANDLED).unwrap();
[INFO] [stdout]    |                                                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Exception` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             Exception(event) => {
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `CreateThread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |             CreateThread(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `CreateProcess` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 |             CreateProcess(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ExitThread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |             ExitThread(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:72:88
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 println!("[{dwProcessId}:{dwThreadId}] thread exited with code: {:?}", Error::from(event.dwExitCode));
[INFO] [stdout]    |                                                                                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ExitProcess` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             ExitProcess(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:78:89
[INFO] [stdout]    |
[INFO] [stdout] 78 |                 println!("[{dwProcessId}:{dwThreadId}] process exited with code: {:?}", Error::from(event.dwExitCode));
[INFO] [stdout]    |                                                                                         ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LoadDll` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             LoadDll(event) => {
[INFO] [stdout]    |             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `UnloadDll` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             UnloadDll(event)  => {
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `DebugString` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:97:13
[INFO] [stdout]    |
[INFO] [stdout] 97 |             DebugString(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Rip` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             Rip(_event) => {
[INFO] [stdout]     |             ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `STARTF_UNTRUSTEDSOURCE` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:28:35
[INFO] [stdout]    |
[INFO] [stdout] 28 |     si.startup_info.flags       = STARTF_UNTRUSTEDSOURCE | STARTF_USESTDHANDLES;
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `STARTF_USESTDHANDLES` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:28:60
[INFO] [stdout]    |
[INFO] [stdout] 28 |     si.startup_info.flags       = STARTF_UNTRUSTEDSOURCE | STARTF_USESTDHANDLES;
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:56:39
[INFO] [stdout]    |
[INFO] [stdout] 56 |         std::thread::spawn(move || -> io::Result<()> {
[INFO] [stdout]    |                                       ^^ use of undeclared crate or module `io`
[INFO] [stdout]    |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 56 |         std::thread::spawn(move || -> i8::Result<()> {
[INFO] [stdout]    |                                       ~~
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:71:35
[INFO] [stdout]    |
[INFO] [stdout] 71 |         Err(err) if err.kind() == io::ErrorKind::BrokenPipe => {},
[INFO] [stdout]    |                                   ^^ use of undeclared crate or module `io`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 71 -         Err(err) if err.kind() == io::ErrorKind::BrokenPipe => {},
[INFO] [stdout] 71 +         Err(err) if err.kind() == ErrorKind::BrokenPipe => {},
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:74:54
[INFO] [stdout]    |
[INFO] [stdout] 74 |     assert!(exit == 0, "exit code: 0x{exit:08x} {}", Error::from(exit).friendly());
[INFO] [stdout]    |                                                      ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:39:23
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout]    |                       ^^^ use of undeclared crate or module `acl`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::thread::Builder;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Builder`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 39 -         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout] 39 +         let mut acl = Builder::new(acl::REVISION);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/job.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `job` is imported redundantly
[INFO] [stdout]  --> examples/max_sandbox/run.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::{*, job};
[INFO] [stdout]   |             -  ^^^
[INFO] [stdout]   |             |
[INFO] [stdout]   |             the item `job` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/run.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/settings.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:56
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:79
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                                               ^^^^^
[INFO] [stdout]    |                                                                               |
[INFO] [stdout]    |                                                                               use of undeclared crate or module `token`
[INFO] [stdout]    |                                                                               help: a struct with a similar name exists: `Token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:37
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: no implementation for `() | bool`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |   ...   let policy1 = ()
[INFO] [stdout]    |  _____________________-
[INFO] [stdout] 19 | | ...       | process::creation::mitigation_policy::DEP_ENABLE
[INFO] [stdout] 20 | | ...       //| process::creation::mitigation_policy::DEP_ATL_THUNK_ENABLE
[INFO] [stdout] 21 | | ...       | process::creation::mitigation_policy::SEHOP_ENABLE
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | ...       | process::creation::mitigation_policy::high_entropy_aslr::ALWAYS_ON
[INFO] [stdout] 26 | | ...       | process::creation::mitigation_policy::strict_handle_checks::ALWAYS_ON
[INFO] [stdout]    | |_________________________________________________________________________________- ()
[INFO] [stdout] 27 |   ...       | (!target.allow.same_desktop * process::creation::mitigation_policy::win32k_system_call_disable::ALWAYS_ON) // user32.dll(?) r...
[INFO] [stdout]    |             ^ ---------------------------------------------------------------------------------------------------------- bool
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: no implementation for `Option<_> | bool`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |           let policy2 = None
[INFO] [stdout]    |  _______________________-
[INFO] [stdout] 41 | |             | process::creation::mitigation_policy2::loader_integrity_continuity::ALWAYS_ON
[INFO] [stdout] 42 | |             | process::creation::mitigation_policy2::strict_control_flow_guard::ALWAYS_ON
[INFO] [stdout] 43 | |             | process::creation::mitigation_policy2::module_tampering_protection::ALWAYS_ON
[INFO] [stdout] 44 | |             | process::creation::mitigation_policy2::restrict_indirect_branch_prediction::ALWAYS_ON
[INFO] [stdout]    | |___________________________________________________________________________________________________- Option<_>
[INFO] [stdout] 45 |               | (!target.allow.dynamic_code * process::creation::mitigation_policy2::allow_downgrade_dynamic_code_policy::ALWAYS_OFF)
[INFO] [stdout]    |               ^ --------------------------------------------------------------------------------------------------------------------- bool
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_debug_event_ex` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |         let event = wait_for_debug_event_ex(None).unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `continue_debug_event` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:25:51
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let dbg_continue                = move || continue_debug_event(dwProcessId, dwThreadId, DBG_CONTINUE).unwrap();
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `continue_debug_event` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:26:51
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dbg_exception_not_handled   = move || continue_debug_event(dwProcessId, dwThreadId, DBG_EXCEPTION_NOT_HANDLED).unwrap();
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:49:31
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 let process = get_current_process().as_handle();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:50:98
[INFO] [stdout]    |
[INFO] [stdout] 50 | ...le(process, thread, process, &mut thread, access::GENERIC_ALL.into(), false as _, 0) });
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:53:17
[INFO] [stdout]    |
[INFO] [stdout] 53 |                 set_thread_token(&thread, &tokens.permissive).unwrap();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:62:31
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 let process = get_current_process().as_handle();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:63:98
[INFO] [stdout]    |
[INFO] [stdout] 63 | ...le(process, thread, process, &mut thread, access::GENERIC_ALL.into(), false as _, 0) });
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:66:17
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 set_thread_token(&thread, &tokens.permissive).unwrap(); // already set?
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_final_path_name_by_handle` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:86:34
[INFO] [stdout]    |
[INFO] [stdout] 86 |                 let image_name = get_final_path_name_by_handle(hfile, 0).unwrap();
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_process_memory` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:102:43
[INFO] [stdout]     |
[INFO] [stdout] 102 |                     let buffer = unsafe { read_process_memory(&pi.process, event.lpDebugStringData.cast(), &mut buffer[..]) }.unwrap();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_process_memory` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:107:43
[INFO] [stdout]     |
[INFO] [stdout] 107 |                     let buffer = unsafe { read_process_memory(&pi.process, event.lpDebugStringData.cast(), &mut buffer[..]) }.unwrap();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `suspend_thread` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:113:54
[INFO] [stdout]     |
[INFO] [stdout] 113 |                     for thread in threads.values() { suspend_thread(thread).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `debug_active_process_stop` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:114:21
[INFO] [stdout]     |
[INFO] [stdout] 114 |                     debug_active_process_stop(pi.process_id).unwrap();
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:117:54
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     for thread in threads.values() { set_thread_token(thread, None).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `resume_thread` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:118:54
[INFO] [stdout]     |
[INFO] [stdout] 118 |                     for thread in threads.values() { resume_thread(thread).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_job_object_a` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:13:19
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let mut job = create_job_object_a(None, ()).unwrap();
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_information_job_object(&mut job, job::object::BasicUiRestrictions { ui_restrictions_class: ()
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 |     set_information_job_object(&mut job, job::object::EndOfJobTimeInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 |     set_information_job_object(&mut job, job::object::NetRateControlInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 44 |     set_information_job_object(&mut job, job::object::CpuRateControlInformation::from_weight(5, false, false)).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     set_information_job_object(job, job::object::ExtendedLimitInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:10:87
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let _alt_desktop = create_desktop_a(cstr!("max_sandbox_desktop"), (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                                                                                       ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_desktop_a` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let _alt_desktop = create_desktop_a(cstr!("max_sandbox_desktop"), (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `exe_to_command_line_0` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut command_line = exe_to_command_line_0(exe);
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:21:26
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let (_read, write) = io::create_pipe(Some(&security::Attributes::new(None, true)), 0).unwrap();
[INFO] [stdout]    |                          ^^
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          use of undeclared crate or module `io`
[INFO] [stdout]    |                          help: a builtin type with a similar name exists: `i8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> examples/max_sandbox/run.rs:23:76
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let attribute_list = attribute::List::new(&target, &job, vec![(&write).into()]);
[INFO] [stdout]    |                                                                            ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:34
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:69
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                                                     ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:97
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                                                                                 ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_as_user_w` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let pi = create_process_as_user_w(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 48 |     set_thread_token(&pi.thread, &tokens.permissive).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `resume_thread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 50 |     resume_thread(&pi.thread).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:67:16
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let exit = wait_for_process(&pi.process).unwrap();
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:52
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:75
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                                                           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:33
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token_filter` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:15:22
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let permissive = create_restricted_token_filter(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token_filter` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:23:22
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let restricted = create_restricted_token_filter(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:54
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                                                      ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `security`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:79
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                                                                               ^^^^^^^^ use of undeclared crate or module `security`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:104
[INFO] [stdout]    |
[INFO] [stdout] 33 | ...ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); // primary -> impersonation token
[INFO] [stdout]    |                                               ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `duplicate_token_ex` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:39:41
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout]    |                                         ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:40:21
[INFO] [stdout]    |
[INFO] [stdout] 40 | ...   acl.add_acl(acl::REVISION, 0, restricted.default_dacl().unwrap().default_dacl()).unwrap(); // allow debuggers to attach, task manag...
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:36
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:51
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                                   ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:75
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                                                           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:53:34
[INFO] [stdout]    |
[INFO] [stdout] 53 |         use std::io::{BufReader, BufRead};
[INFO] [stdout]    |                                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:11:33
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub job_list:           Vec<job::Handle<'s>>,
[INFO] [stdout]    |                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handle`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:12:33
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub inherit:            Vec<handle::Borrowed<'s>>,
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared crate or module `handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:17:65
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(target: &crate::settings::Target, job: impl Into<job::Handle<'s>>, inherit: impl IntoIterator<Item = handle::Borrowed<'s>>...
[INFO] [stdout]    |                                                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handle`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:17:117
[INFO] [stdout]    |
[INFO] [stdout] 17 | ...e<'s>>, inherit: impl IntoIterator<Item = handle::Borrowed<'s>>) -> Self {
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pi:         &process::Information,
[INFO] [stdout]    |                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:20:33
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut threads = HashMap::<thread::Id, thread::OwnedHandle>::new();
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:20:45
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut threads = HashMap::<thread::Id, thread::OwnedHandle>::new();
[INFO] [stdout]    |                                             ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:10:33
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub privileges:     HashSet<privilege::Luid>,
[INFO] [stdout]    |                                 ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:12:36
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub restricted:     Option<Vec<sid::Ptr<'static>>>,
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub restricted:     Option<Vec<std::Ptr<'static>>>,
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn create() -> job::OwnedHandle {
[INFO] [stdout]    |                    ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:53:22
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub fn relimit(job: &job::OwnedHandle, processes: u32) {
[INFO] [stdout]    |                      ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 |     pub permissive: token::OwnedHandle,
[INFO] [stdout]   |                     ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:11:29
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub enabled:        Vec<sid::Ptr<'static>>,
[INFO] [stdout]    |                             ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub enabled:        Vec<std::Ptr<'static>>,
[INFO] [stdout]    |                             ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub restricted: token::OwnedHandle,
[INFO] [stdout]   |                     ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 179 previous errors; 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0369, E0422, E0425, E0432, E0433, E0531.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "max_sandbox") due to 180 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "4a0496e594cbc42b098ef90dd767153cecaae1101042e80f33b4cd291a6ecacd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4a0496e594cbc42b098ef90dd767153cecaae1101042e80f33b4cd291a6ecacd", kill_on_drop: false }`
[INFO] [stdout] 4a0496e594cbc42b098ef90dd767153cecaae1101042e80f33b4cd291a6ecacd
[INFO] checking firehazard-0.0.0-2022-09-10 against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848
[INFO] extracting crate firehazard 0.0.0-2022-09-10 into /workspace/builds/worker-0-tc2/source
[INFO] validating manifest of crates.io crate firehazard 0.0.0-2022-09-10 on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml
[INFO] removed /workspace/builds/worker-0-tc2/source/rust-toolchain.toml
[INFO] started tweaking crates.io crate firehazard 0.0.0-2022-09-10
[INFO] finished tweaking crates.io crate firehazard 0.0.0-2022-09-10
[INFO] tweaked toml for crates.io crate firehazard 0.0.0-2022-09-10 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate crates.io crate firehazard 0.0.0-2022-09-10 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" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c1bb43fa1b0cc1fab6453032cd241abf74032188288af26ddd12c5deb1a8e8bb
[INFO] running `Command { std: "docker" "start" "-a" "c1bb43fa1b0cc1fab6453032cd241abf74032188288af26ddd12c5deb1a8e8bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c1bb43fa1b0cc1fab6453032cd241abf74032188288af26ddd12c5deb1a8e8bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c1bb43fa1b0cc1fab6453032cd241abf74032188288af26ddd12c5deb1a8e8bb", kill_on_drop: false }`
[INFO] [stdout] c1bb43fa1b0cc1fab6453032cd241abf74032188288af26ddd12c5deb1a8e8bb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f07b18d063364314ba946f3bb2301782156a12d25d5b9765cd0f72ecf4a802ce
[INFO] running `Command { std: "docker" "start" "-a" "f07b18d063364314ba946f3bb2301782156a12d25d5b9765cd0f72ecf4a802ce", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.43
[INFO] [stderr]    Compiling unicode-ident v1.0.3
[INFO] [stderr]    Compiling syn v1.0.99
[INFO] [stderr]    Compiling abistr-macros v0.2.0-rc3
[INFO] [stderr]    Compiling firehazard v0.0.0-2022-09-10 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking widestring v1.0.2
[INFO] [stderr]     Checking abibool v0.5.3
[INFO] [stderr]    Compiling quote v1.0.21
[INFO] [stderr]     Checking abistr v0.2.0-rc3
[INFO] [stderr]    Compiling bytemuck_derive v1.2.1
[INFO] [stderr]     Checking bytemuck v1.12.1
[INFO] [stdout] error[E0432]: unresolved import `firehazard::process`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use firehazard::process::{environment, StartupInfoW};
[INFO] [stdout]    |                 ^^^^^^^ could not find `process` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_child_shutdown.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::shared::winerror::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::shared::minwindef::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use winapi::shared::windef::HWND;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/ui_basic_window.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]   --> examples/ui_basic_window.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use winapi::um::wingdi::{CreateSolidBrush, RGB};
[INFO] [stdout]    |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]   --> examples/ui_basic_window.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use winapi::um::winuser::*;
[INFO] [stdout]    |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `winapi::shared::minwindef::*`, `winapi::shared::windef::HWND`, `winapi::um::libloaderapi::GetModuleHandleW`, `winapi::um::wingdi::CreateSolidBrush`, `winapi::um::wingdi::RGB`, `winapi::um::winuser::*`
[INFO] [stdout]   --> examples/ui_basic_window.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout] 7  | use winapi::shared::minwindef::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 8  | use winapi::shared::windef::HWND;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 9  | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 | use winapi::um::wingdi::{CreateSolidBrush, RGB};
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^  ^^^
[INFO] [stdout] 11 | use winapi::um::winuser::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `firehazard::process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use firehazard::process::ThreadAttributeList;
[INFO] [stdout]   |                 ^^^^^^^ could not find `process` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/run.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use winapi::um::winbase::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_self_policy.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use winapi::um::winnt::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use winapi::ctypes::c_void;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use winapi::shared::minwindef::FALSE;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use winapi::um::handleapi::DuplicateHandle;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use winapi::um::minwinbase::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::um::winnt::*;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `debug`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         use debug::DebugEventU::*;
[INFO] [stdout]    |             ^^^^^ use of undeclared crate or module `debug`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `firehazard::job`
[INFO] [stdout]  --> examples/max_sandbox/job.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use firehazard::job::*;
[INFO] [stdout]   |                     ^^^ could not find `job` in `firehazard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:79
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let restrictive = create_restricted_token(&permissive, None, None, Some(&[privilege::LuidAndAttributes::new(se_shutdown, privilege::A...
[INFO] [stdout]    |                                                                               ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:126
[INFO] [stdout]    |
[INFO] [stdout] 24 | ...e::LuidAndAttributes::new(se_shutdown, privilege::Attributes::default())]), None).unwrap();
[INFO] [stdout]    |                                           ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let si = process::StartupInfoW::default();
[INFO] [stdout]    |              ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:21:35
[INFO] [stdout]    |
[INFO] [stdout] 21 |             restricted: Some(vec![sid!(S-1-0-0)]),
[INFO] [stdout]    |                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi`
[INFO] [stdout]  --> examples/restrict_self_shutdown.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use winapi::shared::winerror::ERROR_ACCESS_DENIED;
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:60:27
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let users       = sid!(S-1-5-32-545);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:61:27
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let everyone    = sid!(S-1-1-0);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:118
[INFO] [stdout]    |
[INFO] [stdout] 33 | ... None, false, process::DETACHED_PROCESS, process::environment::Inherit, (), &si)?;
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:62:27
[INFO] [stdout]    |
[INFO] [stdout] 62 |         let null        = sid!(S-1-0-0);
[INFO] [stdout]    |                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Error` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:30:76
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn shutdown_as_user(args: &str, token: &token::OwnedHandle) -> Result<u32, Error> {
[INFO] [stdout]    |                                                                            ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_child_shutdown.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:41
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:64
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                                ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub mitigation_policy:  process::creation::MitigationPolicy,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_ASLR_POLICY` in this scope
[INFO] [stdout]  --> examples/restrict_self_policy.rs:7:22
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut policy = PROCESS_MITIGATION_ASLR_POLICY { Flags: 0 };
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut policy = PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_CHILD_PROCESS_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut policy = PROCESS_MITIGATION_CHILD_PROCESS_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:25:22
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut policy = PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_DEP_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:31:22
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut policy = PROCESS_MITIGATION_DEP_POLICY { Flags: 0, Permanent: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_DYNAMIC_CODE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut policy = PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:43:22
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let mut policy = PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:8:29
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub child_policy:       process::creation::ChildProcessPolicyFlags,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:9:29
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub dab_policy:         process::creation::DesktopAppPolicyFlags,
[INFO] [stdout]   |                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/spam_dbg.rs:14:90
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = create_restricted_token(&t, None, None, None, Some(&[sid::AndAttributes::new(sid!(S-1-0-0), None)])).unwrap();
[INFO] [stdout]    |                                                                                          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_FONT_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:47:22
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let mut policy = PROCESS_MITIGATION_FONT_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_IMAGE_LOAD_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:51:22
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let mut policy = PROCESS_MITIGATION_IMAGE_LOAD_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:57:22
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let mut policy = PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:66:22
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let mut policy = PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:71:22
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let mut policy = PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:11:22
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let permissive = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:75:22
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let mut policy = PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { Flags: 0 };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_policy.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:17:60
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let restrictive = create_restricted_token(&permissive, token::DISABLE_MAX_PRIVILEGE, None, None, None).unwrap();
[INFO] [stdout]    |                                                            ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `heap_enable_termination_on_corruption` in this scope
[INFO] [stdout]  --> examples/restrict_self_policy.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     heap_enable_termination_on_corruption().unwrap();
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:17:23
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let restrictive = create_restricted_token(&permissive, token::DISABLE_MAX_PRIVILEGE, None, None, None).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:19:15
[INFO] [stdout]    |
[INFO] [stdout] 19 |             | process::creation::mitigation_policy::DEP_ENABLE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sleep_ms` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |         sleep_ms(3000);
[INFO] [stdout]    |         ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 10 + use std::thread::sleep_ms;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/spam_dbg.rs:14:66
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = create_restricted_token(&t, None, None, None, Some(&[sid::AndAttributes::new(sid!(S-1-0-0), None)])).unwrap();
[INFO] [stdout]    |                                                                  ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = create_restricted_token(&t, None, None, None, Some(&[std::AndAttributes::new(sid!(S-1-0-0), None)])).unwrap();
[INFO] [stdout]    |                                                                  ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use firehazard::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:21:15
[INFO] [stdout]    |
[INFO] [stdout] 21 |             | process::creation::mitigation_policy::SEHOP_ENABLE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_thread_id` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:19:40
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let original = open_thread_desktop(get_current_thread_id()).unwrap();
[INFO] [stdout]    |                                        ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/spam_dbg.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:22:15
[INFO] [stdout]    |
[INFO] [stdout] 22 |             | process::creation::mitigation_policy::force_relocate_images::ALWAYS_ON_REQ_RELOCS // chrome.exe doesn't bother with this
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/spam_dbg.rs:13:32
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let t = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/spam_dbg.rs:13:55
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let t = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                       ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `lookup_privilege_value_a` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let se_shutdown = lookup_privilege_value_a(cstr!("SeShutdownPrivilege")).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:23:15
[INFO] [stdout]    |
[INFO] [stdout] 23 |             | process::creation::mitigation_policy::heap_terminate::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_thread_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:19:20
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let original = open_thread_desktop(get_current_thread_id()).unwrap();
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:24:15
[INFO] [stdout]    |
[INFO] [stdout] 24 |             | process::creation::mitigation_policy::bottom_up_aslr::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:24:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let restrictive = create_restricted_token(&permissive, None, None, Some(&[privilege::LuidAndAttributes::new(se_shutdown, privilege::A...
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:21:66
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let desktop = create_desktop_w(desktop_name, (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                                                                  ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:91
[INFO] [stdout]    |
[INFO] [stdout] 33 | ... Some(&mut args[..]), None, None, false, process::DETACHED_PROCESS, process::environment::Inherit, (), &si)?;
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/spam_dbg.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let t = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_as_user_w` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:33:15
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let cmd = create_process_as_user_w(token, (), Some(&mut args[..]), None, None, false, process::DETACHED_PROCESS, process::environment...
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_shutdown.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token` in this scope
[INFO] [stdout]   --> examples/spam_dbg.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = create_restricted_token(&t, None, None, None, Some(&[sid::AndAttributes::new(sid!(S-1-0-0), None)])).unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:25:15
[INFO] [stdout]    |
[INFO] [stdout] 25 |             | process::creation::mitigation_policy::high_entropy_aslr::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     wait_for_process(&cmd.process)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:26:15
[INFO] [stdout]    |
[INFO] [stdout] 26 |             | process::creation::mitigation_policy::strict_handle_checks::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_child_shutdown.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn shutdown_as_user(args: &str, token: &token::OwnedHandle) -> Result<u32, Error> {
[INFO] [stdout]    |                                         ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:27:45
[INFO] [stdout]    |
[INFO] [stdout] 27 | ...   | (!target.allow.same_desktop * process::creation::mitigation_policy::win32k_system_call_disable::ALWAYS_ON) // user32.dll(?) requi...
[INFO] [stdout]    |                                       ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_desktop_w` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:21:19
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let desktop = create_desktop_w(desktop_name, (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `lookup_privilege_value_a` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:16:23
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let se_shutdown = lookup_privilege_value_a(cstr!("SeShutdownPrivilege")).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Luid`
[INFO] [stdout]   --> examples/spam_dbg.rs:35:29
[INFO] [stdout]    |
[INFO] [stdout] 35 |     dbg!(t.origin().map(|o| Luid::from(o.OriginatingLogonSession)));
[INFO] [stdout]    |                             ^^^^ use of undeclared type `Luid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:28:15
[INFO] [stdout]    |
[INFO] [stdout] 28 |             | process::creation::mitigation_policy::extension_point_disable::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_child_shutdown") due to 18 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:13:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:18:11
[INFO] [stdout]    |
[INFO] [stdout] 18 |         = token::QUERY              // Required to enumerate the `token.privileges()`, as used internally by `privileges_disable_if`
[INFO] [stdout]    |           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:35:50
[INFO] [stdout]    |
[INFO] [stdout] 35 |     assert_eq!(core::mem::size_of::<usize>()==8, set_process_mitigation_policy(policy).is_err()); // ERROR_NOT_SUPPORTED - possibly becau...
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 |         | token::ADJUST_PRIVILEGES  // Required to modify the privileges
[INFO] [stdout]    |           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:21:36
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let token = open_process_token(get_current_process(), access).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `sid` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:11:51
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                                                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_shutdown.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let token = open_process_token(get_current_process(), access).unwrap();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:29:45
[INFO] [stdout]    |
[INFO] [stdout] 29 |             | (!target.allow.dynamic_code * process::creation::mitigation_policy::prohibit_dynamic_code::ALWAYS_ON)
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 |     switch_desktop(&original).expect("unable to switch_desktop to original desktop, that's a bit sketchy");
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "spam_dbg") due to 8 previous errors; 1 warning emitted
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:30:15
[INFO] [stdout]    |
[INFO] [stdout] 30 |             | process::creation::mitigation_policy::control_flow_guard::ALWAYS_ON               // Redundant?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `argv_to_command_line_0` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:28:23
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let mut cmd = argv_to_command_line_0(t, args);
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...   | process::creation::mitigation_policy::control_flow_guard::EXPORT_SUPPRESSION      // https://docs.microsoft.com/en-us/windows/win...
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 41 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_shutdown") due to 7 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:32:15
[INFO] [stdout]    |
[INFO] [stdout] 32 |             | process::creation::mitigation_policy::block_non_microsoft_binaries::ALWAYS_ON     // Redundant?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 45 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:33:15
[INFO] [stdout]    |
[INFO] [stdout] 33 |             | process::creation::mitigation_policy::block_non_microsoft_binaries::ALLOW_STORE   // ?
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:34:45
[INFO] [stdout]    |
[INFO] [stdout] 34 | ...   | (!target.allow.same_desktop * process::creation::mitigation_policy::font_disable::ALWAYS_ON) // user32.dll(?) requires access on ...
[INFO] [stdout]    |                                       ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 49 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_w` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |         create_process_w((), Some(&mut cmd[..]), None, None, false, None, environment::Inherit, (), &StartupInfoW {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:11:27
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                           ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 11 |     t.set_integrity_level(std::AndAttributes::new(sid!(S-1-16-0), None)).unwrap();
[INFO] [stdout]    |                           ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     switch_desktop(&desktop).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |         let mut msg : MSG = Default::default();
[INFO] [stdout]    |                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:35:15
[INFO] [stdout]    |
[INFO] [stdout] 35 |             | process::creation::mitigation_policy::image_load_no_remote::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         wait_for_process(&child.process)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PM_REMOVE` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:31:65
[INFO] [stdout]    |
[INFO] [stdout] 31 |         while unsafe { PeekMessageW(&mut msg, null_mut(), 0, 0, PM_REMOVE) } != 0 {
[INFO] [stdout]    |                                                                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `sleep_ms` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |             sleep_ms(100);
[INFO] [stdout]    |             ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::thread::sleep_ms;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:13:27
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(sid::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                           ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 13 |     t.set_integrity_level(std::AndAttributes::new(sid!(S-1-16-0x1000), None)).unwrap_err(); // Can't raise integrity
[INFO] [stdout]    |                           ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:50:27
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn get_exe_hinstance() -> HINSTANCE {
[INFO] [stdout]    |                           ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:56:24
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn create_window(atom: ATOM) -> HWND {
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:58:68
[INFO] [stdout]    |
[INFO] [stdout] 58 |         0, atom as usize as _, cstr16!("Example Window").as_ptr(), WS_OVERLAPPEDWINDOW,
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         CW_USEDEFAULT, CW_USEDEFAULT, 400, 300,
[INFO] [stdout]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:59:24
[INFO] [stdout]    |
[INFO] [stdout] 59 |         CW_USEDEFAULT, CW_USEDEFAULT, 400, 300,
[INFO] [stdout]    |                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_SHOWDEFAULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:64:58
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let _was_already_visible = unsafe { ShowWindow(hwnd, SW_SHOWDEFAULT) };
[INFO] [stdout]    |                                                          ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:68:31
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn register_window_class() -> ATOM {
[INFO] [stdout]    |                               ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:69:57
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let cursor_arrow = unsafe { LoadCursorW(null_mut(), IDC_ARROW) };
[INFO] [stdout]    |                                                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:74:43
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let atom = unsafe { RegisterClassExW(&WNDCLASSEXW {
[INFO] [stdout]    |                                           ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:75:35
[INFO] [stdout]    |
[INFO] [stdout] 75 |         cbSize:         size_of::<WNDCLASSEXW>() as _,
[INFO] [stdout]    |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 68 | fn register_window_class<WNDCLASSEXW>() -> ATOM {
[INFO] [stdout]    |                         +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/ui_basic_window.rs:83:76
[INFO] [stdout]    |
[INFO] [stdout] 83 |     assert!(atom != 0, "RegisterClassExW failed with GetLastError()={:?}", Error::get_last());
[INFO] [stdout]    |                                                                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 3  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:52
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:66
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:82
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:88:93
[INFO] [stdout]    |
[INFO] [stdout] 88 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]    |                                                                                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/ui_basic_window.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:73:5
[INFO] [stdout]    |
[INFO] [stdout] 73 |     set_process_mitigation_policy(policy).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 36 |             | process::creation::mitigation_policy::image_load_no_low_label::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/restrict_self_integrity.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |             | process::creation::mitigation_policy::image_load_prefer_system32::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_process_mitigation_policy` in this scope
[INFO] [stdout]   --> examples/restrict_self_policy.rs:77:5
[INFO] [stdout]    |
[INFO] [stdout] 77 |     set_process_mitigation_policy(policy).unwrap(); // XXX: "This structure is not supported."
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `output_debug_string_w` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     output_debug_string_w(cstr16!("sandbox"));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:32
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:55
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |                                                       ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:41:15
[INFO] [stdout]    |
[INFO] [stdout] 41 |             | process::creation::mitigation_policy2::loader_integrity_continuity::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 26 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:42:15
[INFO] [stdout]    |
[INFO] [stdout] 42 |             | process::creation::mitigation_policy2::strict_control_flow_guard::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |             | process::creation::mitigation_policy2::module_tampering_protection::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `switch_desktop` in this scope
[INFO] [stdout]   --> examples/ui_switch_desktop.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 45 |     switch_desktop(&original).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 |             | process::creation::mitigation_policy2::restrict_indirect_branch_prediction::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let t = open_process_token(get_current_process(), token::ADJUST_DEFAULT).unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:29
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:52
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |                                                    ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:45:45
[INFO] [stdout]    |
[INFO] [stdout] 45 |             | (!target.allow.dynamic_code * process::creation::mitigation_policy2::allow_downgrade_dynamic_code_policy::ALWAYS_OFF)
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_policy") due to 27 previous errors; 1 warning emitted
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/restrict_self_integrity.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     dbg!(open_process_token(get_current_process(), token::QUERY).unwrap().integrity_level().unwrap().label().sid);
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:46:15
[INFO] [stdout]    |
[INFO] [stdout] 46 |             | process::creation::mitigation_policy2::speculative_store_bypass_disable::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `revert_to_self` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 |     revert_to_self().unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |             | process::creation::mitigation_policy2::cet_user_shadow_stacks::ALWAYS_ON      // Redundant
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:31:24
[INFO] [stdout]    |
[INFO] [stdout] 31 |         while unsafe { PeekMessageW(&mut msg, null_mut(), 0, 0, PM_REMOVE) } != 0 {
[INFO] [stdout]    |                        ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "ui_switch_desktop") due to 13 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:48:15
[INFO] [stdout]    |
[INFO] [stdout] 48 |             | process::creation::mitigation_policy2::cet_user_shadow_stacks::STRICT_MODE
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "restrict_self_integrity") due to 11 previous errors; 1 warning emitted
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:36:22
[INFO] [stdout]    |
[INFO] [stdout] 36 |             unsafe { TranslateMessage(&msg) };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:49:15
[INFO] [stdout]    |
[INFO] [stdout] 49 |             | process::creation::mitigation_policy2::user_cet_set_context_ip_validation::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |             unsafe { DispatchMessageW(&msg) };
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:45:22
[INFO] [stdout]    |
[INFO] [stdout] 45 |             unsafe { WaitMessage() };
[INFO] [stdout]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:50:44
[INFO] [stdout]    |
[INFO] [stdout] 50 |             | (!target.allow.missing_cet * process::creation::mitigation_policy2::block_non_cet_binaries::ALWAYS_ON)
[INFO] [stdout]    |                                            ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:53:15
[INFO] [stdout]    |
[INFO] [stdout] 53 |             | process::creation::mitigation_policy2::cet_dynamic_apis_out_of_proc_only::ALWAYS_ON
[INFO] [stdout]    |               ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:57:25
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let hwnd = unsafe { CreateWindowExW(
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:57:35
[INFO] [stdout]    |
[INFO] [stdout] 57 |         let mitigation_policy   = process::creation::MitigationPolicy::from((policy1, policy2));
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:64:41
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let _was_already_visible = unsafe { ShowWindow(hwnd, SW_SHOWDEFAULT) };
[INFO] [stdout]    |                                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:69:33
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let cursor_arrow = unsafe { LoadCursorW(null_mut(), IDC_ARROW) };
[INFO] [stdout]    |                                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:58:35
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let child_policy        = process::creation::child_process::RESTRICTED;
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:59:35
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let dab_policy          = process::creation::desktop_app_breakaway::ENABLE_PROCESS_TREE;
[INFO] [stdout]    |                                   ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:74:25
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let atom = unsafe { RegisterClassExW(&WNDCLASSEXW {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |         process::ThreadAttributeList::try_from(&[
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |             PostQuitMessage(0);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:70:13
[INFO] [stdout]    |
[INFO] [stdout] 70 |             process::ThreadAttributeRef::mitigation_policy(&self.mitigation_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |             process::ThreadAttributeRef::child_process_policy(&self.child_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]   --> examples/ui_basic_window.rs:95:13
[INFO] [stdout]    |
[INFO] [stdout] 95 |             DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:72:13
[INFO] [stdout]    |
[INFO] [stdout] 72 |             process::ThreadAttributeRef::desktop_app_policy(&self.dab_policy),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 37 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |             process::ThreadAttributeRef::component_filter_flags(&self.component_filter),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:80:13
[INFO] [stdout]    |
[INFO] [stdout] 80 |             process::ThreadAttributeRef::job_list(&self.job_list[..]),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "ui_basic_window") due to 38 previous errors; 1 warning emitted
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             process::ThreadAttributeRef::handle_list(&self.inherit[..]),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:51:39
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 let thread = unsafe { thread::OwnedHandle::from_raw(thread) }.unwrap();
[INFO] [stdout]    |                                       ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 |                 let thread = unsafe { thread::OwnedHandle::from_raw(thread) }.unwrap();
[INFO] [stdout]    |                                       ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:85:38
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let hfile = unsafe { io::FileHandle::from_raw(event.hFile) }.unwrap();
[INFO] [stdout]    |                                      ^^ use of undeclared crate or module `io`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:18:42
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_information_job_object(&mut job, job::object::BasicUiRestrictions { ui_restrictions_class: ()
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | ...   | job::object::uilimit::DESKTOP            // Prevents processes associated with the job from creating desktops and switching deskt...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:20:11
[INFO] [stdout]    |
[INFO] [stdout] 20 | ...   | job::object::uilimit::DISPLAYSETTINGS    // Prevents processes associated with the job from calling the ChangeDisplaySettings fun...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:21:11
[INFO] [stdout]    |
[INFO] [stdout] 21 | ...   | job::object::uilimit::EXITWINDOWS        // Prevents processes associated with the job from calling the ExitWindows or ExitWindow...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:22:11
[INFO] [stdout]    |
[INFO] [stdout] 22 | ...   | job::object::uilimit::GLOBALATOMS        // Prevents processes associated with the job from accessing global atoms. When this fla...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:23:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | ...   | job::object::uilimit::HANDLES            // Prevents processes associated with the job from using USER handles owned by processes...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 24 |         | job::object::uilimit::READCLIPBOARD      // Prevents processes associated with the job from reading data from the clipboard.
[INFO] [stdout]    |           ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:25:11
[INFO] [stdout]    |
[INFO] [stdout] 25 | ...   | job::object::uilimit::SYSTEMPARAMETERS   // Prevents processes associated with the job from changing system parameters by using t...
[INFO] [stdout]    |         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:26:11
[INFO] [stdout]    |
[INFO] [stdout] 26 |         | job::object::uilimit::WRITECLIPBOARD     // Prevents processes associated with the job from writing data to the clipboard.
[INFO] [stdout]    |           ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:29:42
[INFO] [stdout]    |
[INFO] [stdout] 29 |     set_information_job_object(&mut job, job::object::EndOfJobTimeInformation {
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:32:33
[INFO] [stdout]    |
[INFO] [stdout] 32 |         end_of_job_time_action: job::object::TERMINATE_AT_END_OF_JOB,
[INFO] [stdout]    |                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:38:42
[INFO] [stdout]    |
[INFO] [stdout] 38 |     set_information_job_object(&mut job, job::object::NetRateControlInformation {
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:40:25
[INFO] [stdout]    |
[INFO] [stdout] 40 |         control_flags:  job::object::NET_RATE_CONTROL_ENABLE | job::object::NET_RATE_CONTROL_MAX_BANDWIDTH,
[INFO] [stdout]    |                         ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:40:64
[INFO] [stdout]    |
[INFO] [stdout] 40 |         control_flags:  job::object::NET_RATE_CONTROL_ENABLE | job::object::NET_RATE_CONTROL_MAX_BANDWIDTH,
[INFO] [stdout]    |                                                                ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:44:42
[INFO] [stdout]    |
[INFO] [stdout] 44 |     set_information_job_object(&mut job, job::object::CpuRateControlInformation::from_weight(5, false, false)).unwrap();
[INFO] [stdout]    |                                          ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:54:37
[INFO] [stdout]    |
[INFO] [stdout] 54 |     set_information_job_object(job, job::object::ExtendedLimitInformation {
[INFO] [stdout]    |                                     ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:55:34
[INFO] [stdout]    |
[INFO] [stdout] 55 |         basic_limit_information: job::object::BasicLimitInformation {
[INFO] [stdout]    |                                  ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:57:19
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 | job::object::limit::ACTIVE_PROCESS
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:58:19
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 | job::object::limit::DIE_ON_UNHANDLED_EXCEPTION
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 | job::object::limit::JOB_MEMORY
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:60:19
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 | job::object::limit::KILL_ON_JOB_CLOSE
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `security`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:21:48
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let (_read, write) = io::create_pipe(Some(&security::Attributes::new(None, true)), 0).unwrap();
[INFO] [stdout]    |                                                ^^^^^^^^ use of undeclared crate or module `security`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:24:18
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut si = process::StartupInfoExW::default();
[INFO] [stdout]    |                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]  --> examples/max_sandbox/settings.rs:9:25
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub integrity:      sid::integrity::Level,
[INFO] [stdout]   |                         ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]   |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pub integrity:      std::integrity::Level,
[INFO] [stdout]   |                         ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:70:42
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let se_change_notify_privilege = privilege::name::CHANGE_NOTIFY.luid();
[INFO] [stdout]    |                                          ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:110:33
[INFO] [stdout]     |
[INFO] [stdout] 110 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 110 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:143:33
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 143 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:163:33
[INFO] [stdout]     |
[INFO] [stdout] 163 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 163 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]    --> examples/max_sandbox/settings.rs:182:33
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     integrity:  sid::integrity::Low,
[INFO] [stdout]     |                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]     |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     integrity:  std::integrity::Low,
[INFO] [stdout]     |                                 ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:20:99
[INFO] [stdout]    |
[INFO] [stdout] 20 | ..._or(&all_group_sids).iter().copied().map(|r| sid::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 20 |         Some(&target.spawn.restricted.as_ref().unwrap_or(&all_group_sids).iter().copied().map(|r| std::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                                                                   ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:28:102
[INFO] [stdout]    |
[INFO] [stdout] 28 | ..._or(&all_group_sids).iter().copied().map(|r| sid::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                 ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 28 |         Some(&target.lockdown.restricted.as_ref().unwrap_or(&all_group_sids).iter().copied().map(|r| std::AndAttributes::new(r, None)).collect::<Vec<_>>()[..]),
[INFO] [stdout]    |                                                                                                      ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:31:36
[INFO] [stdout]    |
[INFO] [stdout] 31 |     permissive.set_integrity_level(sid::AndAttributes::new(&target.spawn.integrity, None)).unwrap();
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 31 |     permissive.set_integrity_level(std::AndAttributes::new(&target.spawn.integrity, None)).unwrap();
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:32:36
[INFO] [stdout]    |
[INFO] [stdout] 32 |     restricted.set_integrity_level(sid::AndAttributes::new(&target.spawn.integrity, None)).unwrap(); // lower child token to target.lockd...
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 32 |     restricted.set_integrity_level(std::AndAttributes::new(&target.spawn.integrity, None)).unwrap(); // lower child token to target.lockdown.integrity post-spawn
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DEBUG_EVENT` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |         let DEBUG_EVENT { dwProcessId, dwThreadId, .. } = *event;
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DBG_CONTINUE` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:25:97
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let dbg_continue                = move || continue_debug_event(dwProcessId, dwThreadId, DBG_CONTINUE).unwrap();
[INFO] [stdout]    |                                                                                                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DBG_EXCEPTION_NOT_HANDLED` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:26:97
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dbg_exception_not_handled   = move || continue_debug_event(dwProcessId, dwThreadId, DBG_EXCEPTION_NOT_HANDLED).unwrap();
[INFO] [stdout]    |                                                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Exception` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             Exception(event) => {
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `CreateThread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |             CreateThread(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `CreateProcess` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 |             CreateProcess(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ExitThread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |             ExitThread(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:72:88
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 println!("[{dwProcessId}:{dwThreadId}] thread exited with code: {:?}", Error::from(event.dwExitCode));
[INFO] [stdout]    |                                                                                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ExitProcess` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             ExitProcess(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:78:89
[INFO] [stdout]    |
[INFO] [stdout] 78 |                 println!("[{dwProcessId}:{dwThreadId}] process exited with code: {:?}", Error::from(event.dwExitCode));
[INFO] [stdout]    |                                                                                         ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LoadDll` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             LoadDll(event) => {
[INFO] [stdout]    |             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `UnloadDll` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             UnloadDll(event)  => {
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `DebugString` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:97:13
[INFO] [stdout]    |
[INFO] [stdout] 97 |             DebugString(event) => {
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Rip` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             Rip(_event) => {
[INFO] [stdout]     |             ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `STARTF_UNTRUSTEDSOURCE` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:28:35
[INFO] [stdout]    |
[INFO] [stdout] 28 |     si.startup_info.flags       = STARTF_UNTRUSTEDSOURCE | STARTF_USESTDHANDLES;
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `STARTF_USESTDHANDLES` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:28:60
[INFO] [stdout]    |
[INFO] [stdout] 28 |     si.startup_info.flags       = STARTF_UNTRUSTEDSOURCE | STARTF_USESTDHANDLES;
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:56:39
[INFO] [stdout]    |
[INFO] [stdout] 56 |         std::thread::spawn(move || -> io::Result<()> {
[INFO] [stdout]    |                                       ^^ use of undeclared crate or module `io`
[INFO] [stdout]    |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 56 |         std::thread::spawn(move || -> i8::Result<()> {
[INFO] [stdout]    |                                       ~~
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:71:35
[INFO] [stdout]    |
[INFO] [stdout] 71 |         Err(err) if err.kind() == io::ErrorKind::BrokenPipe => {},
[INFO] [stdout]    |                                   ^^ use of undeclared crate or module `io`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 71 -         Err(err) if err.kind() == io::ErrorKind::BrokenPipe => {},
[INFO] [stdout] 71 +         Err(err) if err.kind() == ErrorKind::BrokenPipe => {},
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:74:54
[INFO] [stdout]    |
[INFO] [stdout] 74 |     assert!(exit == 0, "exit code: 0x{exit:08x} {}", Error::from(exit).friendly());
[INFO] [stdout]    |                                                      ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use core::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]      and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:39:23
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout]    |                       ^^^ use of undeclared crate or module `acl`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  + use std::thread::Builder;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Builder`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 39 -         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout] 39 +         let mut acl = Builder::new(acl::REVISION);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/attribute.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/debugger.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/job.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `job` is imported redundantly
[INFO] [stdout]  --> examples/max_sandbox/run.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::{*, job};
[INFO] [stdout]   |             -  ^^^
[INFO] [stdout]   |             |
[INFO] [stdout]   |             the item `job` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/run.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/settings.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `firehazard::*`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use firehazard::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:56
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:79
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                                                               ^^^^^
[INFO] [stdout]    |                                                                               |
[INFO] [stdout]    |                                                                               use of undeclared crate or module `token`
[INFO] [stdout]    |                                                                               help: a struct with a similar name exists: `Token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:56:37
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: no implementation for `() | bool`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |   ...   let policy1 = ()
[INFO] [stdout]    |  _____________________-
[INFO] [stdout] 19 | | ...       | process::creation::mitigation_policy::DEP_ENABLE
[INFO] [stdout] 20 | | ...       //| process::creation::mitigation_policy::DEP_ATL_THUNK_ENABLE
[INFO] [stdout] 21 | | ...       | process::creation::mitigation_policy::SEHOP_ENABLE
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | ...       | process::creation::mitigation_policy::high_entropy_aslr::ALWAYS_ON
[INFO] [stdout] 26 | | ...       | process::creation::mitigation_policy::strict_handle_checks::ALWAYS_ON
[INFO] [stdout]    | |_________________________________________________________________________________- ()
[INFO] [stdout] 27 |   ...       | (!target.allow.same_desktop * process::creation::mitigation_policy::win32k_system_call_disable::ALWAYS_ON) // user32.dll(?) r...
[INFO] [stdout]    |             ^ ---------------------------------------------------------------------------------------------------------- bool
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: no implementation for `Option<_> | bool`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |           let policy2 = None
[INFO] [stdout]    |  _______________________-
[INFO] [stdout] 41 | |             | process::creation::mitigation_policy2::loader_integrity_continuity::ALWAYS_ON
[INFO] [stdout] 42 | |             | process::creation::mitigation_policy2::strict_control_flow_guard::ALWAYS_ON
[INFO] [stdout] 43 | |             | process::creation::mitigation_policy2::module_tampering_protection::ALWAYS_ON
[INFO] [stdout] 44 | |             | process::creation::mitigation_policy2::restrict_indirect_branch_prediction::ALWAYS_ON
[INFO] [stdout]    | |___________________________________________________________________________________________________- Option<_>
[INFO] [stdout] 45 |               | (!target.allow.dynamic_code * process::creation::mitigation_policy2::allow_downgrade_dynamic_code_policy::ALWAYS_OFF)
[INFO] [stdout]    |               ^ --------------------------------------------------------------------------------------------------------------------- bool
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_debug_event_ex` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |         let event = wait_for_debug_event_ex(None).unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `continue_debug_event` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:25:51
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let dbg_continue                = move || continue_debug_event(dwProcessId, dwThreadId, DBG_CONTINUE).unwrap();
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `continue_debug_event` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:26:51
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dbg_exception_not_handled   = move || continue_debug_event(dwProcessId, dwThreadId, DBG_EXCEPTION_NOT_HANDLED).unwrap();
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:49:31
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 let process = get_current_process().as_handle();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:50:98
[INFO] [stdout]    |
[INFO] [stdout] 50 | ...le(process, thread, process, &mut thread, access::GENERIC_ALL.into(), false as _, 0) });
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:53:17
[INFO] [stdout]    |
[INFO] [stdout] 53 |                 set_thread_token(&thread, &tokens.permissive).unwrap();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:62:31
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 let process = get_current_process().as_handle();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:63:98
[INFO] [stdout]    |
[INFO] [stdout] 63 | ...le(process, thread, process, &mut thread, access::GENERIC_ALL.into(), false as _, 0) });
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:66:17
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 set_thread_token(&thread, &tokens.permissive).unwrap(); // already set?
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_final_path_name_by_handle` in this scope
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:86:34
[INFO] [stdout]    |
[INFO] [stdout] 86 |                 let image_name = get_final_path_name_by_handle(hfile, 0).unwrap();
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_process_memory` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:102:43
[INFO] [stdout]     |
[INFO] [stdout] 102 |                     let buffer = unsafe { read_process_memory(&pi.process, event.lpDebugStringData.cast(), &mut buffer[..]) }.unwrap();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_process_memory` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:107:43
[INFO] [stdout]     |
[INFO] [stdout] 107 |                     let buffer = unsafe { read_process_memory(&pi.process, event.lpDebugStringData.cast(), &mut buffer[..]) }.unwrap();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `suspend_thread` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:113:54
[INFO] [stdout]     |
[INFO] [stdout] 113 |                     for thread in threads.values() { suspend_thread(thread).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `debug_active_process_stop` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:114:21
[INFO] [stdout]     |
[INFO] [stdout] 114 |                     debug_active_process_stop(pi.process_id).unwrap();
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:117:54
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     for thread in threads.values() { set_thread_token(thread, None).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `resume_thread` in this scope
[INFO] [stdout]    --> examples/max_sandbox/debugger.rs:118:54
[INFO] [stdout]     |
[INFO] [stdout] 118 |                     for thread in threads.values() { resume_thread(thread).unwrap(); }
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_job_object_a` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:13:19
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let mut job = create_job_object_a(None, ()).unwrap();
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     set_information_job_object(&mut job, job::object::BasicUiRestrictions { ui_restrictions_class: ()
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 |     set_information_job_object(&mut job, job::object::EndOfJobTimeInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 |     set_information_job_object(&mut job, job::object::NetRateControlInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 44 |     set_information_job_object(&mut job, job::object::CpuRateControlInformation::from_weight(5, false, false)).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_information_job_object` in this scope
[INFO] [stdout]   --> examples/max_sandbox/job.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     set_information_job_object(job, job::object::ExtendedLimitInformation {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `access`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:10:87
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let _alt_desktop = create_desktop_a(cstr!("max_sandbox_desktop"), (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                                                                                       ^^^^^^ use of undeclared crate or module `access`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_desktop_a` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let _alt_desktop = create_desktop_a(cstr!("max_sandbox_desktop"), (), None, None, access::GENERIC_ALL, None).unwrap();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `exe_to_command_line_0` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut command_line = exe_to_command_line_0(exe);
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:21:26
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let (_read, write) = io::create_pipe(Some(&security::Attributes::new(None, true)), 0).unwrap();
[INFO] [stdout]    |                          ^^
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          use of undeclared crate or module `io`
[INFO] [stdout]    |                          help: a builtin type with a similar name exists: `i8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> examples/max_sandbox/run.rs:23:76
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let attribute_list = attribute::List::new(&target, &job, vec![(&write).into()]);
[INFO] [stdout]    |                                                                            ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:34
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:69
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                                                     ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:45:97
[INFO] [stdout]    |
[INFO] [stdout] 45 |         process::DEBUG_PROCESS | process::CREATE_SEPARATE_WOW_VDM | process::CREATE_SUSPENDED | process::EXTENDED_STARTUPINFO_PRESENT,
[INFO] [stdout]    |                                                                                                 ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_process_as_user_w` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let pi = create_process_as_user_w(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_thread_token` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 48 |     set_thread_token(&pi.thread, &tokens.permissive).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `resume_thread` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 50 |     resume_thread(&pi.thread).unwrap();
[INFO] [stdout]    |     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wait_for_process` in this scope
[INFO] [stdout]   --> examples/max_sandbox/run.rs:67:16
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let exit = wait_for_process(&pi.process).unwrap();
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_current_process` in this scope
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:52
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:75
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                                                           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `open_process_token` in this scope
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:9:33
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let sandbox_process_token = open_process_token(get_current_process(), token::ALL_ACCESS).unwrap();
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token_filter` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:15:22
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let permissive = create_restricted_token_filter(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_restricted_token_filter` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:23:22
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let restricted = create_restricted_token_filter(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:54
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                                                      ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `security`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:79
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                                                                               ^^^^^^^^ use of undeclared crate or module `security`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:104
[INFO] [stdout]    |
[INFO] [stdout] 33 | ...ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); // primary -> impersonation token
[INFO] [stdout]    |                                               ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `duplicate_token_ex` in this scope
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let permissive = duplicate_token_ex(&permissive, token::ALL_ACCESS, None, security::Impersonation, token::Impersonation).unwrap(); //...
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:39:41
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut acl = acl::Builder::new(acl::REVISION);
[INFO] [stdout]    |                                         ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:40:21
[INFO] [stdout]    |
[INFO] [stdout] 40 | ...   acl.add_acl(acl::REVISION, 0, restricted.default_dacl().unwrap().default_dacl()).unwrap(); // allow debuggers to attach, task manag...
[INFO] [stdout]    |                   ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `acl`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:36
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `acl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:51
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                                   ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]   --> examples/max_sandbox/tokens.rs:41:75
[INFO] [stdout]    |
[INFO] [stdout] 41 |         acl.add_access_allowed_ace(acl::REVISION, token::ADJUST_DEFAULT | token::QUERY, logon_session_sid).unwrap();
[INFO] [stdout]    |                                                                           ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]   --> examples/max_sandbox/run.rs:53:34
[INFO] [stdout]    |
[INFO] [stdout] 53 |         use std::io::{BufReader, BufRead};
[INFO] [stdout]    |                                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:11:33
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub job_list:           Vec<job::Handle<'s>>,
[INFO] [stdout]    |                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handle`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:12:33
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub inherit:            Vec<handle::Borrowed<'s>>,
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared crate or module `handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:17:65
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(target: &crate::settings::Target, job: impl Into<job::Handle<'s>>, inherit: impl IntoIterator<Item = handle::Borrowed<'s>>...
[INFO] [stdout]    |                                                                 ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handle`
[INFO] [stdout]   --> examples/max_sandbox/attribute.rs:17:117
[INFO] [stdout]    |
[INFO] [stdout] 17 | ...e<'s>>, inherit: impl IntoIterator<Item = handle::Borrowed<'s>>) -> Self {
[INFO] [stdout]    |                                              ^^^^^^ use of undeclared crate or module `handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pi:         &process::Information,
[INFO] [stdout]    |                  ^^^^^^^ use of undeclared crate or module `process`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:20:33
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut threads = HashMap::<thread::Id, thread::OwnedHandle>::new();
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread`
[INFO] [stdout]   --> examples/max_sandbox/debugger.rs:20:45
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut threads = HashMap::<thread::Id, thread::OwnedHandle>::new();
[INFO] [stdout]    |                                             ^^^^^^ use of undeclared crate or module `thread`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `privilege`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:10:33
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub privileges:     HashSet<privilege::Luid>,
[INFO] [stdout]    |                                 ^^^^^^^^^ use of undeclared crate or module `privilege`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:12:36
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub restricted:     Option<Vec<sid::Ptr<'static>>>,
[INFO] [stdout]    |                                    ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub restricted:     Option<Vec<std::Ptr<'static>>>,
[INFO] [stdout]    |                                    ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn create() -> job::OwnedHandle {
[INFO] [stdout]    |                    ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `job`
[INFO] [stdout]   --> examples/max_sandbox/job.rs:53:22
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub fn relimit(job: &job::OwnedHandle, processes: u32) {
[INFO] [stdout]    |                      ^^^ use of undeclared crate or module `job`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 |     pub permissive: token::OwnedHandle,
[INFO] [stdout]   |                     ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sid`
[INFO] [stdout]   --> examples/max_sandbox/settings.rs:11:29
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub enabled:        Vec<sid::Ptr<'static>>,
[INFO] [stdout]    |                             ^^^ use of undeclared crate or module `sid`
[INFO] [stdout]    |
[INFO] [stdout] help: there is a crate or module with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub enabled:        Vec<std::Ptr<'static>>,
[INFO] [stdout]    |                             ~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token`
[INFO] [stdout]  --> examples/max_sandbox/tokens.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub restricted: token::OwnedHandle,
[INFO] [stdout]   |                     ^^^^^ use of undeclared crate or module `token`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 179 previous errors; 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0369, E0422, E0425, E0432, E0433, E0531.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `firehazard` (example "max_sandbox") due to 180 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "f07b18d063364314ba946f3bb2301782156a12d25d5b9765cd0f72ecf4a802ce", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f07b18d063364314ba946f3bb2301782156a12d25d5b9765cd0f72ecf4a802ce", kill_on_drop: false }`
[INFO] [stdout] f07b18d063364314ba946f3bb2301782156a12d25d5b9765cd0f72ecf4a802ce
