[INFO] cloning repository https://github.com/rugyoga/chess-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rugyoga/chess-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frugyoga%2Fchess-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frugyoga%2Fchess-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54efb9010aef2bd1b20a6c5480f08be0ffa4b34b [INFO] testing rugyoga/chess-rust against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frugyoga%2Fchess-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rugyoga/chess-rust on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rugyoga/chess-rust [INFO] finished tweaking git repo https://github.com/rugyoga/chess-rust [INFO] tweaked toml for git repo https://github.com/rugyoga/chess-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rugyoga/chess-rust 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" "+beta-2025-04-13" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a654b24582416298de13f7ae23ee2d6ce4ddecc1f7fc19d04bbf4235e225fff9 [INFO] running `Command { std: "docker" "start" "-a" "a654b24582416298de13f7ae23ee2d6ce4ddecc1f7fc19d04bbf4235e225fff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a654b24582416298de13f7ae23ee2d6ce4ddecc1f7fc19d04bbf4235e225fff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a654b24582416298de13f7ae23ee2d6ce4ddecc1f7fc19d04bbf4235e225fff9", kill_on_drop: false }` [INFO] [stdout] a654b24582416298de13f7ae23ee2d6ce4ddecc1f7fc19d04bbf4235e225fff9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b519ba16c0dcc4a8588094abb14f8e07a025edd9744805290dc77216353a5a3f [INFO] running `Command { std: "docker" "start" "-a" "b519ba16c0dcc4a8588094abb14f8e07a025edd9744805290dc77216353a5a3f", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.44 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Square` is more private than the item `square` [INFO] [stdout] --> src/pieces.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn square(file: File, rank: Rank) -> Square { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `square` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `file` [INFO] [stdout] --> src/pieces.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn file(square: Square) -> File { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `file` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `rank` [INFO] [stdout] --> src/pieces.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn rank(square: Square) -> Rank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `rank` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [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/pieces.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Clone,Copy,Debug,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_Piece` [INFO] [stdout] 16 | enum Piece { [INFO] [stdout] | ----- `Piece` 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/pieces.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Clone,Copy,Debug,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_Square` [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ------ `Square` 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 5.71s [INFO] running `Command { std: "docker" "inspect" "b519ba16c0dcc4a8588094abb14f8e07a025edd9744805290dc77216353a5a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b519ba16c0dcc4a8588094abb14f8e07a025edd9744805290dc77216353a5a3f", kill_on_drop: false }` [INFO] [stdout] b519ba16c0dcc4a8588094abb14f8e07a025edd9744805290dc77216353a5a3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 398831472bb6db85a98ba1bdf1046eeb8a15d5cd0035f7e0b9f68be4b6e2e6c0 [INFO] running `Command { std: "docker" "start" "-a" "398831472bb6db85a98ba1bdf1046eeb8a15d5cd0035f7e0b9f68be4b6e2e6c0", kill_on_drop: false }` [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Square` is more private than the item `square` [INFO] [stdout] --> src/pieces.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn square(file: File, rank: Rank) -> Square { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `square` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `file` [INFO] [stdout] --> src/pieces.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn file(square: Square) -> File { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `file` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `rank` [INFO] [stdout] --> src/pieces.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn rank(square: Square) -> Rank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `rank` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/pieces.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Square { [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/pieces.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Clone,Copy,Debug,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_Piece` [INFO] [stdout] 16 | enum Piece { [INFO] [stdout] | ----- `Piece` 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/pieces.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Clone,Copy,Debug,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_Square` [INFO] [stdout] 23 | enum Square { [INFO] [stdout] | ------ `Square` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "398831472bb6db85a98ba1bdf1046eeb8a15d5cd0035f7e0b9f68be4b6e2e6c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "398831472bb6db85a98ba1bdf1046eeb8a15d5cd0035f7e0b9f68be4b6e2e6c0", kill_on_drop: false }` [INFO] [stdout] 398831472bb6db85a98ba1bdf1046eeb8a15d5cd0035f7e0b9f68be4b6e2e6c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d8342f9d3dbe9b518817858a66023a9393120978edf18e599b1e9ab568328cc2 [INFO] running `Command { std: "docker" "start" "-a" "d8342f9d3dbe9b518817858a66023a9393120978edf18e599b1e9ab568328cc2", kill_on_drop: false }` [INFO] [stderr] warning: type `Square` is more private than the item `square` [INFO] [stderr] --> src/pieces.rs:36:1 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn square(file: File, rank: Rank) -> Square { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `square` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/pieces.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | enum Square { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Square` is more private than the item `file` [INFO] [stderr] --> src/pieces.rs:43:1 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn file(square: Square) -> File { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `file` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/pieces.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | enum Square { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `Square` is more private than the item `rank` [INFO] [stderr] --> src/pieces.rs:47:1 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn rank(square: Square) -> Rank { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `rank` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/pieces.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | enum Square { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pieces.rs:15:27 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Clone,Copy,Debug,FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Piece` [INFO] [stderr] 16 | enum Piece { [INFO] [stderr] | ----- `Piece` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pieces.rs:22:27 [INFO] [stderr] | [INFO] [stderr] 22 | #[derive(Clone,Copy,Debug,FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Square` [INFO] [stderr] 23 | enum Square { [INFO] [stderr] | ------ `Square` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `chess` (bin "chess" test) generated 5 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chess-4ffc0a15fa05eaf5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d8342f9d3dbe9b518817858a66023a9393120978edf18e599b1e9ab568328cc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8342f9d3dbe9b518817858a66023a9393120978edf18e599b1e9ab568328cc2", kill_on_drop: false }` [INFO] [stdout] d8342f9d3dbe9b518817858a66023a9393120978edf18e599b1e9ab568328cc2