[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#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-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 cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.195 [INFO] [stderr] Downloaded openssl-sys v0.9.99 [INFO] [stderr] Downloaded hermit-abi v0.3.4 [INFO] [stderr] Downloaded smallvec v1.12.0 [INFO] [stderr] Downloaded serde v1.0.195 [INFO] [stderr] Downloaded proc-macro2 v1.0.76 [INFO] [stderr] Downloaded serde_json v1.0.111 [INFO] [stderr] Downloaded openssl v0.10.63 [INFO] [stderr] Downloaded rustix v0.38.30 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d00fb6167d54571c7e6cb66f24d0df0236cbf72be1cd23d35881ad64dcad72b [INFO] running `Command { std: "docker" "start" "-a" "2d00fb6167d54571c7e6cb66f24d0df0236cbf72be1cd23d35881ad64dcad72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d00fb6167d54571c7e6cb66f24d0df0236cbf72be1cd23d35881ad64dcad72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d00fb6167d54571c7e6cb66f24d0df0236cbf72be1cd23d35881ad64dcad72b", kill_on_drop: false }` [INFO] [stdout] 2d00fb6167d54571c7e6cb66f24d0df0236cbf72be1cd23d35881ad64dcad72b [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74de587dd34bd3cca0f78561d2dd5da7da70d18b2f3719e80bff1030f3f32982 [INFO] running `Command { std: "docker" "start" "-a" "74de587dd34bd3cca0f78561d2dd5da7da70d18b2f3719e80bff1030f3f32982", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [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 bytes v1.5.0 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling openssl-sys v0.9.99 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.34s [INFO] running `Command { std: "docker" "inspect" "74de587dd34bd3cca0f78561d2dd5da7da70d18b2f3719e80bff1030f3f32982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74de587dd34bd3cca0f78561d2dd5da7da70d18b2f3719e80bff1030f3f32982", kill_on_drop: false }` [INFO] [stdout] 74de587dd34bd3cca0f78561d2dd5da7da70d18b2f3719e80bff1030f3f32982 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a36cf9a7f5adeba2dba8bb49531e434aae67ce739e0031cdfe470c25d633f613 [INFO] running `Command { std: "docker" "start" "-a" "a36cf9a7f5adeba2dba8bb49531e434aae67ce739e0031cdfe470c25d633f613", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "a36cf9a7f5adeba2dba8bb49531e434aae67ce739e0031cdfe470c25d633f613", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a36cf9a7f5adeba2dba8bb49531e434aae67ce739e0031cdfe470c25d633f613", kill_on_drop: false }` [INFO] [stdout] a36cf9a7f5adeba2dba8bb49531e434aae67ce739e0031cdfe470c25d633f613 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cfad5f3ea750e704401506368cfd298d4e288818cab77d3ada6b8587d9aee5ad [INFO] running `Command { std: "docker" "start" "-a" "cfad5f3ea750e704401506368cfd298d4e288818cab77d3ada6b8587d9aee5ad", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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.20s [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 tests::test_player_to_string ... ok [INFO] [stdout] test utils::helper::tests::test_valid_rng ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cfad5f3ea750e704401506368cfd298d4e288818cab77d3ada6b8587d9aee5ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfad5f3ea750e704401506368cfd298d4e288818cab77d3ada6b8587d9aee5ad", kill_on_drop: false }` [INFO] [stdout] cfad5f3ea750e704401506368cfd298d4e288818cab77d3ada6b8587d9aee5ad