[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] checking rugyoga/chess-rust against try#f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 for pr-139419 [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 f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 281187bf8c49d8a56d4feb485abdf95fc22aba9801f7c18020efd4926b6c5677 [INFO] running `Command { std: "docker" "start" "-a" "281187bf8c49d8a56d4feb485abdf95fc22aba9801f7c18020efd4926b6c5677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "281187bf8c49d8a56d4feb485abdf95fc22aba9801f7c18020efd4926b6c5677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "281187bf8c49d8a56d4feb485abdf95fc22aba9801f7c18020efd4926b6c5677", kill_on_drop: false }` [INFO] [stdout] 281187bf8c49d8a56d4feb485abdf95fc22aba9801f7c18020efd4926b6c5677 [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=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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 689b1409a241736fd3066fb9f6dfe601999325cf0a986ddbceac9a4eac49f0c0 [INFO] running `Command { std: "docker" "start" "-a" "689b1409a241736fd3066fb9f6dfe601999325cf0a986ddbceac9a4eac49f0c0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [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 quote v1.0.35 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking 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] [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 4.29s [INFO] running `Command { std: "docker" "inspect" "689b1409a241736fd3066fb9f6dfe601999325cf0a986ddbceac9a4eac49f0c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "689b1409a241736fd3066fb9f6dfe601999325cf0a986ddbceac9a4eac49f0c0", kill_on_drop: false }` [INFO] [stdout] 689b1409a241736fd3066fb9f6dfe601999325cf0a986ddbceac9a4eac49f0c0