[INFO] cloning repository https://github.com/benj2468/cards [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benj2468/cards" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenj2468%2Fcards", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenj2468%2Fcards'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46cc1eff859e6a969cad231368b2d41683c7240c [INFO] testing benj2468/cards against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenj2468%2Fcards" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/benj2468/cards [INFO] finished tweaking git repo https://github.com/benj2468/cards [INFO] tweaked toml for git repo https://github.com/benj2468/cards written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/benj2468/cards on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/benj2468/cards 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80b42801d754a5903729d45d90224dd11e07a752d492fc597e5dd81a431b7456 [INFO] running `Command { std: "docker" "start" "-a" "80b42801d754a5903729d45d90224dd11e07a752d492fc597e5dd81a431b7456", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80b42801d754a5903729d45d90224dd11e07a752d492fc597e5dd81a431b7456", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80b42801d754a5903729d45d90224dd11e07a752d492fc597e5dd81a431b7456", kill_on_drop: false }` [INFO] [stdout] 80b42801d754a5903729d45d90224dd11e07a752d492fc597e5dd81a431b7456 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c8ca931a48b91c8bdc8222b4317e3c75eb2a91670a33e534197345bb46e7f01d [INFO] running `Command { std: "docker" "start" "-a" "c8ca931a48b91c8bdc8222b4317e3c75eb2a91670a33e534197345bb46e7f01d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling zeroize v0.9.3 [INFO] [stderr] Compiling text_io v0.1.8 [INFO] [stderr] Compiling terminal_size v0.1.15 [INFO] [stderr] Compiling rand_core v0.6.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.0 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling console v0.13.0 [INFO] [stderr] Compiling dialoguer v0.7.1 [INFO] [stderr] Compiling cards v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opposite_suit` [INFO] [stdout] --> src/games/klondike.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let opposite_suit = if move_card.color() { Suit::Club } else { Suit::Diamond }; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opposite_suit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/games/klondike.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | Err(e) => return Err(String::from("Unable to make that move")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_move_aces` is never used [INFO] [stdout] --> src/games/aces_up.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl AcesUpGame [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | fn try_move_aces(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_visible`, `see`, `hide`, and `color` are never used [INFO] [stdout] --> src/games/../utils/deck.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_visible(suit: Suit, rank: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn see(mut self) -> Card [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn hide(mut self) -> Card [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn color(&self) -> bool [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_deck`, `deal`, and `top_card` are never used [INFO] [stdout] --> src/games/../utils/deck.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Stack { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 114 | pub fn new_deck(with_joker: bool) -> Stack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn deal(&mut self, count: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn top_card(&self) -> Option<&Card> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_visible`, `is_ace`, and `hide` are never used [INFO] [stdout] --> src/games/../utils/deck.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_visible(suit: Suit, rank: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn is_ace(&self) -> bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn hide(mut self) -> Card [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_deck_reverse` and `deal` are never used [INFO] [stdout] --> src/games/../utils/deck.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Stack { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn new_deck_reverse(with_joker: bool) -> Stack { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn deal(&mut self, count: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Game` is never used [INFO] [stdout] --> src/games/game.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CARD_RANK` is never used [INFO] [stdout] --> src/utils/deck.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const MAX_CARD_RANK: u8 = 14; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suit` is never used [INFO] [stdout] --> src/utils/deck.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Suit { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Suit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/utils/deck.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/utils/deck.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 37 | pub fn new(suit: Suit, rank: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn new_visible(suit: Suit, rank: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn is_ace(&self) -> bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn set_visible(&mut self, new_val: bool) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn see(mut self) -> Card [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn hide(mut self) -> Card [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn color(&self) -> bool [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/utils/deck.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/utils/deck.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Stack { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 114 | pub fn new_deck(with_joker: bool) -> Stack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn new_deck_reverse(with_joker: bool) -> Stack { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn draw(&mut self) -> Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn deal(&mut self, count: usize) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn top_card(&self) -> Option<&Card> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | select_game(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = select_game(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcdLVLdX/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libcards-3a17e95ef16df8cd.rlib,libdialoguer-d0db4d208c98f45c.rlib,libtempfile-b2626a252cdd8f08.rlib,librand-be38e567a147c43d.rlib,librand_chacha-f312454d500ef01b.rlib,librand_core-7fc64ec5e26fb145.rlib,libgetrandom-42864164047f3beb.rlib,libremove_dir_all-4e221c62d36b2749.rlib,libzeroize-9b169925854b60f6.rlib,libconsole-8fb51bbede4d5cdd.rlib,libterminal_size-050687a9dc7bc1c7.rlib,libregex-a1d3568ef67ffbd3.rlib,libregex_syntax-124672c5bd391795.rlib,libunicode_width-a8c49d31449f9404.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libtext_io-4df162deb805de5f.rlib,librand-a7ad5ec6b1d0fc4e.rlib,librand_chacha-af8bc1f23dd38537.rlib,libppv_lite86-5a92c3ab26105205.rlib,librand_core-ff3d6a80284a7ffa.rlib,libgetrandom-ed2e90ac4c207c83.rlib,liblibc-764dcc25c3de0b6e.rlib,libcfg_if-2d17986ae484e939.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcdLVLdX/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cards-9a717a35a5c63cb8" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-ed2e90ac4c207c83.rlib(getrandom-ed2e90ac4c207c83.getrandom.79dcb13d6cff0193-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.0/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h07bbf37d4ef3f0cfE+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cards` (bin "cards") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "c8ca931a48b91c8bdc8222b4317e3c75eb2a91670a33e534197345bb46e7f01d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8ca931a48b91c8bdc8222b4317e3c75eb2a91670a33e534197345bb46e7f01d", kill_on_drop: false }` [INFO] [stdout] c8ca931a48b91c8bdc8222b4317e3c75eb2a91670a33e534197345bb46e7f01d