[INFO] fetching crate system_wide_key_state 1.2.0... [INFO] testing system_wide_key_state-1.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate system_wide_key_state 1.2.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate system_wide_key_state 1.2.0 [INFO] finished tweaking crates.io crate system_wide_key_state 1.2.0 [INFO] tweaked toml for crates.io crate system_wide_key_state 1.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate system_wide_key_state 1.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 13 packages to latest compatible versions [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e424b1dbe4cb228df94adb5c0d50c681373734bd0604e04953dff90b5adfa02 [INFO] running `Command { std: "docker" "start" "-a" "3e424b1dbe4cb228df94adb5c0d50c681373734bd0604e04953dff90b5adfa02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e424b1dbe4cb228df94adb5c0d50c681373734bd0604e04953dff90b5adfa02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e424b1dbe4cb228df94adb5c0d50c681373734bd0604e04953dff90b5adfa02", kill_on_drop: false }` [INFO] [stdout] 3e424b1dbe4cb228df94adb5c0d50c681373734bd0604e04953dff90b5adfa02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec2be54e52d4e1d5ff0a48344c70d80739d13f677fd9fa0a4feac7a0294fef50 [INFO] running `Command { std: "docker" "start" "-a" "ec2be54e52d4e1d5ff0a48344c70d80739d13f677fd9fa0a4feac7a0294fef50", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling system_wide_key_state v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.56s [INFO] running `Command { std: "docker" "inspect" "ec2be54e52d4e1d5ff0a48344c70d80739d13f677fd9fa0a4feac7a0294fef50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec2be54e52d4e1d5ff0a48344c70d80739d13f677fd9fa0a4feac7a0294fef50", kill_on_drop: false }` [INFO] [stdout] ec2be54e52d4e1d5ff0a48344c70d80739d13f677fd9fa0a4feac7a0294fef50 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97d0b9e9b929888a629dca569f0b4841b6823b645b690417986529a2861ed292 [INFO] running `Command { std: "docker" "start" "-a" "97d0b9e9b929888a629dca569f0b4841b6823b645b690417986529a2861ed292", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling system_wide_key_state v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyCode` [INFO] [stdout] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stdout] 82 | pub enum KeyCode { [INFO] [stdout] | ------- `KeyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "97d0b9e9b929888a629dca569f0b4841b6823b645b690417986529a2861ed292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97d0b9e9b929888a629dca569f0b4841b6823b645b690417986529a2861ed292", kill_on_drop: false }` [INFO] [stdout] 97d0b9e9b929888a629dca569f0b4841b6823b645b690417986529a2861ed292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 828df438ddc7894bda925209471b3462d33fdaed419091eaec8605101df46cd1 [INFO] running `Command { std: "docker" "start" "-a" "828df438ddc7894bda925209471b3462d33fdaed419091eaec8605101df46cd1", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:80:23 [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyCode` [INFO] [stderr] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stderr] 82 | pub enum KeyCode { [INFO] [stderr] | ------- `KeyCode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:80:36 [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Copy, Clone, ToPrimitive, FromPrimitive, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyCode` [INFO] [stderr] 81 | // see /usr/include/X11/keysymdef.h [INFO] [stderr] 82 | pub enum KeyCode { [INFO] [stderr] | ------- `KeyCode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `system_wide_key_state` (lib) generated 2 warnings [INFO] [stderr] warning: `system_wide_key_state` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/system_wide_key_state-20625c83f32cdef0) [INFO] [stdout] [INFO] [stderr] Doc-tests system_wide_key_state [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - is_key_pressed (line 158) ... FAILED [INFO] [stdout] test src/lib.rs - get_key_name (line 284) ... FAILED [INFO] [stdout] test src/lib.rs - string_to_key (line 202) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - is_key_pressed (line 158) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `is_key_pressed` in this scope [INFO] [stdout] --> src/lib.rs:160:14 [INFO] [stdout] | [INFO] [stdout] 160 | let answer = is_key_pressed(KeyCode::KEsc); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 158 + use system_wide_key_state::is_key_pressed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `KeyCode` in this scope [INFO] [stdout] --> src/lib.rs:160:29 [INFO] [stdout] | [INFO] [stdout] 160 | let answer = is_key_pressed(KeyCode::KEsc); [INFO] [stdout] | ^^^^^^^ use of undeclared type `KeyCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 158 + use system_wide_key_state::KeyCode; [INFO] [stdout] | [INFO] [stdout] 158 + use x11::xlib::KeyCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_key_pressed` in this scope [INFO] [stdout] --> src/lib.rs:163:14 [INFO] [stdout] | [INFO] [stdout] 163 | let answer = is_key_pressed(KeyCode::KT); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 158 + use system_wide_key_state::is_key_pressed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `KeyCode` in this scope [INFO] [stdout] --> src/lib.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | let answer = is_key_pressed(KeyCode::KT); [INFO] [stdout] | ^^^^^^^ use of undeclared type `KeyCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 158 + use system_wide_key_state::KeyCode; [INFO] [stdout] | [INFO] [stdout] 158 + use x11::xlib::KeyCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_key_name (line 284) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_key_name` in this scope [INFO] [stdout] --> src/lib.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | assert_eq!("T", get_key_name(KeyCode::KT)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 284 + use system_wide_key_state::get_key_name; [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `KeyCode` in this scope [INFO] [stdout] --> src/lib.rs:285:30 [INFO] [stdout] | [INFO] [stdout] 285 | assert_eq!("T", get_key_name(KeyCode::KT)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `KeyCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 284 + use system_wide_key_state::KeyCode; [INFO] [stdout] | [INFO] [stdout] 284 + use x11::xlib::KeyCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - string_to_key (line 202) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `string_to_key` in this scope [INFO] [stdout] --> src/lib.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | assert_eq!(string_to_key("T"), KeyCode::KT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 202 + use system_wide_key_state::string_to_key; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `KeyCode` in this scope [INFO] [stdout] --> src/lib.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | assert_eq!(string_to_key("T"), KeyCode::KT); [INFO] [stdout] | ^^^^^^^ use of undeclared type `KeyCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 202 + use system_wide_key_state::KeyCode; [INFO] [stdout] | [INFO] [stdout] 202 + use x11::xlib::KeyCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `string_to_key` in this scope [INFO] [stdout] --> src/lib.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | assert_eq!(string_to_key("some invalid text"), KeyCode::None); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 202 + use system_wide_key_state::string_to_key; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `KeyCode` in this scope [INFO] [stdout] --> src/lib.rs:204:48 [INFO] [stdout] | [INFO] [stdout] 204 | assert_eq!(string_to_key("some invalid text"), KeyCode::None); [INFO] [stdout] | ^^^^^^^ use of undeclared type `KeyCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 202 + use system_wide_key_state::KeyCode; [INFO] [stdout] | [INFO] [stdout] 202 + use x11::xlib::KeyCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - get_key_name (line 284) [INFO] [stdout] src/lib.rs - is_key_pressed (line 158) [INFO] [stdout] src/lib.rs - string_to_key (line 202) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "828df438ddc7894bda925209471b3462d33fdaed419091eaec8605101df46cd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "828df438ddc7894bda925209471b3462d33fdaed419091eaec8605101df46cd1", kill_on_drop: false }` [INFO] [stdout] 828df438ddc7894bda925209471b3462d33fdaed419091eaec8605101df46cd1