[INFO] cloning repository https://github.com/hitsan/loveletter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hitsan/loveletter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhitsan%2Floveletter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhitsan%2Floveletter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f06ca95b60be17d135578c9282b35c5ae92b83b7 [INFO] checking hitsan/loveletter against master#fd17deacce374a4185c882795be162e17b557050 for pr-138001 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhitsan%2Floveletter" "/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/hitsan/loveletter on toolchain fd17deacce374a4185c882795be162e17b557050 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hitsan/loveletter [INFO] finished tweaking git repo https://github.com/hitsan/loveletter [INFO] tweaked toml for git repo https://github.com/hitsan/loveletter written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hitsan/loveletter 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" "+fd17deacce374a4185c882795be162e17b557050" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27c61f5577bfc153fcd05dd0bc2b4aec06d68e762fc05b817b08bed0668dac2f [INFO] running `Command { std: "docker" "start" "-a" "27c61f5577bfc153fcd05dd0bc2b4aec06d68e762fc05b817b08bed0668dac2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27c61f5577bfc153fcd05dd0bc2b4aec06d68e762fc05b817b08bed0668dac2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27c61f5577bfc153fcd05dd0bc2b4aec06d68e762fc05b817b08bed0668dac2f", kill_on_drop: false }` [INFO] [stdout] 27c61f5577bfc153fcd05dd0bc2b4aec06d68e762fc05b817b08bed0668dac2f [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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b589ff8df8c12652baf66ea9f8731fc1eccf05f834ec7ded3e463db292f2fe0 [INFO] running `Command { std: "docker" "start" "-a" "5b589ff8df8c12652baf66ea9f8731fc1eccf05f834ec7ded3e463db292f2fe0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking loveletter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/game/board.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/game/board.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/board.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Board { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(players: Players, loosers: Loosers, deck: Deck, discard_pile: DiscardPile, sercret_card: Card) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/card/card.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Card { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Princess = 8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | Minister = 7, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | General = 6, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | Magician = 5, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Monk = 4, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Knight = 3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | Clown = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Soldier = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` 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: associated items `new`, `shuffle`, `init`, and `draw` are never used [INFO] [stdout] --> src/card/deck.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Deck { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(cards: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn shuffle(mut cards: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn init(cards: Vec, minimum_card_num: usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn draw(self) -> Option<(Card, Self)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/card/discard.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Discard { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 11 | pub fn new(name: Name, card: Card) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `added` are never used [INFO] [stdout] --> src/card/discard.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl DiscardPile { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn added(self, discard: Discard) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `loose`, and `exchange` are never used [INFO] [stdout] --> src/user/player.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(name: Name, card: Card) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn loose(self) -> (Looser, Discard) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn exchange(self, picked: Card) -> (Self, Card) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pick_current_player`, `rotated`, `droped`, and `peek` are never used [INFO] [stdout] --> src/user/player.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Players { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 38 | pub fn pick_current_player(&self) -> &Player { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn rotated(self) -> Players { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn droped(self, name: &Name) -> Result<(Player, Players), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn peek(&self, target: &Name) -> Option<&Player> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user/looser.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Looser { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(name: Name) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `added` are never used [INFO] [stdout] --> src/user/looser.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Loosers { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(loosers: Vec) -> Loosers { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn added(self, looser: Looser) -> Loosers { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/game/board.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/board.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Board { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(players: Players, loosers: Loosers, deck: Deck, discard_pile: DiscardPile, sercret_card: Card) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `shuffle` and `init` are never used [INFO] [stdout] --> src/card/deck.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Deck { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn shuffle(mut cards: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn init(cards: Vec, minimum_card_num: usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `added` are never used [INFO] [stdout] --> src/user/looser.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Loosers { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(loosers: Vec) -> Loosers { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn added(self, looser: Looser) -> Loosers { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.43s [INFO] running `Command { std: "docker" "inspect" "5b589ff8df8c12652baf66ea9f8731fc1eccf05f834ec7ded3e463db292f2fe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b589ff8df8c12652baf66ea9f8731fc1eccf05f834ec7ded3e463db292f2fe0", kill_on_drop: false }` [INFO] [stdout] 5b589ff8df8c12652baf66ea9f8731fc1eccf05f834ec7ded3e463db292f2fe0