[INFO] fetching crate winhandle 0.3.0... [INFO] testing winhandle-0.3.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate winhandle 0.3.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate winhandle 0.3.0 [INFO] finished tweaking crates.io crate winhandle 0.3.0 [INFO] tweaked toml for crates.io crate winhandle 0.3.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate winhandle 0.3.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] [stderr] Adding lazy_static v0.2.11 (available: v1.5.0) [INFO] [stderr] Adding widestring v0.2.2 (available: v1.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 663b6d40d5b93d647e179d8c87b2009cc31a3c356b7bdd3fcdc0ee419c389925 [INFO] running `Command { std: "docker" "start" "-a" "663b6d40d5b93d647e179d8c87b2009cc31a3c356b7bdd3fcdc0ee419c389925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "663b6d40d5b93d647e179d8c87b2009cc31a3c356b7bdd3fcdc0ee419c389925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "663b6d40d5b93d647e179d8c87b2009cc31a3c356b7bdd3fcdc0ee419c389925", kill_on_drop: false }` [INFO] [stdout] 663b6d40d5b93d647e179d8c87b2009cc31a3c356b7bdd3fcdc0ee419c389925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] abe1a55418385f8f31b70ba6486ed99ee164bbfa0c557fa8f49dfe4318bf60bd [INFO] running `Command { std: "docker" "start" "-a" "abe1a55418385f8f31b70ba6486ed99ee164bbfa0c557fa8f49dfe4318bf60bd", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling widestring v0.2.2 [INFO] [stderr] Compiling winhandle v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/macros.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | pub use winapi::shared::minwindef::{FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/macros.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub use winapi::shared::winerror::{E_FAIL, S_OK}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/macros.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub use winapi::shared::winerror::{SUCCEEDED}; [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/macros.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | pub use winapi::um::errhandlingapi::{GetLastError}; [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/macros.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub use winapi::um::handleapi::{INVALID_HANDLE_VALUE}; [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/handle.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/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/b83b707f97d809763b7861afa7638871f3339a33/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[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/handle.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::winnt::{HANDLE, PVOID, ACCESS_MASK}; [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/handle.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winnt::{DUPLICATE_SAME_ACCESS, DUPLICATE_CLOSE_SOURCE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/handle.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::minwindef::{DWORD, ULONG, TRUE, FALSE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/handle.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::winerror::{SUCCEEDED, NO_ERROR}; [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/handle.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle, GetHandleInformation, DuplicateHandle}; [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/handle.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::processthreadsapi::{GetCurrentProcess}; [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/handle.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::fileapi::{GetFileType}; [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/handle.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winbase::{FILE_TYPE_CHAR, FILE_TYPE_DISK, FILE_TYPE_PIPE, FILE_TYPE_UNKNOWN}; [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/handle.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::errhandlingapi::{GetLastError}; [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/comptr.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::unknwnbase::IUnknown; [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/mem.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winbase::{LocalFree}; [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/sys.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winnt::{HANDLE, HRESULT, PVOID, LPSTR, ACCESS_MASK}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/sys.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::ntdef::{UNICODE_STRING}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/sys.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{DWORD, HMODULE, ULONG, PULONG}; [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/sys.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi::{GetModuleHandleExW, GetProcAddress}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:76:67 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn clone_from(t: &T) -> io::Result where T: AsRawHandle { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:84:117 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn clone_from_ex(t: &T, inheritable: bool, access: ClonedHandleAccess) -> io::Result where T: AsRawHandle [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:147:50 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn from(handle: &T) -> &Self where T: AsRawHandle { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:295:6 [INFO] [stdout] | [INFO] [stdout] 295 | impl AsRawHandle for WinHandle { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawHandle` in this scope [INFO] [stdout] --> src/handle.rs:296:32 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct WinHandle(HANDLE); [INFO] [stdout] | ----------------------------- similarly named struct `WinHandle` defined here [INFO] [stdout] ... [INFO] [stdout] 296 | fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } } [INFO] [stdout] | ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:299:6 [INFO] [stdout] | [INFO] [stdout] 299 | impl AsRawHandle for WinHandleRef { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawHandle` in this scope [INFO] [stdout] --> src/handle.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct WinHandle(HANDLE); [INFO] [stdout] | ----------------------------- similarly named struct `WinHandle` defined here [INFO] [stdout] ... [INFO] [stdout] 300 | fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } } [INFO] [stdout] | ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoRawHandle` in this scope [INFO] [stdout] --> src/handle.rs:303:40 [INFO] [stdout] | [INFO] [stdout] 303 | impl From for WinHandle where T: IntoRawHandle { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/sys.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / lazy_static! { [INFO] [stdout] 29 | | static ref NT_DLL_HANDLE: Option = unsafe { [INFO] [stdout] 30 | | let mut handle: HMODULE = ptr::null_mut(); [INFO] [stdout] 31 | | match winapi_bool_call!(GetModuleHandleExW( [INFO] [stdout] ... | [INFO] [stdout] 42 | | }; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/sys.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / lazy_static! { [INFO] [stdout] 46 | | pub static ref NtQueryObject: Option = unsafe { [INFO] [stdout] 47 | | NT_DLL_HANDLE.and_then(|nt_dll| { [INFO] [stdout] 48 | | match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) { [INFO] [stdout] ... | [INFO] [stdout] 56 | | }; [INFO] [stdout] 57 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winhandle` (lib) due to 29 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "abe1a55418385f8f31b70ba6486ed99ee164bbfa0c557fa8f49dfe4318bf60bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abe1a55418385f8f31b70ba6486ed99ee164bbfa0c557fa8f49dfe4318bf60bd", kill_on_drop: false }` [INFO] [stdout] abe1a55418385f8f31b70ba6486ed99ee164bbfa0c557fa8f49dfe4318bf60bd