[INFO] cloning repository https://github.com/red75prime/largepage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/red75prime/largepage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fred75prime%2Flargepage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fred75prime%2Flargepage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4e048e6b5a7330e0bfcdb40476b89d3c17da988 [INFO] checking red75prime/largepage against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fred75prime%2Flargepage" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/red75prime/largepage [INFO] finished tweaking git repo https://github.com/red75prime/largepage [INFO] tweaked toml for git repo https://github.com/red75prime/largepage written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/red75prime/largepage on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/red75prime/largepage 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" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df5dbc6a504dd9d8f55367255e58684e3044f38ecdd9337c187a65f870ee32c3 [INFO] running `Command { std: "docker" "start" "-a" "df5dbc6a504dd9d8f55367255e58684e3044f38ecdd9337c187a65f870ee32c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df5dbc6a504dd9d8f55367255e58684e3044f38ecdd9337c187a65f870ee32c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df5dbc6a504dd9d8f55367255e58684e3044f38ecdd9337c187a65f870ee32c3", kill_on_drop: false }` [INFO] [stdout] df5dbc6a504dd9d8f55367255e58684e3044f38ecdd9337c187a65f870ee32c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 806485e3ea36c87ebc381488edcfbe0d63dd590936bb720b71b9ab2323d02f8a [INFO] running `Command { std: "docker" "start" "-a" "806485e3ea36c87ebc381488edcfbe0d63dd590936bb720b71b9ab2323d02f8a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling advapi32-sys v0.2.0 [INFO] [stderr] Checking libc v0.2.22 [INFO] [stderr] Checking time v0.1.37 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking test4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | tkp: TOKEN_PRIVILEGES, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LUID_AND_ATTRIBUTES` in this scope [INFO] [stdout] --> src/main.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | laa: LUID_AND_ATTRIBUTES, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_ADJUST_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:277:54 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/main.rs:277:80 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_PRIVILEGE_ENABLED` in this scope [INFO] [stdout] --> src/main.rs:287:34 [INFO] [stdout] | [INFO] [stdout] 287 | tkp.laa.Attributes = SE_PRIVILEGE_ENABLED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:288:47 [INFO] [stdout] | [INFO] [stdout] 288 | if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 288 - if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] 288 + if AdjustTokenPrivileges(h_token, false, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/main.rs:297:54 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/main.rs:297:68 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_LARGE_PAGES` in this scope [INFO] [stdout] --> src/main.rs:297:81 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/main.rs:297:98 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/main.rs:330:53 [INFO] [stdout] | [INFO] [stdout] 330 | if VirtualFree(s.base as *mut _, 0, MEM_RELEASE) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `advapi32::*` [INFO] [stdout] --> src/main.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | use advapi32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | tkp: TOKEN_PRIVILEGES, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LUID_AND_ATTRIBUTES` in this scope [INFO] [stdout] --> src/main.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | laa: LUID_AND_ATTRIBUTES, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_ADJUST_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:277:54 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/main.rs:277:80 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_PRIVILEGE_ENABLED` in this scope [INFO] [stdout] --> src/main.rs:287:34 [INFO] [stdout] | [INFO] [stdout] 287 | tkp.laa.Attributes = SE_PRIVILEGE_ENABLED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:288:47 [INFO] [stdout] | [INFO] [stdout] 288 | if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 288 - if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] 288 + if AdjustTokenPrivileges(h_token, false, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/main.rs:297:54 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/main.rs:297:68 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_LARGE_PAGES` in this scope [INFO] [stdout] --> src/main.rs:297:81 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/main.rs:297:98 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/main.rs:330:53 [INFO] [stdout] | [INFO] [stdout] 330 | if VirtualFree(s.base as *mut _, 0, MEM_RELEASE) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `advapi32::*` [INFO] [stdout] --> src/main.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | use advapi32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | panic!("{} Error 0x{:08x} ", err, unsafe{GetLastError()}); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:277:33 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/main.rs:277:16 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LookupPrivilegeValueA` in this scope [INFO] [stdout] --> src/main.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | if LookupPrivilegeValueA(0 as *const _, c.as_ptr(), &mut tkp.laa.Luid) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AdjustTokenPrivileges` in this scope [INFO] [stdout] --> src/main.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 288 | if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLargePageMinimum` in this scope [INFO] [stdout] --> src/main.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | let lpmin = GetLargePageMinimum(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/main.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/main.rs:322:35 [INFO] [stdout] | [INFO] [stdout] 322 | (next_addr as *mut _).as_mut().unwrap() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/main.rs:330:20 [INFO] [stdout] | [INFO] [stdout] 330 | if VirtualFree(s.base as *mut _, 0, MEM_RELEASE) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut a = unsafe{ arena.alloc::<[f64;N*N]>() }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut b = unsafe{ arena.alloc::<[f64;N]>() }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/main.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | panic!("{} Error 0x{:08x} ", err, unsafe{GetLastError()}); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:277:33 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/main.rs:277:16 [INFO] [stdout] | [INFO] [stdout] 277 | if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &mut h_token) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LookupPrivilegeValueA` in this scope [INFO] [stdout] --> src/main.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | if LookupPrivilegeValueA(0 as *const _, c.as_ptr(), &mut tkp.laa.Luid) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AdjustTokenPrivileges` in this scope [INFO] [stdout] --> src/main.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 288 | if AdjustTokenPrivileges(h_token, FALSE, &mut tkp.tkp, 0, 0 as *mut _, 0 as *mut _) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLargePageMinimum` in this scope [INFO] [stdout] --> src/main.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | let lpmin = GetLargePageMinimum(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/main.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let ptr = VirtualAlloc(null_mut(), size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/main.rs:322:35 [INFO] [stdout] | [INFO] [stdout] 322 | (next_addr as *mut _).as_mut().unwrap() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `test4` (bin "test4" test) due to 19 previous errors; 6 warnings emitted [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/main.rs:330:20 [INFO] [stdout] | [INFO] [stdout] 330 | if VirtualFree(s.base as *mut _, 0, MEM_RELEASE) == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut a = unsafe{ arena.alloc::<[f64;N*N]>() }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `test4` (bin "test4") due to 19 previous errors; 6 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut b = unsafe{ arena.alloc::<[f64;N]>() }; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "806485e3ea36c87ebc381488edcfbe0d63dd590936bb720b71b9ab2323d02f8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "806485e3ea36c87ebc381488edcfbe0d63dd590936bb720b71b9ab2323d02f8a", kill_on_drop: false }` [INFO] [stdout] 806485e3ea36c87ebc381488edcfbe0d63dd590936bb720b71b9ab2323d02f8a