[INFO] cloning repository https://github.com/faassen/apilar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/faassen/apilar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffaassen%2Fapilar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffaassen%2Fapilar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 801d0524edb4346031f1af655e81f3588e25c5d1 [INFO] checking faassen/apilar against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffaassen%2Fapilar" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/faassen/apilar [INFO] finished tweaking git repo https://github.com/faassen/apilar [INFO] tweaked toml for git repo https://github.com/faassen/apilar written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/faassen/apilar on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/faassen/apilar already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha1 v0.10.1 [INFO] [stderr] Downloaded pbkdf2 v0.10.1 [INFO] [stderr] Downloaded zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Downloaded password-hash v0.3.2 [INFO] [stderr] Downloaded moveslice v2.0.1 [INFO] [stderr] Downloaded serde-big-array v0.4.1 [INFO] [stderr] Downloaded zip v0.6.2 [INFO] [stderr] Downloaded base64ct v1.0.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded serde_with_macros v2.0.0 [INFO] [stderr] Downloaded zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Downloaded anyhow v1.0.59 [INFO] [stderr] Downloaded tungstenite v0.17.3 [INFO] [stderr] Downloaded async-compression v0.3.14 [INFO] [stderr] Downloaded serde_cbor v0.10.2 [INFO] [stderr] Downloaded axum v0.5.14 [INFO] [stderr] Downloaded serde_with v2.0.0 [INFO] [stderr] Downloaded iri-string v0.4.1 [INFO] [stderr] Downloaded uuid v1.1.2 [INFO] [stderr] Downloaded chrono v0.4.20 [INFO] [stderr] Downloaded clap v3.2.14 [INFO] [stderr] Downloaded tracing-subscriber v0.3.15 [INFO] [stderr] Downloaded bzip2 v0.4.3 [INFO] [stderr] Downloaded time v0.3.12 [INFO] [stderr] Downloaded zstd-sys v1.6.3+zstd.1.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02775de1d6433b1b48ae505560cb7c4a0cea5467fcfd72ef3c9148fc7b5b40e6 [INFO] running `Command { std: "docker" "start" "-a" "02775de1d6433b1b48ae505560cb7c4a0cea5467fcfd72ef3c9148fc7b5b40e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02775de1d6433b1b48ae505560cb7c4a0cea5467fcfd72ef3c9148fc7b5b40e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02775de1d6433b1b48ae505560cb7c4a0cea5467fcfd72ef3c9148fc7b5b40e6", kill_on_drop: false }` [INFO] [stdout] 02775de1d6433b1b48ae505560cb7c4a0cea5467fcfd72ef3c9148fc7b5b40e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9598bea1516cf801cf59db3ad235fb237f674c9ea0e98acb1d79e41da7ab206 [INFO] running `Command { std: "docker" "start" "-a" "e9598bea1516cf801cf59db3ad235fb237f674c9ea0e98acb1d79e41da7ab206", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking indexmap v1.9.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Checking base64ct v1.0.1 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Compiling rustversion v1.0.8 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking password-hash v0.3.2 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking os_str_bytes v6.2.0 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking time v0.3.12 [INFO] [stderr] Checking headers v0.3.7 [INFO] [stderr] Checking pbkdf2 v0.10.1 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking moveslice v2.0.1 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking iri-string v0.4.1 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking tracing-subscriber v0.3.15 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling darling_core v0.14.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling pin-project-internal v1.0.11 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling strum_macros v0.24.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking futures-util v0.3.21 [INFO] [stderr] Checking pin-project v1.0.11 [INFO] [stderr] Compiling darling_macro v0.14.1 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Compiling darling v0.14.1 [INFO] [stderr] Compiling serde_with_macros v2.0.0 [INFO] [stderr] Checking clap v3.2.14 [INFO] [stderr] Checking axum-core v0.2.7 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking async-compression v0.3.14 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking tower-http v0.3.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_with v2.0.0 [INFO] [stderr] Checking serde-big-array v0.4.1 [INFO] [stderr] Checking serde_cbor v0.10.2 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking axum v0.5.14 [INFO] [stderr] Checking zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.2 [INFO] [stderr] Checking apilar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:489:13 [INFO] [stdout] | [INFO] [stdout] 489 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | let mut location_north = habitat.get_mut((2, 1)); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:517:13 [INFO] [stdout] | [INFO] [stdout] 517 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:534:13 [INFO] [stdout] | [INFO] [stdout] 534 | let mut location_north = habitat.get_mut((2, 1)); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:544:13 [INFO] [stdout] | [INFO] [stdout] 544 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | let mut location_north = habitat.get_mut((2, 1)); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:564:13 [INFO] [stdout] | [INFO] [stdout] 564 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:571:13 [INFO] [stdout] | [INFO] [stdout] 571 | let mut location_north = habitat.get_mut((2, 1)); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:585:13 [INFO] [stdout] | [INFO] [stdout] 585 | let mut location = habitat.get_mut((2, 2)); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/habitat.rs:591:13 [INFO] [stdout] | [INFO] [stdout] 591 | let mut location_north = habitat.get_mut((2, 1)); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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/direction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | FromPrimitive, [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] ... [INFO] [stdout] 17 | pub enum Direction { [INFO] [stdout] | --------- `Direction` 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: `#[warn(non_local_definitions)]` on by default [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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/direction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ToPrimitive, [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Direction` [INFO] [stdout] ... [INFO] [stdout] 17 | pub enum Direction { [INFO] [stdout] | --------- `Direction` 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: 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/instruction.rs:19:47 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(EnumIter, Debug, PartialEq, Display, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Instruction` [INFO] [stdout] 20 | pub enum Instruction { [INFO] [stdout] | ----------- `Instruction` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/instruction.rs:19:62 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(EnumIter, Debug, PartialEq, Display, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Instruction` [INFO] [stdout] 20 | pub enum Instruction { [INFO] [stdout] | ----------- `Instruction` 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: 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/direction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | FromPrimitive, [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] ... [INFO] [stdout] 17 | pub enum Direction { [INFO] [stdout] | --------- `Direction` 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: `#[warn(non_local_definitions)]` on by default [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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/direction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ToPrimitive, [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Direction` [INFO] [stdout] ... [INFO] [stdout] 17 | pub enum Direction { [INFO] [stdout] | --------- `Direction` 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: 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/instruction.rs:19:47 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(EnumIter, Debug, PartialEq, Display, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Instruction` [INFO] [stdout] 20 | pub enum Instruction { [INFO] [stdout] | ----------- `Instruction` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/instruction.rs:19:62 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(EnumIter, Debug, PartialEq, Display, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Instruction` [INFO] [stdout] 20 | pub enum Instruction { [INFO] [stdout] | ----------- `Instruction` 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: this warning originates in the derive macro `ToPrimitive` (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 1m 11s [INFO] running `Command { std: "docker" "inspect" "e9598bea1516cf801cf59db3ad235fb237f674c9ea0e98acb1d79e41da7ab206", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9598bea1516cf801cf59db3ad235fb237f674c9ea0e98acb1d79e41da7ab206", kill_on_drop: false }` [INFO] [stdout] e9598bea1516cf801cf59db3ad235fb237f674c9ea0e98acb1d79e41da7ab206