[INFO] cloning repository https://github.com/pati08/card-games
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pati08/card-games" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpati08%2Fcard-games", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpati08%2Fcard-games'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d7aba01e9be2be8e002bfae74edd06361d5eabdb
[INFO] checking pati08/card-games against master#89a99936d9e76a50e8df622e7242190841fd871b for pr-156160-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpati08%2Fcard-games" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/pati08/card-games
[INFO] finished tweaking git repo https://github.com/pati08/card-games
[INFO] tweaked toml for git repo https://github.com/pati08/card-games written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pati08/card-games on toolchain 89a99936d9e76a50e8df622e7242190841fd871b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pati08/card-games 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" "+89a99936d9e76a50e8df622e7242190841fd871b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wasi v0.11.0+wasi-snapshot-preview1
[INFO] [stderr]   Downloaded rand_core v0.6.4
[INFO] [stderr]   Downloaded getrandom v0.2.15
[INFO] [stderr]   Downloaded rand v0.8.5
[INFO] [stderr]   Downloaded zerocopy-derive v0.7.35
[INFO] [stderr]   Downloaded cfg-if v1.0.0
[INFO] [stderr]   Downloaded rand_chacha v0.3.1
[INFO] [stderr]   Downloaded byteorder v1.5.0
[INFO] [stderr]   Downloaded ppv-lite86 v0.2.20
[INFO] [stderr]   Downloaded quote v1.0.37
[INFO] [stderr]   Downloaded unicode-ident v1.0.13
[INFO] [stderr]   Downloaded proc-macro2 v1.0.89
[INFO] [stderr]   Downloaded zerocopy v0.7.35
[INFO] [stderr]   Downloaded syn v2.0.85
[INFO] [stderr]   Downloaded libc v0.2.161
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:fd22e2154e7db748230f413534f3a6d034160c9d2b7c14b90fba4e9bfc1a36d4" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288
[INFO] running `Command { std: "docker" "start" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288" "/opt/rustwide/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288" "/opt/rustwide/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling syn v2.0.85
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking card-games v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/main.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{rngs::ThreadRng, seq::SliceRandom, thread_rng, Rng, RngCore};
[INFO] [stdout]   |                                                           ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/main.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{rngs::ThreadRng, seq::SliceRandom, thread_rng, Rng, RngCore};
[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/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let mut cards_played: Vec<Card> = Vec::new();
[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: unused variable: `cards_played`
[INFO] [stdout]    --> src/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let mut cards_played: Vec<Card> = Vec::new();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cards_played`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `player`
[INFO] [stdout]    --> src/main.rs:125:13
[INFO] [stdout]     |
[INFO] [stdout] 125 |         for player in self.players.iter_mut() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let mut cards_played: Vec<Card> = Vec::new();
[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: unused variable: `cards_played`
[INFO] [stdout]    --> src/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let mut cards_played: Vec<Card> = Vec::new();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cards_played`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `player`
[INFO] [stdout]    --> src/main.rs:125:13
[INFO] [stdout]     |
[INFO] [stdout] 125 |         for player in self.players.iter_mut() {
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `turn` is never used
[INFO] [stdout]   --> src/main.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | trait PlayerAgent {
[INFO] [stdout]    |       ----------- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn turn(
[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 `agent`, `score`, and `hand` are never read
[INFO] [stdout]   --> src/main.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | struct Player {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 50 |     agent: Box<dyn PlayerAgent>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 51 |     score: i8,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 52 |     hand: Hand,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `next_player` is never read
[INFO] [stdout]   --> src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct GameState {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 57 |     players: Vec<Player>,
[INFO] [stdout] 58 |     next_player: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `suit` and `value` are never read
[INFO] [stdout]   --> src/main.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | struct Card {
[INFO] [stdout]    |        ---- fields in this struct
[INFO] [stdout] 62 |     suit: Suit,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 63 |     value: u8,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Card` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `format_short` is never used
[INFO] [stdout]   --> src/main.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl Card {
[INFO] [stdout]    | --------- method in this implementation
[INFO] [stdout] 73 |     fn format_short(&self) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clear_screen` is never used
[INFO] [stdout]    --> src/main.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn clear_screen() {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rng` is never read
[INFO] [stdout]    --> src/main.rs:227:5
[INFO] [stdout]     |
[INFO] [stdout] 226 | struct RandomPlayer {
[INFO] [stdout]     |        ------------ field in this struct
[INFO] [stdout] 227 |     rng: ThreadRng,
[INFO] [stdout]     |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `LegalResult` is never used
[INFO] [stdout]    --> src/main.rs:252:6
[INFO] [stdout]     |
[INFO] [stdout] 252 | enum LegalResult {
[INFO] [stdout]     |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_legal` is never used
[INFO] [stdout]    --> src/main.rs:258:4
[INFO] [stdout]     |
[INFO] [stdout] 258 | fn is_legal(hand: &Hand, card_index: u8, hearts_broken: bool) -> LegalResult {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `turn` is never used
[INFO] [stdout]   --> src/main.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | trait PlayerAgent {
[INFO] [stdout]    |       ----------- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn turn(
[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 `agent`, `score`, and `hand` are never read
[INFO] [stdout]   --> src/main.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | struct Player {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 50 |     agent: Box<dyn PlayerAgent>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 51 |     score: i8,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 52 |     hand: Hand,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `next_player` is never read
[INFO] [stdout]   --> src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct GameState {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 57 |     players: Vec<Player>,
[INFO] [stdout] 58 |     next_player: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `suit` and `value` are never read
[INFO] [stdout]   --> src/main.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | struct Card {
[INFO] [stdout]    |        ---- fields in this struct
[INFO] [stdout] 62 |     suit: Suit,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 63 |     value: u8,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Card` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `format_short` is never used
[INFO] [stdout]   --> src/main.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl Card {
[INFO] [stdout]    | --------- method in this implementation
[INFO] [stdout] 73 |     fn format_short(&self) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clear_screen` is never used
[INFO] [stdout]    --> src/main.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn clear_screen() {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rng` is never read
[INFO] [stdout]    --> src/main.rs:227:5
[INFO] [stdout]     |
[INFO] [stdout] 226 | struct RandomPlayer {
[INFO] [stdout]     |        ------------ field in this struct
[INFO] [stdout] 227 |     rng: ThreadRng,
[INFO] [stdout]     |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `LegalResult` is never used
[INFO] [stdout]    --> src/main.rs:252:6
[INFO] [stdout]     |
[INFO] [stdout] 252 | enum LegalResult {
[INFO] [stdout]     |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_legal` is never used
[INFO] [stdout]    --> src/main.rs:258:4
[INFO] [stdout]     |
[INFO] [stdout] 258 | fn is_legal(hand: &Hand, card_index: u8, hearts_broken: bool) -> LegalResult {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     stdout().flush();
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]   = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let _ = stdout().flush();
[INFO] [stdout]   |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     stdout().flush();
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]   = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let _ = stdout().flush();
[INFO] [stdout]   |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.97s
[INFO] running `Command { std: "docker" "inspect" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288", kill_on_drop: false }`
[INFO] [stdout] e4da7be079581e14404bc52615429030899b78ae542ceba9e5f4c512cb305288
