[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#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffaassen%2Fapilar" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-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-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/faassen/apilar on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-layer v0.3.1 [INFO] [stderr] Downloaded axum-core v0.2.7 [INFO] [stderr] Downloaded zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Downloaded serde_with_macros v2.0.0 [INFO] [stderr] Downloaded zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Downloaded time v0.3.12 [INFO] [stderr] Downloaded headers v0.3.7 [INFO] [stderr] Downloaded serde_cbor v0.10.2 [INFO] [stderr] Downloaded sha-1 v0.10.0 [INFO] [stderr] Downloaded anyhow v1.0.59 [INFO] [stderr] Downloaded async-trait v0.1.56 [INFO] [stderr] Downloaded serde_with v2.0.0 [INFO] [stderr] Downloaded tower-http v0.3.4 [INFO] [stderr] Downloaded axum v0.5.14 [INFO] [stderr] Downloaded os_str_bytes v6.2.0 [INFO] [stderr] Downloaded iri-string v0.4.1 [INFO] [stderr] Downloaded chrono v0.4.20 [INFO] [stderr] Downloaded serde_json v1.0.82 [INFO] [stderr] Downloaded pin-project v1.0.11 [INFO] [stderr] Downloaded clap v3.2.14 [INFO] [stderr] Downloaded brotli-decompressor v2.3.2 [INFO] [stderr] Downloaded bytes v1.2.0 [INFO] [stderr] Downloaded uuid v1.1.2 [INFO] [stderr] Downloaded tungstenite v0.17.3 [INFO] [stderr] Downloaded password-hash v0.3.2 [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded clap_derive v3.2.7 [INFO] [stderr] Downloaded moveslice v2.0.1 [INFO] [stderr] Downloaded rustversion v1.0.8 [INFO] [stderr] Downloaded pin-project-internal v1.0.11 [INFO] [stderr] Downloaded tracing-subscriber v0.3.15 [INFO] [stderr] Downloaded base64ct v1.0.1 [INFO] [stderr] Downloaded alloc-no-stdlib v2.0.3 [INFO] [stderr] Downloaded alloc-stdlib v0.2.1 [INFO] [stderr] Downloaded async-compression v0.3.14 [INFO] [stderr] Downloaded sha1 v0.10.1 [INFO] [stderr] Downloaded serde_derive v1.0.140 [INFO] [stderr] Downloaded zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Downloaded serde-big-array v0.4.1 [INFO] [stderr] Downloaded jobserver v0.1.24 [INFO] [stderr] Downloaded zip v0.6.2 [INFO] [stderr] Downloaded pbkdf2 v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a7b38e6249c4fae2199c27e94fc7fbdbfd58efcbba07993123d1daf71c5ee0c [INFO] running `Command { std: "docker" "start" "-a" "5a7b38e6249c4fae2199c27e94fc7fbdbfd58efcbba07993123d1daf71c5ee0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a7b38e6249c4fae2199c27e94fc7fbdbfd58efcbba07993123d1daf71c5ee0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a7b38e6249c4fae2199c27e94fc7fbdbfd58efcbba07993123d1daf71c5ee0c", kill_on_drop: false }` [INFO] [stdout] 5a7b38e6249c4fae2199c27e94fc7fbdbfd58efcbba07993123d1daf71c5ee0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bd6b53fda83878a7773ab33d1c52182cd77f5685606ea2375887ac0b6c8c477 [INFO] running `Command { std: "docker" "start" "-a" "1bd6b53fda83878a7773ab33d1c52182cd77f5685606ea2375887ac0b6c8c477", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Compiling rustversion v1.0.8 [INFO] [stderr] Checking base64ct v1.0.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking password-hash v0.3.2 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Checking os_str_bytes v6.2.0 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking headers v0.3.7 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking num-complex v0.4.2 [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 constant_time_eq v0.1.5 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking moveslice v2.0.1 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking pbkdf2 v0.10.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking iri-string v0.4.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking time v0.3.12 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking tracing-subscriber v0.3.15 [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] Checking futures-util v0.3.21 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling strum_macros v0.24.2 [INFO] [stderr] Checking pin-project v1.0.11 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Compiling darling_macro v0.14.1 [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 09s [INFO] running `Command { std: "docker" "inspect" "1bd6b53fda83878a7773ab33d1c52182cd77f5685606ea2375887ac0b6c8c477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bd6b53fda83878a7773ab33d1c52182cd77f5685606ea2375887ac0b6c8c477", kill_on_drop: false }` [INFO] [stdout] 1bd6b53fda83878a7773ab33d1c52182cd77f5685606ea2375887ac0b6c8c477