[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 try#411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51 for pr-138844 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffaassen%2Fapilar" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/faassen/apilar on toolchain 411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc2/source/Cargo.toml [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" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59434b84fed9289e230c2e50b57c65a6e465bc839d67896ff4f4949c698067ec [INFO] running `Command { std: "docker" "start" "-a" "59434b84fed9289e230c2e50b57c65a6e465bc839d67896ff4f4949c698067ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59434b84fed9289e230c2e50b57c65a6e465bc839d67896ff4f4949c698067ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59434b84fed9289e230c2e50b57c65a6e465bc839d67896ff4f4949c698067ec", kill_on_drop: false }` [INFO] [stdout] 59434b84fed9289e230c2e50b57c65a6e465bc839d67896ff4f4949c698067ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac32302c72999bb4250e73660cd9b430e81be09356f7c3e9a00f6247761c653f [INFO] running `Command { std: "docker" "start" "-a" "ac32302c72999bb4250e73660cd9b430e81be09356f7c3e9a00f6247761c653f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling libc v0.2.126 [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 version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking base64ct v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.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 rand v0.8.5 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling rustversion v1.0.8 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking password-hash v0.3.2 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking os_str_bytes v6.2.0 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking headers v0.3.7 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking moveslice v2.0.1 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking time v0.3.12 [INFO] [stderr] Checking pbkdf2 v0.10.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking iri-string v0.4.1 [INFO] [stderr] Checking bzip2 v0.4.3 [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 futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling pin-project-internal v1.0.11 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling strum_macros v0.24.2 [INFO] [stderr] Checking pin-project v1.0.11 [INFO] [stderr] Compiling num-derive v0.3.3 [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 async-compression v0.3.14 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [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 h2 v0.3.13 [INFO] [stderr] Checking tower-http v0.3.4 [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)]` 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 20s [INFO] running `Command { std: "docker" "inspect" "ac32302c72999bb4250e73660cd9b430e81be09356f7c3e9a00f6247761c653f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac32302c72999bb4250e73660cd9b430e81be09356f7c3e9a00f6247761c653f", kill_on_drop: false }` [INFO] [stdout] ac32302c72999bb4250e73660cd9b430e81be09356f7c3e9a00f6247761c653f