[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 try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsilvanx%2Frust_replica" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/silvanx/rust_replica on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "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-4-tc2/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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60982ca414ac22367af626a92bf8e541a76ef0d89f9f59fec4119864926df2ec [INFO] running `Command { std: "docker" "start" "-a" "60982ca414ac22367af626a92bf8e541a76ef0d89f9f59fec4119864926df2ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60982ca414ac22367af626a92bf8e541a76ef0d89f9f59fec4119864926df2ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60982ca414ac22367af626a92bf8e541a76ef0d89f9f59fec4119864926df2ec", kill_on_drop: false }` [INFO] [stdout] 60982ca414ac22367af626a92bf8e541a76ef0d89f9f59fec4119864926df2ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8c2f65f0258dfe2976a072c750583541ae230e1a25809868710cdb8baf3292e [INFO] running `Command { std: "docker" "start" "-a" "a8c2f65f0258dfe2976a072c750583541ae230e1a25809868710cdb8baf3292e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling cfg-if v1.0.0 [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 3.46s [INFO] running `Command { std: "docker" "inspect" "a8c2f65f0258dfe2976a072c750583541ae230e1a25809868710cdb8baf3292e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8c2f65f0258dfe2976a072c750583541ae230e1a25809868710cdb8baf3292e", kill_on_drop: false }` [INFO] [stdout] a8c2f65f0258dfe2976a072c750583541ae230e1a25809868710cdb8baf3292e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 545e513b8c6f9433ad1cfaf31400567693ba30eed84828ad5f59b31d3510fca0 [INFO] running `Command { std: "docker" "start" "-a" "545e513b8c6f9433ad1cfaf31400567693ba30eed84828ad5f59b31d3510fca0", 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.76s [INFO] running `Command { std: "docker" "inspect" "545e513b8c6f9433ad1cfaf31400567693ba30eed84828ad5f59b31d3510fca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "545e513b8c6f9433ad1cfaf31400567693ba30eed84828ad5f59b31d3510fca0", kill_on_drop: false }` [INFO] [stdout] 545e513b8c6f9433ad1cfaf31400567693ba30eed84828ad5f59b31d3510fca0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dfa8d649a796a167bd5906c51deef7ac5c2dfb018e113598a215f121eb170c95 [INFO] running `Command { std: "docker" "start" "-a" "dfa8d649a796a167bd5906c51deef7ac5c2dfb018e113598a215f121eb170c95", 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)]` 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) { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` 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, [INFO] [stderr] 121 | initial_size: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` 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, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 28 | pub dna: Vec, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust_replica` (bin "rust_replica" test) generated 7 warnings (run `cargo fix --bin "rust_replica" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_replica-1cf14b18889c9998) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test deck::tests::deck_from_vec ... ok [INFO] [stdout] test deck::tests::draw_too_many_cards ... ok [INFO] [stdout] test deck::tests::draw_update_stop_cards ... ok [INFO] [stdout] test deck::tests::recognise_stop_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::game_new_wrong_number_of_players ... ok [INFO] [stdout] test game::test::game_not_over ... ok [INFO] [stdout] test game::test::game_new ... ok [INFO] [stdout] test deck::tests::new_deck_is_empty ... ok [INFO] [stdout] test game::test::max_cells_stopped_2_players_game_over ... ok [INFO] [stdout] test game::test::empty_deck_game_over ... ok [INFO] [stdout] test game::test::max_cells_stopped_3_players_game_over ... ok [INFO] [stdout] test deck::tests::draw_two_cards ... ok [INFO] [stdout] test game::test::max_cells_stopped_4_players_game_over ... ok [INFO] [stdout] test player::tests::player_new ... ok [INFO] [stdout] test player::tests::player_collect_cards ... ok [INFO] [stdout] test player::tests::player_score ... 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 deck::tests::shuffle_two_decks ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- deck::tests::shuffle_two_decks stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'deck::tests::shuffle_two_decks' panicked at src/deck.rs:314:13: [INFO] [stdout] Two decks shuffled separately result in identical order [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64cb7306baf2 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64cb7306baf2 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64cb7306baf2 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64cb7306baf2 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64cb73090103 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64cb73090103 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x64cb73068b13 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64cb73068b13 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x64cb7306b942 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64cb7306d07c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x64cb7306ced2 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x64cb7300c3f4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x64cb7300c3f4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64cb7306db73 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x64cb7306db73 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x64cb7306d7f6 - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:699:13 [INFO] [stdout] 16: 0x64cb7306bff9 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x64cb7306d4bd - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x64cb7308eb70 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x64cb72fcbd37 - rust_replica::deck::tests::shuffle_two_decks::hefdf2418906d688c [INFO] [stdout] at /opt/rustwide/workdir/src/deck.rs:314:13 [INFO] [stdout] 20: 0x64cb72fcb867 - rust_replica::deck::tests::shuffle_two_decks::{{closure}}::h8fc3a6b14ede7b76 [INFO] [stdout] at /opt/rustwide/workdir/src/deck.rs:298:27 [INFO] [stdout] 21: 0x64cb72fc7da6 - core::ops::function::FnOnce::call_once::hb07620301609c721 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x64cb73011beb - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x64cb73011beb - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 24: 0x64cb73010e02 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 25: 0x64cb73010e02 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 26: 0x64cb73010e02 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 27: 0x64cb73010e02 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 28: 0x64cb73010e02 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 29: 0x64cb73010e02 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 30: 0x64cb73010e02 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 31: 0x64cb72fd41f4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 32: 0x64cb72fd41f4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 33: 0x64cb72fd7cca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 34: 0x64cb72fd7cca - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 35: 0x64cb72fd7cca - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 36: 0x64cb72fd7cca - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 37: 0x64cb72fd7cca - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 38: 0x64cb72fd7cca - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 39: 0x64cb72fd7cca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 40: 0x64cb7306f41b - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 41: 0x64cb7306f41b - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 42: 0x64cb7306f41b - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 43: 0x7eedd40bbaa4 - [INFO] [stdout] 44: 0x7eedd4148a34 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] deck::tests::shuffle_two_decks [INFO] [stdout] [INFO] [stdout] test result: FAILED. 21 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin rust_replica` [INFO] running `Command { std: "docker" "inspect" "dfa8d649a796a167bd5906c51deef7ac5c2dfb018e113598a215f121eb170c95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfa8d649a796a167bd5906c51deef7ac5c2dfb018e113598a215f121eb170c95", kill_on_drop: false }` [INFO] [stdout] dfa8d649a796a167bd5906c51deef7ac5c2dfb018e113598a215f121eb170c95