[INFO] cloning repository https://github.com/Nanopro/file-dialog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nanopro/file-dialog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanopro%2Ffile-dialog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanopro%2Ffile-dialog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08746e485384b5a93a60d770f9ad1386a44d8e6a [INFO] checking Nanopro/file-dialog against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNanopro%2Ffile-dialog" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nanopro/file-dialog 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 git repo https://github.com/Nanopro/file-dialog [INFO] finished tweaking git repo https://github.com/Nanopro/file-dialog [INFO] tweaked toml for git repo https://github.com/Nanopro/file-dialog written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/Nanopro/file-dialog already has a lockfile, it will not be regenerated [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 addr2line v0.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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] 1d85eac232e812cfcc2ee289d41b776820d18faf9f3e1336bf894ef2a978feb2 [INFO] running `Command { std: "docker" "start" "-a" "1d85eac232e812cfcc2ee289d41b776820d18faf9f3e1336bf894ef2a978feb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d85eac232e812cfcc2ee289d41b776820d18faf9f3e1336bf894ef2a978feb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d85eac232e812cfcc2ee289d41b776820d18faf9f3e1336bf894ef2a978feb2", kill_on_drop: false }` [INFO] [stdout] 1d85eac232e812cfcc2ee289d41b776820d18faf9f3e1336bf894ef2a978feb2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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] 9a6295756a5da47b7e2aff7db62830345e4ecb94a82ec5870eafa6f1755819db [INFO] running `Command { std: "docker" "start" "-a" "9a6295756a5da47b7e2aff7db62830345e4ecb94a82ec5870eafa6f1755819db", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] winapi v0.3.8: basetsd, combaseapi, consoleapi, dwmapi, errhandlingapi, fileapi, handleapi, hidusage, libloaderapi, memoryapi, minwindef, ntstatus, objbase, ole2, processenv, processthreadsapi, shellapi, shellscalingapi, shobjidl_core, std, sysinfoapi, unknwnbase, winbase, wincon, windowsx, winerror, wingdi, winnt, winuser [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cc v1.0.52 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking downcast-rs v1.1.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking file-dialog v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | let mut open: OPENFILENAMEA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:24:44 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn open_dialog(hwnd: *mut T) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `, OPENFILENAMEA` [INFO] [stdout] ... [INFO] [stdout] 24 | open.lStructSize = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetOpenFileNameA` in this scope [INFO] [stdout] --> src/lib.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | let res = unsafe { GetOpenFileNameA(&mut open) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | let mut open: OPENFILENAMEA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn open_dialog_windowless() -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 41 | open.lStructSize = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetOpenFileNameA` in this scope [INFO] [stdout] --> src/lib.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | let res = unsafe { GetOpenFileNameA(&mut open) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | let mut open: OPENFILENAMEA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn save_dialog(hwnd: *mut T) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `, OPENFILENAMEA` [INFO] [stdout] ... [INFO] [stdout] 57 | open.lStructSize = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSaveFileNameA` in this scope [INFO] [stdout] --> src/lib.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | let res = unsafe { GetSaveFileNameA(&mut open) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | let mut open: OPENFILENAMEA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OPENFILENAMEA` in this scope [INFO] [stdout] --> src/lib.rs:73:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn save_dialog_windowless() -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 73 | open.lStructSize = std::mem::size_of::() as _; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSaveFileNameA` in this scope [INFO] [stdout] --> src/lib.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | let res = unsafe { GetSaveFileNameA(&mut open) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CString`, `OsString`, `c_void` [INFO] [stdout] --> src/lib.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::{CStr, CString, c_void, OsString}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | if (res != 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if (res != 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | if (res != 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | if (res != 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `file-dialog` due to 14 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "9a6295756a5da47b7e2aff7db62830345e4ecb94a82ec5870eafa6f1755819db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a6295756a5da47b7e2aff7db62830345e4ecb94a82ec5870eafa6f1755819db", kill_on_drop: false }` [INFO] [stdout] 9a6295756a5da47b7e2aff7db62830345e4ecb94a82ec5870eafa6f1755819db