[INFO] cloning repository https://github.com/dthelegend/Poker-Environment [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dthelegend/Poker-Environment" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthelegend%2FPoker-Environment", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthelegend%2FPoker-Environment'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f76a06c80f143b79055efe6754abdbd4ac1f1264 [INFO] testing dthelegend/Poker-Environment against try#311784882baa42a9638298cb325fa01a062c9d0f+cargoflags=-Zbuild-dir-new-layout for pr-149852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthelegend%2FPoker-Environment" "/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/dthelegend/Poker-Environment [INFO] finished tweaking git repo https://github.com/dthelegend/Poker-Environment [INFO] tweaked toml for git repo https://github.com/dthelegend/Poker-Environment written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dthelegend/Poker-Environment on toolchain 311784882baa42a9638298cb325fa01a062c9d0f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dthelegend/Poker-Environment 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" "+311784882baa42a9638298cb325fa01a062c9d0f" "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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a134693a5366a7fa49d7f6d6c4a3848d15afb56f1780b1578763980a9f8f430c [INFO] running `Command { std: "docker" "start" "-a" "a134693a5366a7fa49d7f6d6c4a3848d15afb56f1780b1578763980a9f8f430c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a134693a5366a7fa49d7f6d6c4a3848d15afb56f1780b1578763980a9f8f430c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a134693a5366a7fa49d7f6d6c4a3848d15afb56f1780b1578763980a9f8f430c", kill_on_drop: false }` [INFO] [stdout] a134693a5366a7fa49d7f6d6c4a3848d15afb56f1780b1578763980a9f8f430c [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] e7b2701584b0f8497d42fd73368dd40686b1c29edc31325acfcb9669c2c41745 [INFO] running `Command { std: "docker" "start" "-a" "e7b2701584b0f8497d42fd73368dd40686b1c29edc31325acfcb9669c2c41745", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling target-lexicon v0.12.13 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Compiling poker_environment v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> src/game/playlist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `deck` is never read [INFO] [stdout] --> src/game.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | River { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] 41 | deck: Deck, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BettingRound` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bet`, `table`, and `history` are never read [INFO] [stdout] --> src/game.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct Showdown { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 317 | pub players: (Vec, Vec), [INFO] [stdout] 318 | pub bet: (usize, usize), [INFO] [stdout] | ^^^ [INFO] [stdout] 319 | pub table: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 320 | pub history: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Showdown` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_len` is never used [INFO] [stdout] --> src/game/playlist.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Playlist { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn complete_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> src/game/playlist.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl <'a, T> Playlist { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 67 | pub fn peek_next(&'a self) -> &'a T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rules/deck.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Deck { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new() -> Deck { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 24 | impl PyPokerPlayerInfo { [INFO] [stdout] | ----------------- [INFO] [stdout] | | [INFO] [stdout] | `PyPokerPlayerInfo` is not local [INFO] [stdout] | `PyPokerPlayerInfo` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 151 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 152 | impl PyPokerGame { [INFO] [stdout] | ----------- [INFO] [stdout] | | [INFO] [stdout] | `PyPokerGame` is not local [INFO] [stdout] | `PyPokerGame` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.54s [INFO] running `Command { std: "docker" "inspect" "e7b2701584b0f8497d42fd73368dd40686b1c29edc31325acfcb9669c2c41745", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7b2701584b0f8497d42fd73368dd40686b1c29edc31325acfcb9669c2c41745", kill_on_drop: false }` [INFO] [stdout] e7b2701584b0f8497d42fd73368dd40686b1c29edc31325acfcb9669c2c41745 [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 05724cdd28727346708620b8189c655e5d79f934c4c6a5802ec27224b315bb3d [INFO] running `Command { std: "docker" "start" "-a" "05724cdd28727346708620b8189c655e5d79f934c4c6a5802ec27224b315bb3d", kill_on_drop: false }` [INFO] [stderr] Compiling poker_environment v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> src/game/playlist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `game` is never read [INFO] [stdout] --> src/tests.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | game = betting_round.update_state(Action::Fold); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `deck` is never read [INFO] [stdout] --> src/game.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | River { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] 41 | deck: Deck, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BettingRound` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bet` and `history` are never read [INFO] [stdout] --> src/game.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct Showdown { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 317 | pub players: (Vec, Vec), [INFO] [stdout] 318 | pub bet: (usize, usize), [INFO] [stdout] | ^^^ [INFO] [stdout] 319 | pub table: Vec, [INFO] [stdout] 320 | pub history: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Showdown` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_len` is never used [INFO] [stdout] --> src/game/playlist.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Playlist { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn complete_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> src/game/playlist.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl <'a, T> Playlist { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 67 | pub fn peek_next(&'a self) -> &'a T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rules/deck.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Deck { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new() -> Deck { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 24 | impl PyPokerPlayerInfo { [INFO] [stdout] | ----------------- [INFO] [stdout] | | [INFO] [stdout] | `PyPokerPlayerInfo` is not local [INFO] [stdout] | `PyPokerPlayerInfo` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 151 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 152 | impl PyPokerGame { [INFO] [stdout] | ----------- [INFO] [stdout] | | [INFO] [stdout] | `PyPokerGame` is not local [INFO] [stdout] | `PyPokerGame` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.87s [INFO] running `Command { std: "docker" "inspect" "05724cdd28727346708620b8189c655e5d79f934c4c6a5802ec27224b315bb3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05724cdd28727346708620b8189c655e5d79f934c4c6a5802ec27224b315bb3d", kill_on_drop: false }` [INFO] [stdout] 05724cdd28727346708620b8189c655e5d79f934c4c6a5802ec27224b315bb3d [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+311784882baa42a9638298cb325fa01a062c9d0f" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 6fa604e3c831927d618b227b87850718afa1b08c049130e7cd9a2c553ec21b11 [INFO] running `Command { std: "docker" "start" "-a" "6fa604e3c831927d618b227b87850718afa1b08c049130e7cd9a2c553ec21b11", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::iter::from_fn` [INFO] [stderr] --> src/game/playlist.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::iter::from_fn; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `game` is never read [INFO] [stderr] --> src/tests.rs:183:17 [INFO] [stderr] | [INFO] [stderr] 183 | game = betting_round.update_state(Action::Fold); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `deck` is never read [INFO] [stderr] --> src/game.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 40 | River { [INFO] [stderr] | ----- field in this variant [INFO] [stderr] 41 | deck: Deck, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BettingRound` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `bet` and `history` are never read [INFO] [stderr] --> src/game.rs:318:9 [INFO] [stderr] | [INFO] [stderr] 316 | pub struct Showdown { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 317 | pub players: (Vec, Vec), [INFO] [stderr] 318 | pub bet: (usize, usize), [INFO] [stderr] | ^^^ [INFO] [stderr] 319 | pub table: Vec, [INFO] [stderr] 320 | pub history: Vec [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Showdown` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `complete_len` is never used [INFO] [stderr] --> src/game/playlist.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl Playlist { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn complete_len(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `peek_next` is never used [INFO] [stderr] --> src/game/playlist.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 66 | impl <'a, T> Playlist { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] 67 | pub fn peek_next(&'a self) -> &'a T { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/rules/deck.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl Deck { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 14 | pub fn new() -> Deck { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 24 | impl PyPokerPlayerInfo { [INFO] [stderr] | ----------------- [INFO] [stderr] | | [INFO] [stderr] | `PyPokerPlayerInfo` is not local [INFO] [stderr] | `PyPokerPlayerInfo` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:151:1 [INFO] [stderr] | [INFO] [stderr] 151 | #[pymethods] [INFO] [stderr] | -^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `PyClassImplCollector` is not local [INFO] [stderr] | `PyClassNewTextSignature` is not local [INFO] [stderr] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stderr] 152 | impl PyPokerGame { [INFO] [stderr] | ----------- [INFO] [stderr] | | [INFO] [stderr] | `PyPokerGame` is not local [INFO] [stderr] | `PyPokerGame` is not local [INFO] [stderr] | [INFO] [stderr] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `poker_environment` (lib test) generated 9 warnings (run `cargo fix --lib -p poker_environment --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/poker_environment/88cb3c4d60372d67/deps/poker_environment-88cb3c4d60372d67) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test tests::test_fold_bar_one ... ok [INFO] [stdout] test tests::test_random ... ok [INFO] [stdout] test tests::test_all_call ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::test_all_call stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'tests::test_all_call' (16) panicked at src/tests.rs:55:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 24 [INFO] [stdout] right: 23 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635840c97da2 - std[7ec1163218fd4288]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x635840c97da2 - std[7ec1163218fd4288]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x635840c97da2 - std[7ec1163218fd4288]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/backtrace.rs:68:9 [INFO] [stdout] 3: 0x635840c97da2 - <::print::DisplayBacktrace as core[784384805ecffc2c]::fmt::Display>::fmt [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/backtrace.rs:38:26 [INFO] [stdout] 4: 0x635840cacfe7 - ::fmt [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x635840cacfe7 - core[784384805ecffc2c]::fmt::write [INFO] [stdout] 6: 0x635840c9cbe6 - std[7ec1163218fd4288]::io::default_write_fmt::> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/io/mod.rs:614:11 [INFO] [stdout] 7: 0x635840c9cbe6 - as std[7ec1163218fd4288]::io::Write>::write_fmt [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/io/mod.rs:1969:13 [INFO] [stdout] 8: 0x635840c7654f - ::print [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/backtrace.rs:41:9 [INFO] [stdout] 9: 0x635840c7654f - std[7ec1163218fd4288]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x635840c90069 - std[7ec1163218fd4288]::panicking::default_hook [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x635840bed1be - core[784384805ecffc2c]::ops::function::Fn<(&'a std[7ec1163218fd4288]::panic::PanicHookInfo<'b>,), Output = ()> + core[784384805ecffc2c]::marker::Sync + core[784384805ecffc2c]::marker::Send> as core[784384805ecffc2c]::ops::function::Fn<(&std[7ec1163218fd4288]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x635840bed1be - test[370c4ac83c3338cc]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x635840c90222 - core[784384805ecffc2c]::ops::function::Fn<(&'a std[7ec1163218fd4288]::panic::PanicHookInfo<'b>,), Output = ()> + core[784384805ecffc2c]::marker::Sync + core[784384805ecffc2c]::marker::Send> as core[784384805ecffc2c]::ops::function::Fn<(&std[7ec1163218fd4288]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x635840c90222 - std[7ec1163218fd4288]::panicking::panic_with_hook [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x635840c76608 - std[7ec1163218fd4288]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x635840c6b769 - std[7ec1163218fd4288]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/backtrace.rs:176:18 [INFO] [stdout] 17: 0x635840c7753d - __rustc[cbcfe5aadef28f7f]::rust_begin_unwind [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x635840cad68c - core[784384805ecffc2c]::panicking::panic_fmt [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x635840cad543 - core[784384805ecffc2c]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x635840ca964d - core[784384805ecffc2c]::panicking::assert_failed:: [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x635840bcdb62 - poker_environment[fe4bcde21e037eae]::tests::test_all_call [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:55:5 [INFO] [stdout] 22: 0x635840bcbe27 - poker_environment[fe4bcde21e037eae]::tests::test_all_call::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:11:19 [INFO] [stdout] 23: 0x635840bb79f6 - >::call_once [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x635840be14eb - core[784384805ecffc2c]::result::Result<(), alloc[a1c94c07e218b93e]::string::String> as core[784384805ecffc2c]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x635840be14eb - test[370c4ac83c3338cc]::__rust_begin_short_backtrace::, fn() -> core[784384805ecffc2c]::result::Result<(), alloc[a1c94c07e218b93e]::string::String>> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x635840beddca - test[370c4ac83c3338cc]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x635840beddca - as core[784384805ecffc2c]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x635840beddca - std[7ec1163218fd4288]::panicking::catch_unwind::do_call::, core[784384805ecffc2c]::result::Result<(), alloc[a1c94c07e218b93e]::string::String>> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x635840beddca - std[7ec1163218fd4288]::panicking::catch_unwind::, core[784384805ecffc2c]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x635840beddca - std[7ec1163218fd4288]::panic::catch_unwind::, core[784384805ecffc2c]::result::Result<(), alloc[a1c94c07e218b93e]::string::String>> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x635840beddca - test[370c4ac83c3338cc]::run_test_in_process [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x635840beddca - test[370c4ac83c3338cc]::run_test::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x635840be8264 - test[370c4ac83c3338cc]::run_test::{closure#1} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x635840be8264 - std[7ec1163218fd4288]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/backtrace.rs:160:18 [INFO] [stdout] 35: 0x635840bf08c2 - std[7ec1163218fd4288]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/thread/lifecycle.rs:92:13 [INFO] [stdout] 36: 0x635840bf08c2 - ::{closure#1}::{closure#0}> as core[784384805ecffc2c]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x635840bf08c2 - std[7ec1163218fd4288]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:581:40 [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] 38: 0x635840bf08c2 - std[7ec1163218fd4288]::panicking::catch_unwind::<(), core[784384805ecffc2c]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x635840bf08c2 - std[7ec1163218fd4288]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x635840bf08c2 - std[7ec1163218fd4288]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/thread/lifecycle.rs:90:26 [INFO] [stdout] 41: 0x635840bf08c2 - ::{closure#1} as core[784384805ecffc2c]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x635840c9764f - + core[784384805ecffc2c]::marker::Send> as core[784384805ecffc2c]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x635840c9764f - ::new::thread_start [INFO] [stdout] at /rustc/311784882baa42a9638298cb325fa01a062c9d0f/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x7077751edaa4 - [INFO] [stdout] 45: 0x70777527aa64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::test_all_call [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6fa604e3c831927d618b227b87850718afa1b08c049130e7cd9a2c553ec21b11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fa604e3c831927d618b227b87850718afa1b08c049130e7cd9a2c553ec21b11", kill_on_drop: false }` [INFO] [stdout] 6fa604e3c831927d618b227b87850718afa1b08c049130e7cd9a2c553ec21b11