[INFO] cloning repository https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMart-Bogdan-Trash%2Fwin-api-buffers-experiments", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMart-Bogdan-Trash%2Fwin-api-buffers-experiments'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e7701665b6b057b184ac470c36ae50091b822da [INFO] checking Mart-Bogdan-Trash/win-api-buffers-experiments against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMart-Bogdan-Trash%2Fwin-api-buffers-experiments" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments [INFO] finished tweaking git repo https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments [INFO] tweaked toml for git repo https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Mart-Bogdan-Trash/win-api-buffers-experiments already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4162110f8f9f7af9c137937a09bcded58f2888151b3486f1428fc5c5ff109f0a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4162110f8f9f7af9c137937a09bcded58f2888151b3486f1428fc5c5ff109f0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4162110f8f9f7af9c137937a09bcded58f2888151b3486f1428fc5c5ff109f0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4162110f8f9f7af9c137937a09bcded58f2888151b3486f1428fc5c5ff109f0a", kill_on_drop: false }` [INFO] [stdout] 4162110f8f9f7af9c137937a09bcded58f2888151b3486f1428fc5c5ff109f0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] fe81b155c7eabd53382a19bae27a9bd5de33b2fc94d725ee648273a52b924887 [INFO] running `Command { std: "docker" "start" "-a" "fe81b155c7eabd53382a19bae27a9bd5de33b2fc94d725ee648273a52b924887", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking win-api-buffers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::ntdef::LPWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::fileapi::GetFinalPathNameByHandleW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::processenv::GetStdHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winnt::HANDLE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetStdHandle` in this scope [INFO] [stdout] --> src/main.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFinalPathNameByHandleW` in this scope [INFO] [stdout] --> src/main.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | let name_len = GetFinalPathNameByHandleW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/main.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | &mut buf as *mut _ as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::ntdef::LPWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::fileapi::GetFinalPathNameByHandleW; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::processenv::GetStdHandle; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winnt::HANDLE; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetStdHandle` in this scope [INFO] [stdout] --> src/main.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: HANDLE = GetStdHandle(winapi::um::winbase::STD_OUTPUT_HANDLE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFinalPathNameByHandleW` in this scope [INFO] [stdout] --> src/main.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | let name_len = GetFinalPathNameByHandleW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/main.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | &mut buf as *mut _ as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | let str = OsString::from_wide(&buf[0..(name_len as usize)]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `win-api-buffers` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | let str = OsString::from_wide(&buf[0..(name_len as usize)]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "fe81b155c7eabd53382a19bae27a9bd5de33b2fc94d725ee648273a52b924887", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe81b155c7eabd53382a19bae27a9bd5de33b2fc94d725ee648273a52b924887", kill_on_drop: false }` [INFO] [stdout] fe81b155c7eabd53382a19bae27a9bd5de33b2fc94d725ee648273a52b924887