[INFO] fetching crate wholock 0.0.1... [INFO] testing wholock-0.0.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate wholock 0.0.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate wholock 0.0.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate wholock 0.0.1 [INFO] tweaked toml for crates.io crate wholock 0.0.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate wholock 0.0.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate wholock 0.0.1 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cfacdbcdf743ca6a49b28102dda98d3359b17cf39d97492e3d3454840e6ed11 [INFO] running `Command { std: "docker" "start" "-a" "3cfacdbcdf743ca6a49b28102dda98d3359b17cf39d97492e3d3454840e6ed11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cfacdbcdf743ca6a49b28102dda98d3359b17cf39d97492e3d3454840e6ed11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cfacdbcdf743ca6a49b28102dda98d3359b17cf39d97492e3d3454840e6ed11", kill_on_drop: false }` [INFO] [stdout] 3cfacdbcdf743ca6a49b28102dda98d3359b17cf39d97492e3d3454840e6ed11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9ec3b914bc78c5c7020c2d834bf0890e18a3c9d0c7133797fa9a11c2b7cccd6 [INFO] running `Command { std: "docker" "start" "-a" "b9ec3b914bc78c5c7020c2d834bf0890e18a3c9d0c7133797fa9a11c2b7cccd6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling sysinfo v0.33.1 [INFO] [stderr] Compiling windows-targets v0.52.6 [INFO] [stderr] Compiling windows-result v0.2.0 [INFO] [stderr] Compiling windows-strings v0.1.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling windows-interface v0.58.0 [INFO] [stderr] Compiling windows-implement v0.58.0 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling test-log-macros v0.2.17 [INFO] [stderr] Compiling test-log v0.2.17 [INFO] [stderr] Compiling windows-core v0.58.0 [INFO] [stderr] Compiling windows v0.58.0 [INFO] [stderr] Compiling wholock v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/error.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use windows::Win32::Foundation::WIN32_ERROR; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/error.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use windows::core::Error as WindowsError; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/error.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | use windows::Win32::System::Diagnostics::Debug::{FormatMessageW, FORMAT_MESSAGE_FROM_SYSTEM}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/interop.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | windows::ffi::OsStringExt, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/error.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | use windows::core::PWSTR; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use windows::Win32::Foundation::HANDLE; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use windows::Win32::Foundation::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use windows::Win32::Security::{GetTokenInformation, TokenUser, TOKEN_QUERY, TOKEN_USER}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | use windows::Win32::Security::{LookupAccountSidW, SID_NAME_USE}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | use windows::Win32::Storage::FileSystem::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | use windows::Win32::System::Threading::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Wdk` in `windows` [INFO] [stdout] --> src/interop.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | Wdk::System::SystemInformation::{NtQuerySystemInformation, SYSTEM_INFORMATION_CLASS}, [INFO] [stdout] | ^^^ could not find `Wdk` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | Win32::Foundation::WIN32_ERROR, [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/lib.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use windows::Win32::Foundation::{CloseHandle, HANDLE}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/lib.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use windows::Win32::Storage::FileSystem::{ReOpenFile, FILE_FLAGS_AND_ATTRIBUTES, FILE_SHARE_MODE}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/lib.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use windows::Win32::System::Threading::{GetCurrentProcess, OpenProcess, TerminateProcess}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/lib.rs:214:18 [INFO] [stdout] | [INFO] [stdout] 214 | use windows::Win32::System::Threading::PROCESS_TERMINATE; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/interop.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use windows::core::{PCWSTR, PWSTR}; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | current_process: windows::Win32::Foundation::HANDLE, [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:158:36 [INFO] [stdout] | [INFO] [stdout] 158 | handle_owner_process: windows::Win32::Foundation::HANDLE, [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:160:29 [INFO] [stdout] | [INFO] [stdout] 160 | ) -> WholockResult { [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:161:37 [INFO] [stdout] | [INFO] [stdout] 161 | let mut target_handle: windows::Win32::Foundation::HANDLE = [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | windows::Win32::Foundation::HANDLE(ptr::null_mut()); [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | windows::Win32::Foundation::HANDLE(handle.handle_value()), [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | let err = unsafe { windows::Win32::Foundation::GetLastError() }; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/interop.rs:370:22 [INFO] [stdout] | [INFO] [stdout] 370 | windows::Win32::System::Threading::PROCESS_NAME_FORMAT(0), [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/lib.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | let current_process: windows::Win32::Foundation::HANDLE = unsafe { GetCurrentProcess() }; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [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/interop.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | let file_path = OsString::from_wide(&buf); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 204 - let file_path = OsString::from_wide(&buf); [INFO] [stdout] 204 + let file_path = OsString::from_iter(&buf); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/interop.rs:330:62 [INFO] [stdout] | [INFO] [stdout] 330 | get_win32_error_message(&WIN32_ERROR(e.code().0 as u32)) [INFO] [stdout] | ^ cannot infer type [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/interop.rs:339:28 [INFO] [stdout] | [INFO] [stdout] 339 | let os_str = OsString::from_wide(&buffer[..len]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 339 - let os_str = OsString::from_wide(&buffer[..len]); [INFO] [stdout] 339 + let os_str = OsString::from_iter(&buffer[..len]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/interop.rs:355:90 [INFO] [stdout] | [INFO] [stdout] 355 | let handle = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pid).map_err(|e| { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 359 | get_win32_error_message(&WIN32_ERROR(e.code().0 as u32)) [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 355 | let handle = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pid).map_err(|e: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/interop.rs:374:19 [INFO] [stdout] | [INFO] [stdout] 374 | .map_err(|e| WholockError::Win32Error(WIN32_ERROR(e.code().0 as u32)))?; [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 374 | .map_err(|e: /* Type */| WholockError::Win32Error(WIN32_ERROR(e.code().0 as u32)))?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if open_process.is_invalid() { [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:228:24 [INFO] [stdout] | [INFO] [stdout] 228 | return Err(e.into()); [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wholock` (lib) due to 34 previous errors [INFO] running `Command { std: "docker" "inspect" "b9ec3b914bc78c5c7020c2d834bf0890e18a3c9d0c7133797fa9a11c2b7cccd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9ec3b914bc78c5c7020c2d834bf0890e18a3c9d0c7133797fa9a11c2b7cccd6", kill_on_drop: false }` [INFO] [stdout] b9ec3b914bc78c5c7020c2d834bf0890e18a3c9d0c7133797fa9a11c2b7cccd6