[INFO] cloning repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/default-username-852/schack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-username-852%2Fschack", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-username-852%2Fschack'... [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/default-username-852/schack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 35689cb2fc3be1519ba1b57010483362ca8b9f4d [INFO] checking default-username-852/schack against master#ea6ab1bd845790fb31ba790d2c7aec898f89fe62 for pr-99880 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-username-852%2Fschack" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/default-username-852/schack on toolchain ea6ab1bd845790fb31ba790d2c7aec898f89fe62 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/default-username-852/schack [INFO] finished tweaking git repo https://github.com/default-username-852/schack [INFO] tweaked toml for git repo https://github.com/default-username-852/schack written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/default-username-852/schack already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cd119b6982936fdb0d9251a0e8001d4750abe693a69dfae86dc2b36359a9a64 [INFO] running `Command { std: "docker" "start" "-a" "9cd119b6982936fdb0d9251a0e8001d4750abe693a69dfae86dc2b36359a9a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cd119b6982936fdb0d9251a0e8001d4750abe693a69dfae86dc2b36359a9a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cd119b6982936fdb0d9251a0e8001d4750abe693a69dfae86dc2b36359a9a64", kill_on_drop: false }` [INFO] [stdout] 9cd119b6982936fdb0d9251a0e8001d4750abe693a69dfae86dc2b36359a9a64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c9c736d657ea07765c41b168226868f8fced2c26b6de3940626c7c4a826b5e8 [INFO] running `Command { std: "docker" "start" "-a" "4c9c736d657ea07765c41b168226868f8fced2c26b6de3940626c7c4a826b5e8", kill_on_drop: false }` [INFO] [stderr] Checking schackmotor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/lib.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | (1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 455 - (1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8) [INFO] [stdout] 455 + 1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/lib.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | (1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 455 - (1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8) [INFO] [stdout] 455 + 1 <= self.y && self.y <= 8 && 1 <= self.x && self.x <= 8 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/lib.rs:1097:18 [INFO] [stdout] | [INFO] [stdout] 1097 | Some(piece) => { piece_color = self.get_piece_at(piece_position).unwrap().color.clone(); } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/lib.rs:1097:18 [INFO] [stdout] | [INFO] [stdout] 1097 | Some(piece) => { piece_color = self.get_piece_at(piece_position).unwrap().color.clone(); } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `moved_piece_color` is never read [INFO] [stdout] --> src/lib.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 479 | struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 480 | moved_piece_type: PieceType, [INFO] [stdout] 481 | moved_piece_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:906:33 [INFO] [stdout] | [INFO] [stdout] 906 | / ... &possible_moves.push(Move::new( [INFO] [stdout] 907 | | ... self.piece_type.clone(), [INFO] [stdout] 908 | | ... self.color.clone(), [INFO] [stdout] 909 | | ... self.position.clone(), [INFO] [stdout] ... | [INFO] [stdout] 912 | | ... move_type [INFO] [stdout] 913 | | ... )); [INFO] [stdout] | |________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 906 | let _ = &possible_moves.push(Move::new( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:917:25 [INFO] [stdout] | [INFO] [stdout] 917 | / &possible_moves.push(Move::new( [INFO] [stdout] 918 | | self.piece_type.clone(), [INFO] [stdout] 919 | | self.color.clone(), [INFO] [stdout] 920 | | self.position.clone(), [INFO] [stdout] ... | [INFO] [stdout] 923 | | move_type [INFO] [stdout] 924 | | )); [INFO] [stdout] | |__________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 917 | let _ = &possible_moves.push(Move::new( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:983:17 [INFO] [stdout] | [INFO] [stdout] 983 | &out.push((&piece, possible_moves)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 983 | let _ = &out.push((&piece, possible_moves)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:1059:13 [INFO] [stdout] | [INFO] [stdout] 1059 | / &standard_layout.push(Piece { [INFO] [stdout] 1060 | | position: Position { [INFO] [stdout] 1061 | | x: piece_prototype.2, [INFO] [stdout] 1062 | | y: piece_prototype.3, [INFO] [stdout] ... | [INFO] [stdout] 1065 | | piece_type: piece_type.clone() [INFO] [stdout] 1066 | | }); [INFO] [stdout] | |______________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1059 | let _ = &standard_layout.push(Piece { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `moved_piece_color` is never read [INFO] [stdout] --> src/lib.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 479 | struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 480 | moved_piece_type: PieceType, [INFO] [stdout] 481 | moved_piece_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:906:33 [INFO] [stdout] | [INFO] [stdout] 906 | / ... &possible_moves.push(Move::new( [INFO] [stdout] 907 | | ... self.piece_type.clone(), [INFO] [stdout] 908 | | ... self.color.clone(), [INFO] [stdout] 909 | | ... self.position.clone(), [INFO] [stdout] ... | [INFO] [stdout] 912 | | ... move_type [INFO] [stdout] 913 | | ... )); [INFO] [stdout] | |________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 906 | let _ = &possible_moves.push(Move::new( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:917:25 [INFO] [stdout] | [INFO] [stdout] 917 | / &possible_moves.push(Move::new( [INFO] [stdout] 918 | | self.piece_type.clone(), [INFO] [stdout] 919 | | self.color.clone(), [INFO] [stdout] 920 | | self.position.clone(), [INFO] [stdout] ... | [INFO] [stdout] 923 | | move_type [INFO] [stdout] 924 | | )); [INFO] [stdout] | |__________________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 917 | let _ = &possible_moves.push(Move::new( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:983:17 [INFO] [stdout] | [INFO] [stdout] 983 | &out.push((&piece, possible_moves)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 983 | let _ = &out.push((&piece, possible_moves)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:1059:13 [INFO] [stdout] | [INFO] [stdout] 1059 | / &standard_layout.push(Piece { [INFO] [stdout] 1060 | | position: Position { [INFO] [stdout] 1061 | | x: piece_prototype.2, [INFO] [stdout] 1062 | | y: piece_prototype.3, [INFO] [stdout] ... | [INFO] [stdout] 1065 | | piece_type: piece_type.clone() [INFO] [stdout] 1066 | | }); [INFO] [stdout] | |______________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1059 | let _ = &standard_layout.push(Piece { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "4c9c736d657ea07765c41b168226868f8fced2c26b6de3940626c7c4a826b5e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9c736d657ea07765c41b168226868f8fced2c26b6de3940626c7c4a826b5e8", kill_on_drop: false }` [INFO] [stdout] 4c9c736d657ea07765c41b168226868f8fced2c26b6de3940626c7c4a826b5e8