[INFO] fetching crate windows-drives 0.5.0... [INFO] checking windows-drives-0.5.0 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate windows-drives 0.5.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate windows-drives 0.5.0 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate windows-drives 0.5.0 [INFO] finished tweaking crates.io crate windows-drives 0.5.0 [INFO] tweaked toml for crates.io crate windows-drives 0.5.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-try-from-primitive v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d13e0f1802c8f2ed240eb6409e57dacf017b03a9bae6fdb2b4858a8ae00549ac [INFO] running `Command { std: "docker" "start" "-a" "d13e0f1802c8f2ed240eb6409e57dacf017b03a9bae6fdb2b4858a8ae00549ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d13e0f1802c8f2ed240eb6409e57dacf017b03a9bae6fdb2b4858a8ae00549ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d13e0f1802c8f2ed240eb6409e57dacf017b03a9bae6fdb2b4858a8ae00549ac", kill_on_drop: false }` [INFO] [stdout] d13e0f1802c8f2ed240eb6409e57dacf017b03a9bae6fdb2b4858a8ae00549ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccbedea683b477d74ae49dba39e0be7a7aac6b7832c7549d6a5c52405ab12595 [INFO] running `Command { std: "docker" "start" "-a" "ccbedea683b477d74ae49dba39e0be7a7aac6b7832c7549d6a5c52405ab12595", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling derive-try-from-primitive v1.0.0 [INFO] [stderr] Checking windows-drives v0.5.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/drive.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | shared::ntdef::LARGE_INTEGER, [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/drive.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | um::{ [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/win32.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [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/win32.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::ctypes`, `winapi::um` [INFO] [stdout] --> src/drive.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] 12 | shared::ntdef::LARGE_INTEGER, [INFO] [stdout] 13 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LARGE_INTEGER` [INFO] [stdout] --> src/macros.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | let mut dist = LARGE_INTEGER::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `LARGE_INTEGER` [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LARGE_INTEGER` [INFO] [stdout] --> src/macros.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | let mut new_pos = LARGE_INTEGER::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `LARGE_INTEGER` [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_GPT` in this scope [INFO] [stdout] --> src/drive.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | Gpt = PARTITION_STYLE_GPT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_MBR` in this scope [INFO] [stdout] --> src/drive.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | Mbr = PARTITION_STYLE_MBR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_RAW` in this scope [INFO] [stdout] --> src/drive.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | Raw = PARTITION_STYLE_RAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_BEGIN` in this scope [INFO] [stdout] --> src/macros.rs:72:87 [INFO] [stdout] | [INFO] [stdout] 72 | ... fs::SetFilePointerEx(self.handle, dist, &mut new_pos, FILE_BEGIN) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_CURRENT` in this scope [INFO] [stdout] --> src/macros.rs:78:87 [INFO] [stdout] | [INFO] [stdout] 78 | ... fs::SetFilePointerEx(self.handle, dist, &mut new_pos, FILE_CURRENT) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/macros.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | CloseHandle(self.handle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:237:11 [INFO] [stdout] | [INFO] [stdout] 237 | impl From for DiskGeometry { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 238 | fn from(geo: DISK_GEOMETRY) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:249:11 [INFO] [stdout] | [INFO] [stdout] 249 | impl From for PartitionInfo { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | fn from(info: PARTITION_INFORMATION_EX) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:260:38 [INFO] [stdout] | [INFO] [stdout] 260 | fn open_handle(path: &str) -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/drive.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> src/drive.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/drive.rs:266:31 [INFO] [stdout] | [INFO] [stdout] 266 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/drive.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_FLAG_NO_BUFFERING` in this scope [INFO] [stdout] --> src/drive.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | FILE_FLAG_NO_BUFFERING, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/drive.rs:273:18 [INFO] [stdout] | [INFO] [stdout] 273 | if handle == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | fn geometry(drive: &HANDLE) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:290:23 [INFO] [stdout] | [INFO] [stdout] 290 | let geo_ptr: *mut DISK_GEOMETRY = &mut geo; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/drive.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IOCTL_DISK_GET_DRIVE_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | IOCTL_DISK_GET_DRIVE_GEOMETRY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:298:23 [INFO] [stdout] | [INFO] [stdout] 287 | fn geometry(drive: &HANDLE) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 298 | size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:315:31 [INFO] [stdout] | [INFO] [stdout] 315 | fn partition_info(partition: &HANDLE) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | let info_ptr: *mut PARTITION_INFORMATION_EX = &mut info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/drive.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IOCTL_DISK_GET_PARTITION_INFO_EX` in this scope [INFO] [stdout] --> src/drive.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | IOCTL_DISK_GET_PARTITION_INFO_EX, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:326:23 [INFO] [stdout] | [INFO] [stdout] 315 | fn partition_info(partition: &HANDLE) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 326 | size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/win32.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { GetLastError() } [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win32.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | OsStr::new(s).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 38 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `windows-drives` due to 39 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/drive.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | shared::ntdef::LARGE_INTEGER, [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/drive.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | um::{ [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/win32.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [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/win32.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::ctypes`, `winapi::um` [INFO] [stdout] --> src/drive.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] 12 | shared::ntdef::LARGE_INTEGER, [INFO] [stdout] 13 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LARGE_INTEGER` [INFO] [stdout] --> src/macros.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | let mut dist = LARGE_INTEGER::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `LARGE_INTEGER` [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LARGE_INTEGER` [INFO] [stdout] --> src/macros.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | let mut new_pos = LARGE_INTEGER::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `LARGE_INTEGER` [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_GPT` in this scope [INFO] [stdout] --> src/drive.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | Gpt = PARTITION_STYLE_GPT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_MBR` in this scope [INFO] [stdout] --> src/drive.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | Mbr = PARTITION_STYLE_MBR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_STYLE_RAW` in this scope [INFO] [stdout] --> src/drive.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | Raw = PARTITION_STYLE_RAW, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_BEGIN` in this scope [INFO] [stdout] --> src/macros.rs:72:87 [INFO] [stdout] | [INFO] [stdout] 72 | ... fs::SetFilePointerEx(self.handle, dist, &mut new_pos, FILE_BEGIN) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_CURRENT` in this scope [INFO] [stdout] --> src/macros.rs:78:87 [INFO] [stdout] | [INFO] [stdout] 78 | ... fs::SetFilePointerEx(self.handle, dist, &mut new_pos, FILE_CURRENT) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/macros.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | CloseHandle(self.handle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] ::: src/drive.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | impl_physical!(PhysicalDrive, HarddiskVolume); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_physical` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:237:11 [INFO] [stdout] | [INFO] [stdout] 237 | impl From for DiskGeometry { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 238 | fn from(geo: DISK_GEOMETRY) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:249:11 [INFO] [stdout] | [INFO] [stdout] 249 | impl From for PartitionInfo { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | fn from(info: PARTITION_INFORMATION_EX) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:260:38 [INFO] [stdout] | [INFO] [stdout] 260 | fn open_handle(path: &str) -> Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/drive.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> src/drive.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> src/drive.rs:266:31 [INFO] [stdout] | [INFO] [stdout] 266 | FILE_SHARE_READ | FILE_SHARE_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/drive.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_FLAG_NO_BUFFERING` in this scope [INFO] [stdout] --> src/drive.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | FILE_FLAG_NO_BUFFERING, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/drive.rs:273:18 [INFO] [stdout] | [INFO] [stdout] 273 | if handle == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | fn geometry(drive: &HANDLE) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:290:23 [INFO] [stdout] | [INFO] [stdout] 290 | let geo_ptr: *mut DISK_GEOMETRY = &mut geo; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/drive.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IOCTL_DISK_GET_DRIVE_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | IOCTL_DISK_GET_DRIVE_GEOMETRY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISK_GEOMETRY` in this scope [INFO] [stdout] --> src/drive.rs:298:23 [INFO] [stdout] | [INFO] [stdout] 287 | fn geometry(drive: &HANDLE) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 298 | size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/drive.rs:315:31 [INFO] [stdout] | [INFO] [stdout] 315 | fn partition_info(partition: &HANDLE) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | let info_ptr: *mut PARTITION_INFORMATION_EX = &mut info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/drive.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IOCTL_DISK_GET_PARTITION_INFO_EX` in this scope [INFO] [stdout] --> src/drive.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | IOCTL_DISK_GET_PARTITION_INFO_EX, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PARTITION_INFORMATION_EX` in this scope [INFO] [stdout] --> src/drive.rs:326:23 [INFO] [stdout] | [INFO] [stdout] 315 | fn partition_info(partition: &HANDLE) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 326 | size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/win32.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { GetLastError() } [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win32.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | OsStr::new(s).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 38 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "ccbedea683b477d74ae49dba39e0be7a7aac6b7832c7549d6a5c52405ab12595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccbedea683b477d74ae49dba39e0be7a7aac6b7832c7549d6a5c52405ab12595", kill_on_drop: false }` [INFO] [stdout] ccbedea683b477d74ae49dba39e0be7a7aac6b7832c7549d6a5c52405ab12595