[INFO] cloning repository https://github.com/fc1943s/window-toggler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fc1943s/window-toggler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffc1943s%2Fwindow-toggler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffc1943s%2Fwindow-toggler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7be66cdc42e0a49ad74ecfbca9263130cc04251a [INFO] checking fc1943s/window-toggler against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffc1943s%2Fwindow-toggler" "/workspace/builds/worker-38/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-38/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fc1943s/window-toggler 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/fc1943s/window-toggler [INFO] finished tweaking git repo https://github.com/fc1943s/window-toggler [INFO] tweaked toml for git repo https://github.com/fc1943s/window-toggler written to /workspace/builds/worker-38/source/Cargo.toml [INFO] crate git repo https://github.com/fc1943s/window-toggler 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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.32 [INFO] [stderr] Downloaded hotkey v0.3.1 [INFO] [stderr] Downloaded pathsearch v0.2.0 [INFO] [stderr] Downloaded windows-win v2.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/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] 8c7026edfe215cc29493b89648f0c94107a36447dd47914fbedd9d8b85d2a801 [INFO] running `Command { std: "docker" "start" "-a" "8c7026edfe215cc29493b89648f0c94107a36447dd47914fbedd9d8b85d2a801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c7026edfe215cc29493b89648f0c94107a36447dd47914fbedd9d8b85d2a801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c7026edfe215cc29493b89648f0c94107a36447dd47914fbedd9d8b85d2a801", kill_on_drop: false }` [INFO] [stdout] 8c7026edfe215cc29493b89648f0c94107a36447dd47914fbedd9d8b85d2a801 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/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] 4dc29950de6c6d15173f7290e96ef94846bd768ddb75834eac0bf42d3bdbbaf3 [INFO] running `Command { std: "docker" "start" "-a" "4dc29950de6c6d15173f7290e96ef94846bd768ddb75834eac0bf42d3bdbbaf3", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [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, fileapi, handleapi, libloaderapi, memoryapi, minwindef, processthreadsapi, profileapi, std, threadpoollegacyapiset, winbase, wincon, windef, winerror, winnt, winuser [INFO] [stderr] [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Checking windows-win v2.4.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking pathsearch v0.2.0 [INFO] [stderr] Checking hotkey v0.3.1 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking window-toggler v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::{HWND, HWND__, POINT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_win::raw` [INFO] [stdout] --> src/main.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_win::raw::window; [INFO] [stdout] | ^^^ could not find `raw` in `windows_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winuser::{SC_MINIMIZE, SC_RESTORE, SendInput, INPUT_KEYBOARD}; [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/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winnt::LONG; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND__` in this scope [INFO] [stdout] --> src/main.rs:17:43 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe fn get_foreground_window() -> *mut HWND__ { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe fn set_foreground_window(hwnd: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/main.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/main.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND__` in this scope [INFO] [stdout] --> src/main.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/main.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | winuser::WindowFromPoint(POINT { x, y }) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_KEYBOARD` in this scope [INFO] [stdout] --> src/main.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | type_: INPUT_KEYBOARD, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | SendInput(1, &mut input, size_of::() as i32); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_MINIMIZE` in this scope [INFO] [stdout] --> src/main.rs:57:59 [INFO] [stdout] | [INFO] [stdout] 57 | window::send_sys_command(*search_result_hwnd, SC_MINIMIZE, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_RESTORE` in this scope [INFO] [stdout] --> src/main.rs:89:59 [INFO] [stdout] | [INFO] [stdout] 89 | window::send_sys_command(*search_result_hwnd, SC_RESTORE, 0); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `window-toggler` due to 16 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/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::{HWND, HWND__, POINT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_win::raw` [INFO] [stdout] --> src/main.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_win::raw::window; [INFO] [stdout] | ^^^ could not find `raw` in `windows_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winuser::{SC_MINIMIZE, SC_RESTORE, SendInput, INPUT_KEYBOARD}; [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/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winnt::LONG; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND__` in this scope [INFO] [stdout] --> src/main.rs:17:43 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe fn get_foreground_window() -> *mut HWND__ { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe fn set_foreground_window(hwnd: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/main.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/main.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND__` in this scope [INFO] [stdout] --> src/main.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe fn window_from_point(x: LONG, y: LONG) -> *mut HWND__ { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/main.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | winuser::WindowFromPoint(POINT { x, y }) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INPUT_KEYBOARD` in this scope [INFO] [stdout] --> src/main.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | type_: INPUT_KEYBOARD, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | SendInput(1, &mut input, size_of::() as i32); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_MINIMIZE` in this scope [INFO] [stdout] --> src/main.rs:57:59 [INFO] [stdout] | [INFO] [stdout] 57 | window::send_sys_command(*search_result_hwnd, SC_MINIMIZE, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_RESTORE` in this scope [INFO] [stdout] --> src/main.rs:89:59 [INFO] [stdout] | [INFO] [stdout] 89 | window::send_sys_command(*search_result_hwnd, SC_RESTORE, 0); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [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" "4dc29950de6c6d15173f7290e96ef94846bd768ddb75834eac0bf42d3bdbbaf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dc29950de6c6d15173f7290e96ef94846bd768ddb75834eac0bf42d3bdbbaf3", kill_on_drop: false }` [INFO] [stdout] 4dc29950de6c6d15173f7290e96ef94846bd768ddb75834eac0bf42d3bdbbaf3