[INFO] fetching crate wholock 0.0.1... [INFO] testing wholock-0.0.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate wholock 0.0.1 into /workspace/builds/worker-1-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate wholock 0.0.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-core v0.58.0 [INFO] [stderr] Downloaded test-log-macros v0.2.17 [INFO] [stderr] Downloaded test-log v0.2.17 [INFO] [stderr] Downloaded thiserror-impl v2.0.9 [INFO] [stderr] Downloaded windows-implement v0.57.0 [INFO] [stderr] Downloaded windows-interface v0.57.0 [INFO] [stderr] Downloaded env_filter v0.1.3 [INFO] [stderr] Downloaded env_logger v0.11.6 [INFO] [stderr] Downloaded tempfile v3.15.0 [INFO] [stderr] Downloaded windows-core v0.57.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.92 [INFO] [stderr] Downloaded ntapi v0.4.1 [INFO] [stderr] Downloaded thiserror v2.0.9 [INFO] [stderr] Downloaded windows-result v0.1.2 [INFO] [stderr] Downloaded errno v0.3.10 [INFO] [stderr] Downloaded windows-implement v0.58.0 [INFO] [stderr] Downloaded sysinfo v0.33.1 [INFO] [stderr] Downloaded windows-interface v0.58.0 [INFO] [stderr] Downloaded syn v2.0.95 [INFO] [stderr] Downloaded rustix v0.38.43 [INFO] [stderr] Downloaded windows v0.57.0 [INFO] [stderr] Downloaded windows v0.58.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b29bae3a45d30f5e67d7415e41872ef3762a5b2be75aeb1919056068455d7b5 [INFO] running `Command { std: "docker" "start" "-a" "2b29bae3a45d30f5e67d7415e41872ef3762a5b2be75aeb1919056068455d7b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b29bae3a45d30f5e67d7415e41872ef3762a5b2be75aeb1919056068455d7b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b29bae3a45d30f5e67d7415e41872ef3762a5b2be75aeb1919056068455d7b5", kill_on_drop: false }` [INFO] [stdout] 2b29bae3a45d30f5e67d7415e41872ef3762a5b2be75aeb1919056068455d7b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a16954f0e3d373706720dcf34155ac5016038fe52a4112a466a4d7a6c50589ee [INFO] running `Command { std: "docker" "start" "-a" "a16954f0e3d373706720dcf34155ac5016038fe52a4112a466a4d7a6c50589ee", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling syn v2.0.95 [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 regex-automata v0.4.9 [INFO] [stderr] Compiling sysinfo v0.33.1 [INFO] [stderr] Compiling windows-implement v0.58.0 [INFO] [stderr] Compiling windows-interface v0.58.0 [INFO] [stderr] Compiling test-log-macros v0.2.17 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling windows-core v0.58.0 [INFO] [stderr] Compiling windows v0.58.0 [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 test-log v0.2.17 [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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/os/mod.rs:120:10 [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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/ffi/os_str.rs:141:5 [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[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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/ffi/os_str.rs:141:5 [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] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wholock` (lib) due to 29 previous errors [INFO] running `Command { std: "docker" "inspect" "a16954f0e3d373706720dcf34155ac5016038fe52a4112a466a4d7a6c50589ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a16954f0e3d373706720dcf34155ac5016038fe52a4112a466a4d7a6c50589ee", kill_on_drop: false }` [INFO] [stdout] a16954f0e3d373706720dcf34155ac5016038fe52a4112a466a4d7a6c50589ee