[INFO] fetching crate moon-win32-utils 0.1.0... [INFO] testing moon-win32-utils-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate moon-win32-utils 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate moon-win32-utils 0.1.0 [INFO] finished tweaking crates.io crate moon-win32-utils 0.1.0 [INFO] tweaked toml for crates.io crate moon-win32-utils 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate moon-win32-utils 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate moon-win32-utils 0.1.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de85d8b235704c15e96c8d0e70cf458775773ce6d70857ed97aef777414d606f [INFO] running `Command { std: "docker" "start" "-a" "de85d8b235704c15e96c8d0e70cf458775773ce6d70857ed97aef777414d606f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de85d8b235704c15e96c8d0e70cf458775773ce6d70857ed97aef777414d606f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de85d8b235704c15e96c8d0e70cf458775773ce6d70857ed97aef777414d606f", kill_on_drop: false }` [INFO] [stdout] de85d8b235704c15e96c8d0e70cf458775773ce6d70857ed97aef777414d606f [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2efcb8776e19dcc831851f66cbc0e620dbefdb006b8e81bd2e532ea51799665 [INFO] running `Command { std: "docker" "start" "-a" "c2efcb8776e19dcc831851f66cbc0e620dbefdb006b8e81bd2e532ea51799665", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling windows-targets v0.52.6 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling windows-result v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling windows-strings v0.1.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling windows-implement v0.58.0 [INFO] [stderr] Compiling windows-interface v0.58.0 [INFO] [stderr] Compiling windows-core v0.58.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling windows v0.58.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling moon-win32-utils v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Win32::{Foundation::NTSTATUS, System::Diagnostics::Debug::FormatMessageW}, [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:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | core::PWSTR, [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/file_utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/file_utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | core::PCWSTR, [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/ntdll.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use windows::Win32::Foundation::{BOOLEAN, HANDLE, NTSTATUS, UNICODE_STRING}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/ntdll.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::core::PCWSTR; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/ntdll_wrap.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/privilege.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/ntdll_wrap.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | core::{PCSTR, PCWSTR}, [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/registry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Win32::System::Registry::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/registry.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | core::PCWSTR, [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/string.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::{core::PWSTR, Win32::Foundation::UNICODE_STRING}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/system_info.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use windows::Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/wrapper/handle.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use windows::Win32::Foundation::{CloseHandle, HANDLE}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/string.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::{core::PWSTR, Win32::Foundation::UNICODE_STRING}; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `core` in `windows` [INFO] [stdout] --> src/error.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | CoreError(windows::core::Error), // windows-rs 核心错误 [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `core` in `windows` [INFO] [stdout] --> src/error.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | impl From for WindowsError { [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `core` in `windows` [INFO] [stdout] --> src/error.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | fn from(err: windows::core::Error) -> Self { [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `core` in `windows` [INFO] [stdout] --> src/error.rs:18:42 [INFO] [stdout] | [INFO] [stdout] 18 | WindowsError::CoreError(windows::core::Error::from_win32()) [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 3 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 18 - WindowsError::CoreError(windows::core::Error::from_win32()) [INFO] [stdout] 18 + WindowsError::CoreError(Error::from_win32()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/error.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | windows::Win32::System::Diagnostics::Debug::FORMAT_MESSAGE_FROM_SYSTEM [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Debug; [INFO] [stdout] | [INFO] [stdout] help: if you import `Debug`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 87 - windows::Win32::System::Diagnostics::Debug::FORMAT_MESSAGE_FROM_SYSTEM [INFO] [stdout] 87 + Debug::FORMAT_MESSAGE_FROM_SYSTEM [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/error.rs:88:28 [INFO] [stdout] | [INFO] [stdout] 88 | | windows::Win32::System::Diagnostics::Debug::FORMAT_MESSAGE_IGNORE_INSERTS, [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Debug; [INFO] [stdout] | [INFO] [stdout] help: if you import `Debug`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 88 - | windows::Win32::System::Diagnostics::Debug::FORMAT_MESSAGE_IGNORE_INSERTS, [INFO] [stdout] 88 + | Debug::FORMAT_MESSAGE_IGNORE_INSERTS, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ntdll_wrap.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 23 | RtlAdjustPrivilege( [INFO] [stdout] | ------------------ arguments to this function are incorrect [INFO] [stdout] 24 | privilege, [INFO] [stdout] | ^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/ntdll.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn RtlAdjustPrivilege( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | Privilege: ULONG, [INFO] [stdout] | --------- [INFO] [stdout] help: you can convert a `u32` to a `u64` [INFO] [stdout] | [INFO] [stdout] 24 | privilege.into(), [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/system_info.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 101 | status = NtQuerySystemInformation( [INFO] [stdout] | ------------------------ arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 104 | buffer_size, [INFO] [stdout] | ^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/ntdll.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn NtQuerySystemInformation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | SystemInformationLength: ULONG, [INFO] [stdout] | ----------------------- [INFO] [stdout] help: you can convert a `u32` to a `u64` [INFO] [stdout] | [INFO] [stdout] 104 | buffer_size.into(), [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `moon-win32-utils` (lib) due to 23 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "c2efcb8776e19dcc831851f66cbc0e620dbefdb006b8e81bd2e532ea51799665", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2efcb8776e19dcc831851f66cbc0e620dbefdb006b8e81bd2e532ea51799665", kill_on_drop: false }` [INFO] [stdout] c2efcb8776e19dcc831851f66cbc0e620dbefdb006b8e81bd2e532ea51799665