[INFO] cloning repository https://github.com/kmgb/keyboardhook-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmgb/keyboardhook-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmgb%2Fkeyboardhook-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmgb%2Fkeyboardhook-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 460b1ad9d564eb024609080fbd52ff966d3cbc7f [INFO] checking kmgb/keyboardhook-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmgb%2Fkeyboardhook-rs" "/workspace/builds/worker-101/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-101/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kmgb/keyboardhook-rs 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/kmgb/keyboardhook-rs [INFO] finished tweaking git repo https://github.com/kmgb/keyboardhook-rs [INFO] tweaked toml for git repo https://github.com/kmgb/keyboardhook-rs written to /workspace/builds/worker-101/source/Cargo.toml [INFO] crate git repo https://github.com/kmgb/keyboardhook-rs 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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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] 403f55eb8713c5f5fef24c0f493f969f3325974e06a30b5930d1db55b809ca31 [INFO] running `Command { std: "docker" "start" "-a" "403f55eb8713c5f5fef24c0f493f969f3325974e06a30b5930d1db55b809ca31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "403f55eb8713c5f5fef24c0f493f969f3325974e06a30b5930d1db55b809ca31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "403f55eb8713c5f5fef24c0f493f969f3325974e06a30b5930d1db55b809ca31", kill_on_drop: false }` [INFO] [stdout] 403f55eb8713c5f5fef24c0f493f969f3325974e06a30b5930d1db55b809ca31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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] dc3afec0f199fe570ba0d199a84d40cf0ca1597ca60b71fd82322f653a6d0b48 [INFO] running `Command { std: "docker" "start" "-a" "dc3afec0f199fe570ba0d199a84d40cf0ca1597ca60b71fd82322f653a6d0b48", 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] Compiling winapi v0.3.9 [INFO] [stderr] Checking keyboardhook-rs 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/hook.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::HHOOK; [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/hook.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{WPARAM, LPARAM, LRESULT, UINT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/hook.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/hook.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UINT` [INFO] [stdout] --> src/hook.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | match UINT::try_from(w_param).unwrap() { [INFO] [stdout] | ^^^^ use of undeclared type `UINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn setup_hook() -> HHOOK { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn remove_hook(hook: HHOOK) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:55:58 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/hook.rs:55:75 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/hook.rs:55:86 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/hook.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `keyboardhook-rs` due to 11 previous errors; 1 warning emitted [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/hook.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::windef::HHOOK; [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/hook.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{WPARAM, LPARAM, LRESULT, UINT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/hook.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/hook.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UINT` [INFO] [stdout] --> src/hook.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | match UINT::try_from(w_param).unwrap() { [INFO] [stdout] | ^^^^ use of undeclared type `UINT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn setup_hook() -> HHOOK { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HHOOK` in this scope [INFO] [stdout] --> src/hook.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn remove_hook(hook: HHOOK) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/hook.rs:55:58 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/hook.rs:55:75 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/hook.rs:55:86 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe extern "system" fn callback(code: c_int, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/hook.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, 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" "dc3afec0f199fe570ba0d199a84d40cf0ca1597ca60b71fd82322f653a6d0b48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc3afec0f199fe570ba0d199a84d40cf0ca1597ca60b71fd82322f653a6d0b48", kill_on_drop: false }` [INFO] [stdout] dc3afec0f199fe570ba0d199a84d40cf0ca1597ca60b71fd82322f653a6d0b48