[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] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 35689cb2fc3be1519ba1b57010483362ca8b9f4d [INFO] building default-username-852/schack against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-username-852%2Fschack" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/default-username-852/schack on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-6-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bead1ca6d3796fbc566db2cd2a25078aa2cac2dccbd9619e5a2706f7d26d4e00 [INFO] running `Command { std: "docker" "start" "-a" "bead1ca6d3796fbc566db2cd2a25078aa2cac2dccbd9619e5a2706f7d26d4e00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bead1ca6d3796fbc566db2cd2a25078aa2cac2dccbd9619e5a2706f7d26d4e00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bead1ca6d3796fbc566db2cd2a25078aa2cac2dccbd9619e5a2706f7d26d4e00", kill_on_drop: false }` [INFO] [stdout] bead1ca6d3796fbc566db2cd2a25078aa2cac2dccbd9619e5a2706f7d26d4e00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15c4bd5d1b39c3613e4bc9fd9915ff877941f951aaa5c084436eff9ec6e36fdb [INFO] running `Command { std: "docker" "start" "-a" "15c4bd5d1b39c3613e4bc9fd9915ff877941f951aaa5c084436eff9ec6e36fdb", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Piece` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:874:64 [INFO] [stdout] | [INFO] [stdout] 874 | ... .map(|piece| *piece.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "15c4bd5d1b39c3613e4bc9fd9915ff877941f951aaa5c084436eff9ec6e36fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15c4bd5d1b39c3613e4bc9fd9915ff877941f951aaa5c084436eff9ec6e36fdb", kill_on_drop: false }` [INFO] [stdout] 15c4bd5d1b39c3613e4bc9fd9915ff877941f951aaa5c084436eff9ec6e36fdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b3b4d5554011dc29c4b574049c85beb02ed3a9f1aa9ec00cd13fb6cd3b778b6 [INFO] running `Command { std: "docker" "start" "-a" "7b3b4d5554011dc29c4b574049c85beb02ed3a9f1aa9ec00cd13fb6cd3b778b6", kill_on_drop: false }` [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: 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: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Piece` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:874:64 [INFO] [stdout] | [INFO] [stdout] 874 | ... .map(|piece| *piece.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling schackmotor v0.1.0 (/opt/rustwide/workdir) [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: 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: 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: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Piece` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:874:64 [INFO] [stdout] | [INFO] [stdout] 874 | ... .map(|piece| *piece.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "7b3b4d5554011dc29c4b574049c85beb02ed3a9f1aa9ec00cd13fb6cd3b778b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b3b4d5554011dc29c4b574049c85beb02ed3a9f1aa9ec00cd13fb6cd3b778b6", kill_on_drop: false }` [INFO] [stdout] 7b3b4d5554011dc29c4b574049c85beb02ed3a9f1aa9ec00cd13fb6cd3b778b6