[INFO] cloning repository https://github.com/dezgeg/shenzen-solitaire [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dezgeg/shenzen-solitaire" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezgeg%2Fshenzen-solitaire", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezgeg%2Fshenzen-solitaire'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c486dece6b285a6b0e0e1af56ddd9b8570a64f6a [INFO] checking dezgeg/shenzen-solitaire/c486dece6b285a6b0e0e1af56ddd9b8570a64f6a against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezgeg%2Fshenzen-solitaire" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dezgeg/shenzen-solitaire on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dezgeg/shenzen-solitaire [INFO] finished tweaking git repo https://github.com/dezgeg/shenzen-solitaire [INFO] tweaked toml for git repo https://github.com/dezgeg/shenzen-solitaire written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dezgeg/shenzen-solitaire 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fbeaa534094ddc3c8610c4eb364f1d32c40bb8554527b1ce1da698259e453ca1 [INFO] running `Command { std: "docker" "start" "-a" "fbeaa534094ddc3c8610c4eb364f1d32c40bb8554527b1ce1da698259e453ca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fbeaa534094ddc3c8610c4eb364f1d32c40bb8554527b1ce1da698259e453ca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbeaa534094ddc3c8610c4eb364f1d32c40bb8554527b1ce1da698259e453ca1", kill_on_drop: false }` [INFO] [stdout] fbeaa534094ddc3c8610c4eb364f1d32c40bb8554527b1ce1da698259e453ca1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f126a7225219025d740e72097cd898325ecfecac27a291c677d5c3d4de90c7a2 [INFO] running `Command { std: "docker" "start" "-a" "f126a7225219025d740e72097cd898325ecfecac27a291c677d5c3d4de90c7a2", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.20 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking shenzen-solitaire v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ANSIString` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use ansi_term::{ANSIString, Colour, Style}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ANSIString` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use ansi_term::{ANSIString, Colour, Style}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Red` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Green` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Black` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Red` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Green` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Black` is named the same as one of the variants of the type `game_logic::Suit` [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `game_logic::Suit::Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | --- matches any value [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | --- matches any value [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Red` [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Green` [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Black` [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | --- matches any value [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | --- matches any value [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Red` [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Green` [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Black` [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_logic.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_logic.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_logic.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut deck = make_shuffled_deck(); [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/game_logic.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut deck = make_shuffled_deck(); [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: unused variable: `i` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_render` is never used [INFO] [stdout] --> src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn test_render() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_index` is never used [INFO] [stdout] --> src/game_logic.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Suit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn to_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InUse` and `Flipped` are never constructed [INFO] [stdout] --> src/game_logic.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum FreeCell { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 70 | Free, [INFO] [stdout] 71 | InUse(Card), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 72 | // When four dragons are removed from the game and placed onto a free cell [INFO] [stdout] 73 | Flipped, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FreeCell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_freecell_cards` and `with_tableau_column` are never used [INFO] [stdout] --> src/game_logic.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl Playfield { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn with_freecell_cards(&self, cards: Vec, rest: FreeCell) -> Playfield { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn with_tableau_column(&self, column: usize, cards: Vec) -> Playfield { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FreeCell`, `Flower`, `Pile`, and `Tableau` are never constructed [INFO] [stdout] --> src/game_logic.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub enum Position { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 156 | // Index must be 0 .. 2 inclusive. [INFO] [stdout] 157 | FreeCell(usize), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 158 | Flower, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 159 | // Index must be 0 .. 2 inclusive. [INFO] [stdout] 160 | Pile(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 161 | // Index must be 0 .. 7 inclusive. [INFO] [stdout] 162 | Tableau(usize), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_place_on_top` is never used [INFO] [stdout] --> src/game_logic.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn can_place_on_top(card1: Card, card2: Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pick_up_cards` is never used [INFO] [stdout] --> src/game_logic.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn pick_up_cards(playfield: Playfield, count: usize, from: Position) -> Option<(Playfield, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `place_cards` is never used [INFO] [stdout] --> src/game_logic.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn place_cards(playfield: Playfield, new_cards: Vec, to: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_legal_move` is never used [INFO] [stdout] --> src/game_logic.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | pub fn is_legal_move(playfield: &Playfield, m: Move) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flip_dragon` is never used [INFO] [stdout] --> src/game_logic.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn flip_dragon(playfield: Playfield, suit: Suit) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_test_playfield` is never used [INFO] [stdout] --> src/game_logic.rs:343:4 [INFO] [stdout] | [INFO] [stdout] 343 | fn make_test_playfield() -> Playfield { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | io::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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 241 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | io::stdin().read_line(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 244 | let _ = io::stdin().read_line(&mut buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Red` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Green` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Black` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_render` is never used [INFO] [stdout] --> src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn test_render() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_index` is never used [INFO] [stdout] --> src/game_logic.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Suit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn to_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | io::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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 241 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | io::stdin().read_line(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 244 | let _ = io::stdin().read_line(&mut buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Red` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Red => 0, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: variable `Green` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Green => 1, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Black` should have a snake case name [INFO] [stdout] --> src/game_logic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Black => 2, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shenzen-solitaire` (bin "shenzen-solitaire") due to 4 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `shenzen-solitaire` (bin "shenzen-solitaire" test) due to 4 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f126a7225219025d740e72097cd898325ecfecac27a291c677d5c3d4de90c7a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f126a7225219025d740e72097cd898325ecfecac27a291c677d5c3d4de90c7a2", kill_on_drop: false }` [INFO] [stdout] f126a7225219025d740e72097cd898325ecfecac27a291c677d5c3d4de90c7a2