[INFO] cloning repository https://github.com/mj-hd/ps-memory-reader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mj-hd/ps-memory-reader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmj-hd%2Fps-memory-reader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmj-hd%2Fps-memory-reader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86afadcfcaf50a4029c7d453603578fcd9f0bebf [INFO] checking mj-hd/ps-memory-reader against master#9748d87dc70a9a6725c5dbd76ce29d04752b4f90 for pr-144156 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmj-hd%2Fps-memory-reader" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mj-hd/ps-memory-reader [INFO] finished tweaking git repo https://github.com/mj-hd/ps-memory-reader [INFO] tweaked toml for git repo https://github.com/mj-hd/ps-memory-reader written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mj-hd/ps-memory-reader on toolchain 9748d87dc70a9a6725c5dbd76ce29d04752b4f90 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9748d87dc70a9a6725c5dbd76ce29d04752b4f90" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mj-hd/ps-memory-reader 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" "+9748d87dc70a9a6725c5dbd76ce29d04752b4f90" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rppal v0.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9748d87dc70a9a6725c5dbd76ce29d04752b4f90" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 418f760d2092236805790e7ef8b2ef8c8f0abca7613021ab9f34c735afbecf5c [INFO] running `Command { std: "docker" "start" "-a" "418f760d2092236805790e7ef8b2ef8c8f0abca7613021ab9f34c735afbecf5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "418f760d2092236805790e7ef8b2ef8c8f0abca7613021ab9f34c735afbecf5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "418f760d2092236805790e7ef8b2ef8c8f0abca7613021ab9f34c735afbecf5c", kill_on_drop: false }` [INFO] [stdout] 418f760d2092236805790e7ef8b2ef8c8f0abca7613021ab9f34c735afbecf5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9748d87dc70a9a6725c5dbd76ce29d04752b4f90" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b526d2b7aae647529cb6be579acf9d06d9954b4c2ac39850a436a66b99d531ea [INFO] running `Command { std: "docker" "start" "-a" "b526d2b7aae647529cb6be579acf9d06d9954b4c2ac39850a436a66b99d531ea", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling syn v1.0.92 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking rppal v0.13.1 [INFO] [stderr] Checking console v0.15.0 [INFO] [stderr] Checking clap v3.1.14 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking indicatif v0.16.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking ps-memory-reader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `process::Output` and `thread::sleep` [INFO] [stdout] --> src/io.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process::Output, thread::sleep, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/io.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{bail, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputPin` [INFO] [stdout] --> src/io.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | gpio::{Gpio, InputPin, OutputPin}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MemCard2_Ack2` should have an upper camel case name [INFO] [stdout] --> src/io.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 232 | MemCard2_Ack2 = 0x5D, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemCard2Ack2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/memory_card.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `process::Output` and `thread::sleep` [INFO] [stdout] --> src/io.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process::Output, thread::sleep, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/io.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{bail, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputPin` [INFO] [stdout] --> src/io.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | gpio::{Gpio, InputPin, OutputPin}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MemCard2_Ack2` should have an upper camel case name [INFO] [stdout] --> src/io.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 232 | MemCard2_Ack2 = 0x5D, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MemCard2Ack2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/memory_card.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gpio` is never read [INFO] [stdout] --> src/io.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Io { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 17 | gpio: Gpio, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Write` is never constructed [INFO] [stdout] --> src/io.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 221 | enum Req { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 224 | Write = 0x57, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Req` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/memory_card.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/memory_card.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Allocation` is never used [INFO] [stdout] --> src/memory_card.rs:83:6 [INFO] [stdout] | [INFO] [stdout] 83 | enum Allocation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Title` is never constructed [INFO] [stdout] --> src/memory_card.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct Title { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IconFlag` is never used [INFO] [stdout] --> src/memory_card.rs:103:6 [INFO] [stdout] | [INFO] [stdout] 103 | enum IconFlag { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShiftJisCharSet` is never constructed [INFO] [stdout] --> src/memory_card.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | struct ShiftJisCharSet([u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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/io.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Debug, Clone, Copy, 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_Res` [INFO] [stdout] 228 | enum Res { [INFO] [stdout] | --- `Res` 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/memory_card.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(Debug, Clone, Copy, 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_Allocation` [INFO] [stdout] 83 | enum Allocation { [INFO] [stdout] | ---------- `Allocation` 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/memory_card.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(Debug, Clone, Copy, 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_IconFlag` [INFO] [stdout] 103 | enum IconFlag { [INFO] [stdout] | -------- `IconFlag` 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: field `gpio` is never read [INFO] [stdout] --> src/io.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Io { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 17 | gpio: Gpio, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Write` is never constructed [INFO] [stdout] --> src/io.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 221 | enum Req { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 224 | Write = 0x57, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Req` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/memory_card.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/memory_card.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Allocation` is never used [INFO] [stdout] --> src/memory_card.rs:83:6 [INFO] [stdout] | [INFO] [stdout] 83 | enum Allocation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Title` is never constructed [INFO] [stdout] --> src/memory_card.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct Title { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IconFlag` is never used [INFO] [stdout] --> src/memory_card.rs:103:6 [INFO] [stdout] | [INFO] [stdout] 103 | enum IconFlag { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShiftJisCharSet` is never constructed [INFO] [stdout] --> src/memory_card.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | struct ShiftJisCharSet([u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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/io.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Debug, Clone, Copy, 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_Res` [INFO] [stdout] 228 | enum Res { [INFO] [stdout] | --- `Res` 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/memory_card.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(Debug, Clone, Copy, 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_Allocation` [INFO] [stdout] 83 | enum Allocation { [INFO] [stdout] | ---------- `Allocation` 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/memory_card.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(Debug, Clone, Copy, 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_IconFlag` [INFO] [stdout] 103 | enum IconFlag { [INFO] [stdout] | -------- `IconFlag` 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 15.39s [INFO] running `Command { std: "docker" "inspect" "b526d2b7aae647529cb6be579acf9d06d9954b4c2ac39850a436a66b99d531ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b526d2b7aae647529cb6be579acf9d06d9954b4c2ac39850a436a66b99d531ea", kill_on_drop: false }` [INFO] [stdout] b526d2b7aae647529cb6be579acf9d06d9954b4c2ac39850a436a66b99d531ea