[INFO] cloning repository https://github.com/crazcalm/book_examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crazcalm/book_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrazcalm%2Fbook_examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrazcalm%2Fbook_examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d0ec6de54dfd2716dae2047cf6ca83235891537a [INFO] checking crazcalm/book_examples against master#18a029cfe8e761533634bda8fe8a14e30280a21b for pr-139646 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrazcalm%2Fbook_examples" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crazcalm/book_examples on toolchain 18a029cfe8e761533634bda8fe8a14e30280a21b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/crazcalm/book_examples [INFO] finished tweaking git repo https://github.com/crazcalm/book_examples [INFO] tweaked toml for git repo https://github.com/crazcalm/book_examples written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/crazcalm/book_examples 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" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9df8cec75d5258ca62f53956be5c5db8a500d4ee8c6b06ca5250aad37738ceb [INFO] running `Command { std: "docker" "start" "-a" "e9df8cec75d5258ca62f53956be5c5db8a500d4ee8c6b06ca5250aad37738ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9df8cec75d5258ca62f53956be5c5db8a500d4ee8c6b06ca5250aad37738ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9df8cec75d5258ca62f53956be5c5db8a500d4ee8c6b06ca5250aad37738ceb", kill_on_drop: false }` [INFO] [stdout] e9df8cec75d5258ca62f53956be5c5db8a500d4ee8c6b06ca5250aad37738ceb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41d5150f9ea54cb7b91a436a84f497e4f5798b586a1b3cc861618c346899c71a [INFO] running `Command { std: "docker" "start" "-a" "41d5150f9ea54cb7b91a436a84f497e4f5798b586a1b3cc861618c346899c71a", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Checking book_examples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `Suit` is never used [INFO] [stdout] --> src/lib.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 37 | fn new(rank: u8, suit: Suit) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PokerHandType` is never used [INFO] [stdout] --> src/lib.rs:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | enum PokerHandType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PokerHand` is never constructed [INFO] [stdout] --> src/lib.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct PokerHand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 117 | impl PokerHand { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 118 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn add_card(&mut self, card: Card) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn card_rank_histogram(&self) -> Vec<(u8, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn have_flush(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn have_straight(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | fn set_hand_type(&mut self) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn sort_hand(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_card` are never used [INFO] [stdout] --> src/lib.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 117 | impl PokerHand { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 118 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn add_card(&mut self, card: Card) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-3.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-1.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Spade` is never constructed [INFO] [stdout] --> examples/example12-4.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example11-2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Heart, [INFO] [stdout] 7 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/example11-2.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | enum PokerHandType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 66 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | OnePair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | TwoPair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 69 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 70 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 71 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 72 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 74 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 75 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHandType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `poker_hand_type` is never read [INFO] [stdout] --> examples/example11-2.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct PokerHand { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 80 | cards: Vec, [INFO] [stdout] 81 | poker_hand_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> examples/example1-2.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let one: u8 = 1; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> examples/example1-2.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let two: i32 = 2; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `years_of_service` are never read [INFO] [stdout] --> examples/example7-2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Employee { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | years_of_service: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example11-4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Heart, [INFO] [stdout] 8 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/example11-4.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | enum PokerHandType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 67 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | OnePair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 69 | TwoPair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 71 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 73 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 75 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 76 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHandType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `poker_hand_type` is never read [INFO] [stdout] --> examples/example11-4.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | struct PokerHand { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 81 | cards: Vec, [INFO] [stdout] 82 | poker_hand_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `card_rank_histogram` is never used [INFO] [stdout] --> examples/example11-4.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl PokerHand { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | fn card_rank_histogram(&self) -> Vec<(u8, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-4.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example11-5.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Heart, [INFO] [stdout] 8 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/example11-5.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | enum PokerHandType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 67 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | OnePair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 69 | TwoPair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 71 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 73 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 75 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 76 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHandType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `poker_hand_type` is never read [INFO] [stdout] --> examples/example11-5.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | struct PokerHand { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 81 | cards: Vec, [INFO] [stdout] 82 | poker_hand_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `card_rank_histogram` and `have_flush` are never used [INFO] [stdout] --> examples/example11-5.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl PokerHand { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | fn card_rank_histogram(&self) -> Vec<(u8, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn have_flush(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example12-3.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Heart, [INFO] [stdout] 8 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example10-4.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Heart, [INFO] [stdout] 7 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-6.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Spade` is never constructed [INFO] [stdout] --> examples/example13-1.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/example11-3.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | enum PokerHandType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 67 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | OnePair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 69 | TwoPair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 71 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 73 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 75 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 76 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHandType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `poker_hand_type` is never read [INFO] [stdout] --> examples/example11-3.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | struct PokerHand { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 81 | cards: Vec, [INFO] [stdout] 82 | poker_hand_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suit` is never used [INFO] [stdout] --> examples/example10-1.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Suit { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> examples/example10-1.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example10-3.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Heart, [INFO] [stdout] 6 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/example11-1.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut hand = PokerHand::new(); [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: variants `Heart`, `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example11-1.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Heart, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> examples/example11-1.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 36 | fn new(rank: u8, suit: Suit) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/example11-1.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | enum PokerHandType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 66 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | OnePair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | TwoPair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 69 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 70 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 71 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 72 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 74 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 75 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHandType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cards` and `poker_hand_type` are never read [INFO] [stdout] --> examples/example11-1.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct PokerHand { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 80 | cards: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 81 | poker_hand_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PokerHand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-7.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-5.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employee` is never constructed [INFO] [stdout] --> examples/example9-2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Employee { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_rank_histogram` [INFO] [stdout] --> examples/example12-1.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let card_rank_histogram = self.card_rank_histogram(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_rank_histogram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example12-1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Heart, [INFO] [stdout] 8 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sort_hand` is never used [INFO] [stdout] --> examples/example12-1.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl PokerHand { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | fn sort_hand(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suit` is never used [INFO] [stdout] --> examples/example10-2.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Suit { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> examples/example10-2.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Club`, `Spade`, and `Diamond` are never constructed [INFO] [stdout] --> examples/example11-6.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Heart, [INFO] [stdout] 8 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Spade` and `Diamond` are never constructed [INFO] [stdout] --> examples/example12-2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Diamond, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.55s [INFO] running `Command { std: "docker" "inspect" "41d5150f9ea54cb7b91a436a84f497e4f5798b586a1b3cc861618c346899c71a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41d5150f9ea54cb7b91a436a84f497e4f5798b586a1b3cc861618c346899c71a", kill_on_drop: false }` [INFO] [stdout] 41d5150f9ea54cb7b91a436a84f497e4f5798b586a1b3cc861618c346899c71a