[INFO] cloning repository https://github.com/dalenguyen/target-proximity-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dalenguyen/target-proximity-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdalenguyen%2Ftarget-proximity-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdalenguyen%2Ftarget-proximity-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 29d552ebc14f606f2cb7de96cf5054b0796d2f9a [INFO] testing dalenguyen/target-proximity-game against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdalenguyen%2Ftarget-proximity-game" "/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/dalenguyen/target-proximity-game [INFO] finished tweaking git repo https://github.com/dalenguyen/target-proximity-game [INFO] tweaked toml for git repo https://github.com/dalenguyen/target-proximity-game written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dalenguyen/target-proximity-game on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dalenguyen/target-proximity-game 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e5393c2ed038f5d74ac393d16690a22c3eca39586f41557660b896977cd08ff [INFO] running `Command { std: "docker" "start" "-a" "7e5393c2ed038f5d74ac393d16690a22c3eca39586f41557660b896977cd08ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e5393c2ed038f5d74ac393d16690a22c3eca39586f41557660b896977cd08ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e5393c2ed038f5d74ac393d16690a22c3eca39586f41557660b896977cd08ff", kill_on_drop: false }` [INFO] [stdout] 7e5393c2ed038f5d74ac393d16690a22c3eca39586f41557660b896977cd08ff [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b14ff680d8d52f9b407c9dd3d58e05c44b0785ca552a40b826bc7736e68b5d5b [INFO] running `Command { std: "docker" "start" "-a" "b14ff680d8d52f9b407c9dd3d58e05c44b0785ca552a40b826bc7736e68b5d5b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.99 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.24 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.23 [INFO] [stderr] Compiling target-proximity-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `num_players` is never read [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut num_players = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_number_async` is never used [INFO] [stdout] --> src/utils/helper.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | pub (crate) async fn generate_number_async(max_range: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.74s [INFO] running `Command { std: "docker" "inspect" "b14ff680d8d52f9b407c9dd3d58e05c44b0785ca552a40b826bc7736e68b5d5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b14ff680d8d52f9b407c9dd3d58e05c44b0785ca552a40b826bc7736e68b5d5b", kill_on_drop: false }` [INFO] [stdout] b14ff680d8d52f9b407c9dd3d58e05c44b0785ca552a40b826bc7736e68b5d5b [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08d4a77922bf9de81457274f0e8020970ade4eb17bfba8c8d44f79e862defde9 [INFO] running `Command { std: "docker" "start" "-a" "08d4a77922bf9de81457274f0e8020970ade4eb17bfba8c8d44f79e862defde9", kill_on_drop: false }` [INFO] [stderr] Compiling target-proximity-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `num_players` is never read [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut num_players = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:138:50 [INFO] [stdout] | [INFO] [stdout] 138 | players_proximities.sort_by_key(|&(_,v | v) | v); [INFO] [stdout] | - ^ no value can reach this [INFO] [stdout] | | [INFO] [stdout] | matches any value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_number_async` is never used [INFO] [stdout] --> src/utils/helper.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | pub (crate) async fn generate_number_async(max_range: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "08d4a77922bf9de81457274f0e8020970ade4eb17bfba8c8d44f79e862defde9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08d4a77922bf9de81457274f0e8020970ade4eb17bfba8c8d44f79e862defde9", kill_on_drop: false }` [INFO] [stdout] 08d4a77922bf9de81457274f0e8020970ade4eb17bfba8c8d44f79e862defde9 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 66329124f4c09739f18531ffcaf58d418d962b37b6dabb36e7d46586e0ea4696 [INFO] running `Command { std: "docker" "start" "-a" "66329124f4c09739f18531ffcaf58d418d962b37b6dabb36e7d46586e0ea4696", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `num_players` is never read [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let mut num_players = 0; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/main.rs:138:50 [INFO] [stderr] | [INFO] [stderr] 138 | players_proximities.sort_by_key(|&(_,v | v) | v); [INFO] [stderr] | - ^ no value can reach this [INFO] [stderr] | | [INFO] [stderr] | matches any value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `generate_number_async` is never used [INFO] [stderr] --> src/utils/helper.rs:13:22 [INFO] [stderr] | [INFO] [stderr] 13 | pub (crate) async fn generate_number_async(max_range: u32) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `target-proximity-game` (bin "target-proximity-game" test) generated 3 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/target_proximity_game-cc75f8288d67d98b) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test tests::test_create_max_range ... ok [INFO] [stdout] test tests::test_get_winner_from_players_proximities ... ok [INFO] [stdout] test utils::helper::tests::test_valid_rng ... ok [INFO] [stdout] test tests::test_player_to_string ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "66329124f4c09739f18531ffcaf58d418d962b37b6dabb36e7d46586e0ea4696", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66329124f4c09739f18531ffcaf58d418d962b37b6dabb36e7d46586e0ea4696", kill_on_drop: false }` [INFO] [stdout] 66329124f4c09739f18531ffcaf58d418d962b37b6dabb36e7d46586e0ea4696