[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 master#198328ad7960b1bece0dc48496bff6c62dd5d339 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dthelegend/Poker-Environment on toolchain 198328ad7960b1bece0dc48496bff6c62dd5d339 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "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" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unindent v0.1.11 [INFO] [stderr] Downloaded pyo3-build-config v0.19.2 [INFO] [stderr] Downloaded pyo3-macros-backend v0.19.2 [INFO] [stderr] Downloaded pyo3-macros v0.19.2 [INFO] [stderr] Downloaded uuid v1.7.0 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded autocfg v1.1.0 [INFO] [stderr] Downloaded either v1.9.0 [INFO] [stderr] Downloaded smallvec v1.13.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.78 [INFO] [stderr] Downloaded target-lexicon v0.12.13 [INFO] [stderr] Downloaded pyo3-ffi v0.19.2 [INFO] [stderr] Downloaded memoffset v0.9.0 [INFO] [stderr] Downloaded pyo3 v0.19.2 [INFO] [stderr] Downloaded libc v0.2.152 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22d5621299a6c792dfcf73bc17c574a5ba79ce2cc0c25e2d4bc5755b566da076 [INFO] running `Command { std: "docker" "start" "-a" "22d5621299a6c792dfcf73bc17c574a5ba79ce2cc0c25e2d4bc5755b566da076", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22d5621299a6c792dfcf73bc17c574a5ba79ce2cc0c25e2d4bc5755b566da076", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22d5621299a6c792dfcf73bc17c574a5ba79ce2cc0c25e2d4bc5755b566da076", kill_on_drop: false }` [INFO] [stdout] 22d5621299a6c792dfcf73bc17c574a5ba79ce2cc0c25e2d4bc5755b566da076 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fdb5912902c5715301f14dee9f430a1f45cc650050ce8cee5bd6a91309f1a72 [INFO] running `Command { std: "docker" "start" "-a" "8fdb5912902c5715301f14dee9f430a1f45cc650050ce8cee5bd6a91309f1a72", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.13 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.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 scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling itertools v0.12.1 [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 parking_lot v0.12.1 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Compiling rand_chacha v0.3.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 17.91s [INFO] running `Command { std: "docker" "inspect" "8fdb5912902c5715301f14dee9f430a1f45cc650050ce8cee5bd6a91309f1a72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fdb5912902c5715301f14dee9f430a1f45cc650050ce8cee5bd6a91309f1a72", kill_on_drop: false }` [INFO] [stdout] 8fdb5912902c5715301f14dee9f430a1f45cc650050ce8cee5bd6a91309f1a72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9659fdd44014279f148c60d5bad4428d707164c95663d31f73decb8cccea97cc [INFO] running `Command { std: "docker" "start" "-a" "9659fdd44014279f148c60d5bad4428d707164c95663d31f73decb8cccea97cc", 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 2.01s [INFO] running `Command { std: "docker" "inspect" "9659fdd44014279f148c60d5bad4428d707164c95663d31f73decb8cccea97cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9659fdd44014279f148c60d5bad4428d707164c95663d31f73decb8cccea97cc", kill_on_drop: false }` [INFO] [stdout] 9659fdd44014279f148c60d5bad4428d707164c95663d31f73decb8cccea97cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 954f4b06828d6c255929778ec085c336dc5ebb2cd83aef85e42a852de34ff8d5 [INFO] running `Command { std: "docker" "start" "-a" "954f4b06828d6c255929778ec085c336dc5ebb2cd83aef85e42a852de34ff8d5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::iter::from_fn` [INFO] [stdout] [INFO] [stderr] --> src/game/playlist.rs:2:5 [INFO] [stdout] running 3 tests [INFO] [stderr] | [INFO] [stdout] test tests::test_fold_bar_one ... ok [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.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/poker_environment-7b3d93fbafb05f12) [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' (18) 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: 0x64f88374edc2 - std[5bcc0e71a8235ab5]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64f88374edc2 - std[5bcc0e71a8235ab5]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64f88374edc2 - std[5bcc0e71a8235ab5]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/backtrace.rs:68:9 [INFO] [stdout] 3: 0x64f88374edc2 - <::print::DisplayBacktrace as core[372fedceae7346d9]::fmt::Display>::fmt [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/backtrace.rs:38:26 [INFO] [stdout] 4: 0x64f883764007 - ::fmt [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x64f883764007 - core[372fedceae7346d9]::fmt::write [INFO] [stdout] 6: 0x64f883753c06 - std[5bcc0e71a8235ab5]::io::default_write_fmt::> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/io/mod.rs:614:11 [INFO] [stdout] 7: 0x64f883753c06 - as std[5bcc0e71a8235ab5]::io::Write>::write_fmt [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/io/mod.rs:1969:13 [INFO] [stdout] 8: 0x64f88372d56f - ::print [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/backtrace.rs:41:9 [INFO] [stdout] 9: 0x64f88372d56f - std[5bcc0e71a8235ab5]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x64f8837470d9 - std[5bcc0e71a8235ab5]::panicking::default_hook [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x64f8836a41ce - core[372fedceae7346d9]::ops::function::Fn<(&'a std[5bcc0e71a8235ab5]::panic::PanicHookInfo<'b>,), Output = ()> + core[372fedceae7346d9]::marker::Send + core[372fedceae7346d9]::marker::Sync> as core[372fedceae7346d9]::ops::function::Fn<(&std[5bcc0e71a8235ab5]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x64f8836a41ce - test[ed9e78a9c2b5b40d]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64f883747292 - core[372fedceae7346d9]::ops::function::Fn<(&'a std[5bcc0e71a8235ab5]::panic::PanicHookInfo<'b>,), Output = ()> + core[372fedceae7346d9]::marker::Send + core[372fedceae7346d9]::marker::Sync> as core[372fedceae7346d9]::ops::function::Fn<(&std[5bcc0e71a8235ab5]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x64f883747292 - std[5bcc0e71a8235ab5]::panicking::panic_with_hook [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x64f88372d628 - std[5bcc0e71a8235ab5]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x64f883722819 - std[5bcc0e71a8235ab5]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/backtrace.rs:176:18 [INFO] [stdout] 17: 0x64f88372e55d - __rustc[b94d33a91dc06419]::rust_begin_unwind [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x64f8837646ac - core[372fedceae7346d9]::panicking::panic_fmt [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x64f883764563 - core[372fedceae7346d9]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x64f88376066d - core[372fedceae7346d9]::panicking::assert_failed:: [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x64f883685232 - poker_environment[59323457fa5d53e8]::tests::test_all_call [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:55:5 [INFO] [stdout] 22: 0x64f8836834f7 - poker_environment[59323457fa5d53e8]::tests::test_all_call::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:11:19 [INFO] [stdout] 23: 0x64f88366eab6 - >::call_once [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x64f8836984fb - core[372fedceae7346d9]::result::Result<(), alloc[35ef4788f429acbe]::string::String> as core[372fedceae7346d9]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x64f8836984fb - test[ed9e78a9c2b5b40d]::__rust_begin_short_backtrace::, fn() -> core[372fedceae7346d9]::result::Result<(), alloc[35ef4788f429acbe]::string::String>> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x64f8836a4dda - test[ed9e78a9c2b5b40d]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x64f8836a4dda - as core[372fedceae7346d9]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x64f8836a4dda - std[5bcc0e71a8235ab5]::panicking::catch_unwind::do_call::, core[372fedceae7346d9]::result::Result<(), alloc[35ef4788f429acbe]::string::String>> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x64f8836a4dda - std[5bcc0e71a8235ab5]::panicking::catch_unwind::, core[372fedceae7346d9]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x64f8836a4dda - std[5bcc0e71a8235ab5]::panic::catch_unwind::, core[372fedceae7346d9]::result::Result<(), alloc[35ef4788f429acbe]::string::String>> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x64f8836a4dda - test[ed9e78a9c2b5b40d]::run_test_in_process [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x64f8836a4dda - test[ed9e78a9c2b5b40d]::run_test::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x64f8836a0354 - test[ed9e78a9c2b5b40d]::run_test::{closure#1} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x64f8836a0354 - std[5bcc0e71a8235ab5]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/backtrace.rs:160:18 [INFO] [stdout] 35: 0x64f8836a78d2 - std[5bcc0e71a8235ab5]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/thread/lifecycle.rs:92:13 [INFO] [stdout] 36: 0x64f8836a78d2 - ::{closure#1}::{closure#0}> as core[372fedceae7346d9]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x64f8836a78d2 - std[5bcc0e71a8235ab5]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x64f8836a78d2 - std[5bcc0e71a8235ab5]::panicking::catch_unwind::<(), core[372fedceae7346d9]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x64f8836a78d2 - std[5bcc0e71a8235ab5]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x64f8836a78d2 - std[5bcc0e71a8235ab5]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/thread/lifecycle.rs:90:26 [INFO] [stdout] 41: 0x64f8836a78d2 - ::{closure#1} as core[372fedceae7346d9]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x64f88374e66f - + core[372fedceae7346d9]::marker::Send> as core[372fedceae7346d9]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x64f88374e66f - ::new::thread_start [INFO] [stdout] at /rustc/198328ad7960b1bece0dc48496bff6c62dd5d339/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x7688d4b1faa4 - [INFO] [stdout] 45: 0x7688d4baca64 - 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.20s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "954f4b06828d6c255929778ec085c336dc5ebb2cd83aef85e42a852de34ff8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "954f4b06828d6c255929778ec085c336dc5ebb2cd83aef85e42a852de34ff8d5", kill_on_drop: false }` [INFO] [stdout] 954f4b06828d6c255929778ec085c336dc5ebb2cd83aef85e42a852de34ff8d5