[INFO] cloning repository https://github.com/jacobgardner/chessAI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jacobgardner/chessAI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacobgardner%2FchessAI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacobgardner%2FchessAI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 517c56174e9ee32f43e0147b06b9fb6309dfc564 [INFO] checking jacobgardner/chessAI/517c56174e9ee32f43e0147b06b9fb6309dfc564 against master#ab1d2444533d829e2d5cff6634cd3c70de6d7103 for pr-147841 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacobgardner%2FchessAI" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jacobgardner/chessAI [INFO] finished tweaking git repo https://github.com/jacobgardner/chessAI [INFO] tweaked toml for git repo https://github.com/jacobgardner/chessAI written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jacobgardner/chessAI on toolchain ab1d2444533d829e2d5cff6634cd3c70de6d7103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab1d2444533d829e2d5cff6634cd3c70de6d7103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jacobgardner/chessAI 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" "+ab1d2444533d829e2d5cff6634cd3c70de6d7103" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file `/workspace/builds/worker-0-tc1/source/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `lib` [INFO] [stderr] * `bin` target `chess_ai` [INFO] [stderr] Updating git repository `https://github.com/jacobgardner/snapshot-rs.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v0.6.4 [INFO] [stderr] Downloaded serde-hjson v0.8.2 [INFO] [stderr] Downloaded thread-scoped v1.0.2 [INFO] [stderr] Downloaded cast v0.2.2 [INFO] [stderr] Downloaded criterion-plot v0.2.5 [INFO] [stderr] Downloaded handlebars v0.32.4 [INFO] [stderr] Downloaded proc-macro2 v0.4.9 [INFO] [stderr] Downloaded syn v0.10.8 [INFO] [stderr] Downloaded itertools v0.7.11 [INFO] [stderr] Downloaded num-bigint v0.2.0 [INFO] [stderr] Downloaded difference v1.0.0 [INFO] [stderr] Downloaded criterion v0.2.5 [INFO] [stderr] Downloaded syn v0.14.5 [INFO] [stderr] Downloaded criterion-stats v0.2.5 [INFO] [stderr] Downloaded itertools-num v0.1.3 [INFO] [stderr] Downloaded num-complex v0.2.0 [INFO] [stderr] Downloaded num-derive v0.2.2 [INFO] [stderr] Downloaded csv v1.0.2 [INFO] [stderr] Downloaded serde_codegen v0.8.23 [INFO] [stderr] Downloaded pretty_assertions v0.2.1 [INFO] [stderr] Downloaded serde_derive v0.8.23 [INFO] [stderr] Downloaded uncover v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab1d2444533d829e2d5cff6634cd3c70de6d7103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84f2e77b17fb93ada44ca548d3dc3be4f334e5258a0b3660b0c198b5ba38f34e [INFO] running `Command { std: "docker" "start" "-a" "84f2e77b17fb93ada44ca548d3dc3be4f334e5258a0b3660b0c198b5ba38f34e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84f2e77b17fb93ada44ca548d3dc3be4f334e5258a0b3660b0c198b5ba38f34e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84f2e77b17fb93ada44ca548d3dc3be4f334e5258a0b3660b0c198b5ba38f34e", kill_on_drop: false }` [INFO] [stdout] 84f2e77b17fb93ada44ca548d3dc3be4f334e5258a0b3660b0c198b5ba38f34e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab1d2444533d829e2d5cff6634cd3c70de6d7103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26cf0b707e6c67e2c903fe5d8f6f259b76f5a6714ecaa2cbde968fe42bd45bf8 [INFO] running `Command { std: "docker" "start" "-a" "26cf0b707e6c67e2c903fe5d8f6f259b76f5a6714ecaa2cbde968fe42bd45bf8", kill_on_drop: false }` [INFO] [stderr] warning: file `/opt/rustwide/workdir/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `lib` [INFO] [stderr] * `bin` target `chess_ai` [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking cfg-if v0.1.4 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling failure_derive v0.1.2 [INFO] [stderr] Compiling num-bigint v0.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.9 [INFO] [stderr] Checking serde_test v0.8.23 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Checking rustc-demangle v0.1.9 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling syn v0.10.8 [INFO] [stderr] Compiling num-complex v0.2.0 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking difference v1.0.0 [INFO] [stderr] Checking linked-hash-map v0.3.0 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking memchr v2.0.2 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Compiling quote v0.6.4 [INFO] [stderr] Checking pretty_assertions v0.2.1 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking time v0.1.41 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Compiling syn v0.14.5 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking cast v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling pest v1.0.6 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking term v0.5.1 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking csv-core v0.1.4 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking uncover v0.1.1 [INFO] [stderr] Checking same-file v1.0.4 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking thread-scoped v1.0.2 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking walkdir v2.2.7 [INFO] [stderr] Compiling serde_codegen_internals v0.11.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling pest_derive v1.0.8 [INFO] [stderr] Checking itertools-num v0.1.3 [INFO] [stderr] Compiling serde_codegen v0.8.23 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking criterion-stats v0.2.5 [INFO] [stderr] Checking criterion-plot v0.2.5 [INFO] [stderr] Checking backtrace v0.3.9 [INFO] [stderr] Compiling serde_derive v1.0.82 [INFO] [stderr] Checking simplelog v0.5.3 [INFO] [stderr] Compiling serde_derive v0.8.23 [INFO] [stderr] Checking serde-hjson v0.8.2 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Checking csv v1.0.2 [INFO] [stderr] Checking handlebars v0.32.4 [INFO] [stderr] Compiling synstructure v0.9.0 [INFO] [stderr] Compiling snapshot-proc-macro v0.1.0 (https://github.com/jacobgardner/snapshot-rs.git?branch=hjson#d3a9ccde) [INFO] [stderr] Compiling num-derive v0.2.2 [INFO] [stderr] Checking snapshot v0.1.0 (https://github.com/jacobgardner/snapshot-rs.git?branch=hjson#d3a9ccde) [INFO] [stderr] Checking failure v0.1.2 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.2.5 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (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/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/chess/move_generator/sanity_checks.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | ... format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] 31 + "Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask [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/chess/piece_type.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PieceType` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_PieceType` [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/chess/player.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Player` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_Player` [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/chess/rank_file.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(PartialEq, Clone, Copy, Debug, FromPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `RankFile` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_RankFile` [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/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (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/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/chess/move_generator/sanity_checks.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | ... format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] 31 + "Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask [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/chess/piece_type.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PieceType` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_PieceType` [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/chess/player.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Player` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_Player` [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/chess/rank_file.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(PartialEq, Clone, Copy, Debug, FromPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `RankFile` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_RankFile` [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/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (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/chess/errors.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, Fail, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `BoardError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_BoardError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/chess/move_generator/sanity_checks.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | ... format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 31 - format!("Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask) [INFO] [stdout] 31 + "Capture Invariant Invalidated: Capture move made on space not-occupied by opponent:\n{}\n{:?}", board, capture_mask [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/chess/piece_type.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PieceType` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_PieceType` [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/chess/player.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, PartialEq, FromPrimitive, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Player` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_Player` [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/chess/rank_file.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(PartialEq, Clone, Copy, Debug, FromPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `RankFile` is not local [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROM_PRIMITIVE_FOR_RankFile` [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 23.14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.2.5, syn v0.10.8, syn v0.14.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "26cf0b707e6c67e2c903fe5d8f6f259b76f5a6714ecaa2cbde968fe42bd45bf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26cf0b707e6c67e2c903fe5d8f6f259b76f5a6714ecaa2cbde968fe42bd45bf8", kill_on_drop: false }` [INFO] [stdout] 26cf0b707e6c67e2c903fe5d8f6f259b76f5a6714ecaa2cbde968fe42bd45bf8