[INFO] cloning repository https://github.com/silvanx/rust_replica
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/silvanx/rust_replica" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsilvanx%2Frust_replica", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsilvanx%2Frust_replica'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f306dc2b3be9131a865d065c5cf4e474eae18033
[INFO] testing silvanx/rust_replica against master#f9988fefd3add01f414f52b414308e7872622fee for pr-155114
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsilvanx%2Frust_replica" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/silvanx/rust_replica
[INFO] finished tweaking git repo https://github.com/silvanx/rust_replica
[INFO] tweaked toml for git repo https://github.com/silvanx/rust_replica written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/silvanx/rust_replica on toolchain f9988fefd3add01f414f52b414308e7872622fee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/silvanx/rust_replica 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" "+f9988fefd3add01f414f52b414308e7872622fee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3da9f2820c40cbd330de0b093e8a4b21b56cb48cd9e22c555240b9fa317e83b8
[INFO] running `Command { std: "docker" "start" "-a" "3da9f2820c40cbd330de0b093e8a4b21b56cb48cd9e22c555240b9fa317e83b8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3da9f2820c40cbd330de0b093e8a4b21b56cb48cd9e22c555240b9fa317e83b8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3da9f2820c40cbd330de0b093e8a4b21b56cb48cd9e22c555240b9fa317e83b8", kill_on_drop: false }`
[INFO] [stdout] 3da9f2820c40cbd330de0b093e8a4b21b56cb48cd9e22c555240b9fa317e83b8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2ae34dbe4c099123bfec8d8f47c171a6b03f25b9d5e17386cb6cce557d189c63
[INFO] running `Command { std: "docker" "start" "-a" "2ae34dbe4c099123bfec8d8f47c171a6b03f25b9d5e17386cb6cce557d189c63", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling getrandom v0.2.11
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rust_replica v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/player.rs:45:37
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn collect_cards(&mut self, mut cards: Vec<DeckCard>) {
[INFO] [stdout]    |                                     ----^^^^^
[INFO] [stdout]    |                                     |
[INFO] [stdout]    |                                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:138:9
[INFO] [stdout]     |
[INFO] [stdout] 138 |     let mut game = new_game.unwrap();
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_base_card` is never used
[INFO] [stdout]    --> src/deck.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl DeckCard {
[INFO] [stdout]     | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn is_base_card(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `initial_size` and `stop_cards` are never read
[INFO] [stdout]    --> src/deck.rs:121:5
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct Deck {
[INFO] [stdout]     |            ---- fields in this struct
[INFO] [stdout] 120 |     cards: Vec<DeckCard>,
[INFO] [stdout] 121 |     initial_size: usize,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout] 122 |     stop_cards: u8,
[INFO] [stdout]     |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `stop_cards_left`, `draw`, and `replace` are never used
[INFO] [stdout]    --> src/deck.rs:126:12
[INFO] [stdout]     |
[INFO] [stdout] 125 | impl Deck {
[INFO] [stdout]     | --------- associated items in this implementation
[INFO] [stdout] 126 |     pub fn new() -> Deck {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 151 |     pub fn stop_cards_left(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 155 |     pub fn draw(&mut self, how_many: u8) -> Vec<DeckCard> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 175 |     pub fn replace(&mut self, card: DeckCard) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CARD_POINT_VALUE` is never used
[INFO] [stdout]  --> src/player.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | const CARD_POINT_VALUE: u8 = 1;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TOKEN_POINT_VALUE` is never used
[INFO] [stdout]  --> src/player.rs:4:7
[INFO] [stdout]   |
[INFO] [stdout] 4 | const TOKEN_POINT_VALUE: u8 = 3;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `hand`, `collected_cards`, `tokens_collected`, and `color` are never read
[INFO] [stdout]   --> src/player.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct Player {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout]  7 |     hand: Vec<DeckCard>,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]  8 |     collected_cards: Vec<DeckCard>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     tokens_collected: u8,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     pub color: CardColor,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `count_cards_in_hand`, `count_collected_cards`, `calculate_score`, `collect_cards`, and `draw_cards` are never used
[INFO] [stdout]   --> src/player.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Player {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn count_cards_in_hand(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn count_collected_cards(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn calculate_score(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn collect_cards(&mut self, mut cards: Vec<DeckCard>) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn draw_cards(&mut self, mut cards: Vec<DeckCard>) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `STOP_CARDS_IN_DECK` is never used
[INFO] [stdout]  --> src/game.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const STOP_CARDS_IN_DECK: u8 = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_CELLS_2_PLAYERS` is never used
[INFO] [stdout]   --> src/game.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_CELLS_2_PLAYERS: u8 = 6;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_CELLS_3_PLAYERS` is never used
[INFO] [stdout]   --> src/game.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const MAX_CELLS_3_PLAYERS: u8 = 7;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_CELLS_4_PLAYERS` is never used
[INFO] [stdout]   --> src/game.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const MAX_CELLS_4_PLAYERS: u8 = 8;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `top` and `bottom` are never read
[INFO] [stdout]   --> src/game.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct CardPair {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 17 |     pub top: DeckCard,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 18 |     pub bottom: DeckCard,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `players`, `stopped_cells`, `stop_cards_played`, `revealed_cards`, and `dna` are never read
[INFO] [stdout]   --> src/game.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub struct Game {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 22 |     pub num_players: u8,
[INFO] [stdout] 23 |     pub players: Vec<Player>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 24 |     stopped_cells: u8,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     stop_cards_played: u8,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 26 |     pub deck: Deck,
[INFO] [stdout] 27 |     pub revealed_cards: Vec<DeckCard>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     pub dna: Vec<CardPair>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_over` is never used
[INFO] [stdout]   --> src/game.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | impl Game {
[INFO] [stdout]    | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 71 |     pub fn is_over(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.89s
[INFO] running `Command { std: "docker" "inspect" "2ae34dbe4c099123bfec8d8f47c171a6b03f25b9d5e17386cb6cce557d189c63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2ae34dbe4c099123bfec8d8f47c171a6b03f25b9d5e17386cb6cce557d189c63", kill_on_drop: false }`
[INFO] [stdout] 2ae34dbe4c099123bfec8d8f47c171a6b03f25b9d5e17386cb6cce557d189c63
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d4fc88890124189fd3b8028e48ca576354fe019182815842b129c9f9c07c68b1
[INFO] running `Command { std: "docker" "start" "-a" "d4fc88890124189fd3b8028e48ca576354fe019182815842b129c9f9c07c68b1", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_replica v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/game.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `while let` pattern
[INFO] [stdout]    --> src/deck.rs:305:15
[INFO] [stdout]     |
[INFO] [stdout] 305 |         while let card = deck1.draw(1).get(0) {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the loop will never exit
[INFO] [stdout]     = help: consider instead using a `loop { ... }` with a `let` inside it
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/player.rs:45:37
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub fn collect_cards(&mut self, mut cards: Vec<DeckCard>) {
[INFO] [stdout]    |                                     ----^^^^^
[INFO] [stdout]    |                                     |
[INFO] [stdout]    |                                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:138:9
[INFO] [stdout]     |
[INFO] [stdout] 138 |     let mut game = new_game.unwrap();
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `initial_size` is never read
[INFO] [stdout]    --> src/deck.rs:121:5
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct Deck {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 120 |     cards: Vec<DeckCard>,
[INFO] [stdout] 121 |     initial_size: usize,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `top` and `bottom` are never read
[INFO] [stdout]   --> src/game.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct CardPair {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 17 |     pub top: DeckCard,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 18 |     pub bottom: DeckCard,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `revealed_cards` and `dna` are never read
[INFO] [stdout]   --> src/game.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub struct Game {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub revealed_cards: Vec<DeckCard>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     pub dna: Vec<CardPair>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s
[INFO] running `Command { std: "docker" "inspect" "d4fc88890124189fd3b8028e48ca576354fe019182815842b129c9f9c07c68b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d4fc88890124189fd3b8028e48ca576354fe019182815842b129c9f9c07c68b1", kill_on_drop: false }`
[INFO] [stdout] d4fc88890124189fd3b8028e48ca576354fe019182815842b129c9f9c07c68b1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] edb0bbb12d85d68e06cb212b50ce6f1a3b8f532de6c8eaf2d678015ea079b4c2
[INFO] running `Command { std: "docker" "start" "-a" "edb0bbb12d85d68e06cb212b50ce6f1a3b8f532de6c8eaf2d678015ea079b4c2", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::error::Error`
[INFO] [stderr]  --> src/game.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::error::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: irrefutable `while let` pattern
[INFO] [stderr]    --> src/deck.rs:305:15
[INFO] [stderr]     |
[INFO] [stderr] 305 |         while let card = deck1.draw(1).get(0) {
[INFO] [stderr]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this pattern will always match, so the loop will never exit
[INFO] [stderr]     = help: consider instead using a `loop { ... }` with a `let` inside it
[INFO] [stderr]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/player.rs:45:37
[INFO] [stderr]    |
[INFO] [stderr] 45 |     pub fn collect_cards(&mut self, mut cards: Vec<DeckCard>) {
[INFO] [stderr]    |                                     ----^^^^^
[INFO] [stderr]    |                                     |
[INFO] [stderr]    |                                     help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:138:9
[INFO] [stderr]     |
[INFO] [stderr] 138 |     let mut game = new_game.unwrap();
[INFO] [stderr]     |         ----^^^^
[INFO] [stderr]     |         |
[INFO] [stderr]     |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: field `initial_size` is never read
[INFO] [stderr]    --> src/deck.rs:121:5
[INFO] [stderr]     |
[INFO] [stderr] 119 | pub struct Deck {
[INFO] [stderr]     |            ---- field in this struct
[INFO] [stderr] 120 |     cards: Vec<DeckCard>,
[INFO] [stderr] 121 |     initial_size: usize,
[INFO] [stderr]     |     ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `top` and `bottom` are never read
[INFO] [stderr]   --> src/game.rs:17:9
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub struct CardPair {
[INFO] [stderr]    |            -------- fields in this struct
[INFO] [stderr] 17 |     pub top: DeckCard,
[INFO] [stderr]    |         ^^^
[INFO] [stderr] 18 |     pub bottom: DeckCard,
[INFO] [stderr]    |         ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `revealed_cards` and `dna` are never read
[INFO] [stderr]   --> src/game.rs:27:9
[INFO] [stderr]    |
[INFO] [stderr] 21 | pub struct Game {
[INFO] [stderr]    |            ---- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 27 |     pub revealed_cards: Vec<DeckCard>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr] 28 |     pub dna: Vec<CardPair>,
[INFO] [stderr]    |         ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_replica` (bin "rust_replica" test) generated 7 warnings (run `cargo fix --bin "rust_replica" -p rust_replica --tests` to apply 3 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_replica-d6f2d1138497870f)
[INFO] [stdout] 
[INFO] [stdout] running 22 tests
[INFO] [stdout] test deck::tests::draw_update_stop_cards ... ok
[INFO] [stdout] test deck::tests::draw_two_cards ... ok
[INFO] [stdout] test deck::tests::deck_from_vec ... ok
[INFO] [stdout] test deck::tests::draw_too_many_cards ... ok
[INFO] [stdout] test deck::tests::replace_card_into_deck ... ok
[INFO] [stdout] test deck::tests::replace_stop_card_into_deck ... ok
[INFO] [stdout] test deck::tests::shuffle_deck ... ok
[INFO] [stdout] test game::test::empty_deck_game_over ... ok
[INFO] [stdout] test game::test::game_new_wrong_number_of_players ... ok
[INFO] [stdout] test game::test::game_new ... ok
[INFO] [stdout] test deck::tests::shuffle_two_decks ... ok
[INFO] [stdout] test game::test::max_cells_stopped_2_players_game_over ... ok
[INFO] [stdout] test game::test::max_cells_stopped_3_players_game_over ... ok
[INFO] [stdout] test game::test::game_not_over ... ok
[INFO] [stdout] test game::test::max_cells_stopped_4_players_game_over ... ok
[INFO] [stdout] test game::test::played_all_stop_cards_game_over ... ok
[INFO] [stdout] test player::tests::player_draw_cards ... ok
[INFO] [stdout] test player::tests::player_score ... ok
[INFO] [stdout] test player::tests::player_new ... ok
[INFO] [stdout] test deck::tests::new_deck_is_empty ... ok
[INFO] [stdout] test player::tests::player_collect_cards ... ok
[INFO] [stdout] test deck::tests::recognise_stop_cards ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "edb0bbb12d85d68e06cb212b50ce6f1a3b8f532de6c8eaf2d678015ea079b4c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "edb0bbb12d85d68e06cb212b50ce6f1a3b8f532de6c8eaf2d678015ea079b4c2", kill_on_drop: false }`
[INFO] [stdout] edb0bbb12d85d68e06cb212b50ce6f1a3b8f532de6c8eaf2d678015ea079b4c2
