[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 try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhitsan%2Floveletter" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hitsan/loveletter on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c9a5a3248cd31976982044c5f6c6fe2aad17b94fa9f120cd7bf63092c9e15a8 [INFO] running `Command { std: "docker" "start" "-a" "4c9a5a3248cd31976982044c5f6c6fe2aad17b94fa9f120cd7bf63092c9e15a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c9a5a3248cd31976982044c5f6c6fe2aad17b94fa9f120cd7bf63092c9e15a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9a5a3248cd31976982044c5f6c6fe2aad17b94fa9f120cd7bf63092c9e15a8", kill_on_drop: false }` [INFO] [stdout] 4c9a5a3248cd31976982044c5f6c6fe2aad17b94fa9f120cd7bf63092c9e15a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19791fe0a8fcdd1a078ffd0a51cb8dfc540988402dc3b4303a12e5bb65763d22 [INFO] running `Command { std: "docker" "start" "-a" "19791fe0a8fcdd1a078ffd0a51cb8dfc540988402dc3b4303a12e5bb65763d22", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling libc v0.2.159 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: struct `Loosers` is never constructed [INFO] [stdout] --> src/user/looser.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Loosers(Vec); [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: type alias `Name` is never used [INFO] [stdout] --> src/game/board.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Name = String; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] [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: enum `Card` is never used [INFO] [stdout] --> src/card/card.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deck` is never constructed [INFO] [stdout] --> src/card/deck.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Deck(Vec); [INFO] [stdout] | ^^^^ [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: struct `Discard` is never constructed [INFO] [stdout] --> src/card/discard.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Discard { [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: struct `DiscardPile` is never constructed [INFO] [stdout] --> src/card/discard.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DiscardPile(Vec); [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: struct `Player` is never constructed [INFO] [stdout] --> src/user/player.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Player{ [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: struct `Players` is never constructed [INFO] [stdout] --> src/user/player.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Players(Vec); [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: struct `Looser` is never constructed [INFO] [stdout] --> src/user/looser.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Looser { [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: struct `Loosers` is never constructed [INFO] [stdout] --> src/user/looser.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Loosers(Vec); [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 8.72s [INFO] running `Command { std: "docker" "inspect" "19791fe0a8fcdd1a078ffd0a51cb8dfc540988402dc3b4303a12e5bb65763d22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19791fe0a8fcdd1a078ffd0a51cb8dfc540988402dc3b4303a12e5bb65763d22", kill_on_drop: false }` [INFO] [stdout] 19791fe0a8fcdd1a078ffd0a51cb8dfc540988402dc3b4303a12e5bb65763d22