[INFO] cloning repository https://github.com/broosa/RustCribbage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/broosa/RustCribbage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroosa%2FRustCribbage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroosa%2FRustCribbage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d77dffc975c04beccacc25b1e749b78975b7e04b [INFO] building broosa/RustCribbage 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%2Fbroosa%2FRustCribbage" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/broosa/RustCribbage 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/broosa/RustCribbage [INFO] finished tweaking git repo https://github.com/broosa/RustCribbage [INFO] tweaked toml for git repo https://github.com/broosa/RustCribbage written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/broosa/RustCribbage 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 0051c8326f3a8e69ddf3c80acc1e79ce2dfba3fee9eb69d07860395fdb0b73d1 [INFO] running `Command { std: "docker" "start" "-a" "0051c8326f3a8e69ddf3c80acc1e79ce2dfba3fee9eb69d07860395fdb0b73d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0051c8326f3a8e69ddf3c80acc1e79ce2dfba3fee9eb69d07860395fdb0b73d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0051c8326f3a8e69ddf3c80acc1e79ce2dfba3fee9eb69d07860395fdb0b73d1", kill_on_drop: false }` [INFO] [stdout] 0051c8326f3a8e69ddf3c80acc1e79ce2dfba3fee9eb69d07860395fdb0b73d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 7e86748618228d602eb901f5ea7125b06fd8c0152c67157b2365f54f298c9fdf [INFO] running `Command { std: "docker" "start" "-a" "7e86748618228d602eb901f5ea7125b06fd8c0152c67157b2365f54f298c9fdf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rust_cribbage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `directly_precedes` and `directly_succeeds` are never used [INFO] [stdout] --> src/cribbage_cards.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 29 | pub fn directly_precedes(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/cribbage_scoring.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quadScore` [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quadScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quads` [INFO] [stdout] --> src/cribbage_scoring.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tripleScore` [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tripleScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triples` [INFO] [stdout] --> src/cribbage_scoring.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_triples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairScore` [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/cribbage_scoring.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs_remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runScore` [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runs` [INFO] [stdout] --> src/cribbage_scoring.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_runs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_long_rank_desc` is never used [INFO] [stdout] --> src/cards.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_long_rank_desc(r: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cards.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait MutableCardCollection { [INFO] [stdout] | --------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 89 | fn draw_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | fn draw_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | fn peek_top(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | fn peek_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | fn peek_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 94 | fn insert_top(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | fn insert_bottom(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | fn insert_before(&mut self, c: T, loc: usize); [INFO] [stdout] 97 | fn insert_multiple_top(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | fn insert_multiple_bottom(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | fn insert_multiple_at(&mut self, c: Vec, loc: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_short_rank_name`, `get_long_rank_name`, `get_short_suit_name`, `get_long_suit_name`, and `get_long_description` are never used [INFO] [stdout] --> src/cards.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub trait Card: Copy { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_short_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn get_long_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_short_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_long_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn get_long_description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `directly_succeeds` is never used [INFO] [stdout] --> src/cribbage_cards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_flush` is never used [INFO] [stdout] --> src/cribbage_scoring.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn score_flush(hand: &Vec) -> (i8, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fifteensScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | let (fifteensScore, fifteens) = score_fifteens(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `fifteens_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `quadScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quad_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tripleScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `triple_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pairScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pair_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `runScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `run_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.58s [INFO] running `Command { std: "docker" "inspect" "7e86748618228d602eb901f5ea7125b06fd8c0152c67157b2365f54f298c9fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e86748618228d602eb901f5ea7125b06fd8c0152c67157b2365f54f298c9fdf", kill_on_drop: false }` [INFO] [stdout] 7e86748618228d602eb901f5ea7125b06fd8c0152c67157b2365f54f298c9fdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a36ad9a7fd29d4a8e3a0bf3f43a90314c52c702ad85f5f8db193f4a3189a379e [INFO] running `Command { std: "docker" "start" "-a" "a36ad9a7fd29d4a8e3a0bf3f43a90314c52c702ad85f5f8db193f4a3189a379e", kill_on_drop: false }` [INFO] [stderr] Compiling rust_cribbage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `directly_precedes` and `directly_succeeds` are never used [INFO] [stdout] --> src/cribbage_cards.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 29 | pub fn directly_precedes(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/cribbage_scoring.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quadScore` [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quadScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quads` [INFO] [stdout] --> src/cribbage_scoring.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tripleScore` [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tripleScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triples` [INFO] [stdout] --> src/cribbage_scoring.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_triples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairScore` [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/cribbage_scoring.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs_remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runScore` [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runs` [INFO] [stdout] --> src/cribbage_scoring.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_runs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_long_rank_desc` is never used [INFO] [stdout] --> src/cards.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_long_rank_desc(r: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cards.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait MutableCardCollection { [INFO] [stdout] | --------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 89 | fn draw_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | fn draw_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | fn peek_top(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | fn peek_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | fn peek_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 94 | fn insert_top(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | fn insert_bottom(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | fn insert_before(&mut self, c: T, loc: usize); [INFO] [stdout] 97 | fn insert_multiple_top(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | fn insert_multiple_bottom(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | fn insert_multiple_at(&mut self, c: Vec, loc: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_short_rank_name`, `get_long_rank_name`, `get_short_suit_name`, `get_long_suit_name`, and `get_long_description` are never used [INFO] [stdout] --> src/cards.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub trait Card: Copy { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_short_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn get_long_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_short_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_long_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn get_long_description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `directly_succeeds` is never used [INFO] [stdout] --> src/cribbage_cards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_flush` is never used [INFO] [stdout] --> src/cribbage_scoring.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn score_flush(hand: &Vec) -> (i8, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fifteensScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | let (fifteensScore, fifteens) = score_fifteens(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `fifteens_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `quadScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quad_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tripleScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `triple_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pairScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pair_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `runScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `run_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> tests/cards_test.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let d = c.get_long_description(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `directly_precedes` and `directly_succeeds` are never used [INFO] [stdout] --> src/cribbage_cards.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 29 | pub fn directly_precedes(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/cribbage_scoring.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quadScore` [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quadScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quads` [INFO] [stdout] --> src/cribbage_scoring.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tripleScore` [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tripleScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triples` [INFO] [stdout] --> src/cribbage_scoring.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_triples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairScore` [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/cribbage_scoring.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs_remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runScore` [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runs` [INFO] [stdout] --> src/cribbage_scoring.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_runs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_long_rank_desc` is never used [INFO] [stdout] --> src/cards.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_long_rank_desc(r: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cards.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait MutableCardCollection { [INFO] [stdout] | --------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 89 | fn draw_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | fn draw_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | fn peek_top(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | fn peek_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | fn peek_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 94 | fn insert_top(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | fn insert_bottom(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | fn insert_before(&mut self, c: T, loc: usize); [INFO] [stdout] 97 | fn insert_multiple_top(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | fn insert_multiple_bottom(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | fn insert_multiple_at(&mut self, c: Vec, loc: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_short_rank_name`, `get_long_rank_name`, `get_short_suit_name`, `get_long_suit_name`, and `get_long_description` are never used [INFO] [stdout] --> src/cards.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub trait Card: Copy { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_short_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn get_long_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_short_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_long_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn get_long_description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `directly_succeeds` is never used [INFO] [stdout] --> src/cribbage_cards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_flush` is never used [INFO] [stdout] --> src/cribbage_scoring.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn score_flush(hand: &Vec) -> (i8, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fifteensScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | let (fifteensScore, fifteens) = score_fifteens(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `fifteens_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `quadScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quad_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tripleScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `triple_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pairScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pair_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `runScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `run_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "a36ad9a7fd29d4a8e3a0bf3f43a90314c52c702ad85f5f8db193f4a3189a379e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a36ad9a7fd29d4a8e3a0bf3f43a90314c52c702ad85f5f8db193f4a3189a379e", kill_on_drop: false }` [INFO] [stdout] a36ad9a7fd29d4a8e3a0bf3f43a90314c52c702ad85f5f8db193f4a3189a379e