[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] building silvanx/rust_replica 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%2Fsilvanx%2Frust_replica" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/silvanx/rust_replica 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/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-1-tc1/source/Cargo.toml [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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.2.11 [INFO] [stderr] Downloaded libc v0.2.151 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 26c39418d8721ceac0f025ce279d3db18b5c04e74d2cd2f4855478aec0f100a4 [INFO] running `Command { std: "docker" "start" "-a" "26c39418d8721ceac0f025ce279d3db18b5c04e74d2cd2f4855478aec0f100a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26c39418d8721ceac0f025ce279d3db18b5c04e74d2cd2f4855478aec0f100a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26c39418d8721ceac0f025ce279d3db18b5c04e74d2cd2f4855478aec0f100a4", kill_on_drop: false }` [INFO] [stdout] 26c39418d8721ceac0f025ce279d3db18b5c04e74d2cd2f4855478aec0f100a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] dcef4038c152ff9564baa42444a121cb188284ea86976eec293ecc250b3ed3b4 [INFO] running `Command { std: "docker" "start" "-a" "dcef4038c152ff9564baa42444a121cb188284ea86976eec293ecc250b3ed3b4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [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)]` 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) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` 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)]` 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, [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 { [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, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | collected_cards: Vec, [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) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn draw_cards(&mut self, mut cards: Vec) { [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, [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, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub dna: Vec, [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.53s [INFO] running `Command { std: "docker" "inspect" "dcef4038c152ff9564baa42444a121cb188284ea86976eec293ecc250b3ed3b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcef4038c152ff9564baa42444a121cb188284ea86976eec293ecc250b3ed3b4", kill_on_drop: false }` [INFO] [stdout] dcef4038c152ff9564baa42444a121cb188284ea86976eec293ecc250b3ed3b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] a20d2f5393958d6ff4478b905d3402768b1162a22476fad7d48a99c616b6cc35 [INFO] running `Command { std: "docker" "start" "-a" "a20d2f5393958d6ff4478b905d3402768b1162a22476fad7d48a99c616b6cc35", 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)]` 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) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` 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, [INFO] [stdout] 121 | initial_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub dna: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "a20d2f5393958d6ff4478b905d3402768b1162a22476fad7d48a99c616b6cc35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a20d2f5393958d6ff4478b905d3402768b1162a22476fad7d48a99c616b6cc35", kill_on_drop: false }` [INFO] [stdout] a20d2f5393958d6ff4478b905d3402768b1162a22476fad7d48a99c616b6cc35