[INFO] cloning repository https://github.com/huytd/sergaem
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huytd/sergaem" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuytd%2Fsergaem", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuytd%2Fsergaem'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1bfdd4aa0a66f96af4d65a2a09927b3cb0d9313e
[INFO] checking huytd/sergaem against master#6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd for pr-153721
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuytd%2Fsergaem" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/huytd/sergaem
[INFO] finished tweaking git repo https://github.com/huytd/sergaem
[INFO] tweaked toml for git repo https://github.com/huytd/sergaem written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/huytd/sergaem on toolchain 6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/huytd/sergaem 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" "+6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `sergaem` (manifest) generated 1 warning
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded crossbeam-utils v0.5.0
[INFO] [stderr]   Downloaded crossbeam v0.4.1
[INFO] [stderr]   Downloaded crossbeam-deque v0.5.2
[INFO] [stderr]   Downloaded ws v0.7.9
[INFO] [stderr]   Downloaded crossbeam-epoch v0.5.2
[INFO] [stderr]   Downloaded crossbeam-epoch v0.6.1
[INFO] [stderr]   Downloaded crossbeam-channel v0.2.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414
[INFO] running `Command { std: "docker" "start" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414" "/opt/rustwide/cargo-home/bin/cargo" "+6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414" "/opt/rustwide/cargo-home/bin/cargo" "+6eda7419e71fdbc1185ed5be7e6bff1a474ab5cd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `sergaem` (manifest) generated 1 warning
[INFO] [stderr]    Compiling arrayvec v0.4.10
[INFO] [stderr]     Checking nodrop v0.1.13
[INFO] [stderr]     Checking memoffset v0.2.1
[INFO] [stderr]     Checking stable_deref_trait v1.1.1
[INFO] [stderr]     Checking crossbeam-utils v0.5.0
[INFO] [stderr]     Checking rand_core v0.3.1
[INFO] [stderr]     Checking crossbeam-utils v0.6.5
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]    Compiling parking_lot_core v0.3.1
[INFO] [stderr]     Checking rand v0.5.6
[INFO] [stderr]     Checking owning_ref v0.4.0
[INFO] [stderr]     Checking lock_api v0.1.5
[INFO] [stderr]     Checking ws v0.7.9
[INFO] [stderr]     Checking crossbeam-epoch v0.6.1
[INFO] [stderr]     Checking crossbeam-epoch v0.5.2
[INFO] [stderr]     Checking crossbeam-deque v0.5.2
[INFO] [stderr]     Checking parking_lot v0.6.4
[INFO] [stderr]     Checking crossbeam-channel v0.2.6
[INFO] [stderr]     Checking crossbeam v0.4.1
[INFO] [stderr]     Checking sergaem v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `CloseCode`, `Handler`, `Handshake`, `Message`, and `Result`
[INFO] [stdout]  --> src/engine/network.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ws::{CloseCode, Sender, Handler, Handshake, Message, Result};
[INFO] [stdout]   |          ^^^^^^^^^          ^^^^^^^  ^^^^^^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ws::util::Token`
[INFO] [stdout]  --> src/engine/client_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ws::util::Token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::thread;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/engine/game_manager.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |         for (_, mut game) in &mut self.games {
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/engine/game.rs:30:21
[INFO] [stdout]    |
[INFO] [stdout] 30 |                 let mut game_logic = GameLogic::new(self.clone());
[INFO] [stdout]    |                     ----^^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `clients` is never read
[INFO] [stdout]  --> src/engine/network.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct NetworkManager {
[INFO] [stdout]   |            -------------- field in this struct
[INFO] [stdout] 8 |     pub clients: Vec<Sender>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_total_clients`, `add_client`, and `remove_client` are never used
[INFO] [stdout]   --> src/engine/network.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl NetworkManager {
[INFO] [stdout]    | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn get_total_clients(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add_client(&mut self, client: Sender) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn remove_client(&mut self, token: Token) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `remove_player`, `get_games_list`, and `player_join_game` are never used
[INFO] [stdout]   --> src/engine/game_manager.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl GameManager {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn remove_player(&mut self, player_token: Token) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn get_games_list(&self) -> Vec<u64> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub fn player_join_game(&mut self, player: Sender, game_id: u64) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `kick` and `join` are never used
[INFO] [stdout]   --> src/engine/game.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl Game {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn kick(&mut self, player_token: Token) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn join(&mut self, player: Sender) -> bool {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CloseCode`, `Handler`, `Handshake`, `Message`, and `Result`
[INFO] [stdout]  --> src/engine/network.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ws::{CloseCode, Sender, Handler, Handshake, Message, Result};
[INFO] [stdout]   |          ^^^^^^^^^          ^^^^^^^  ^^^^^^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ws::util::Token`
[INFO] [stdout]  --> src/engine/client_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ws::util::Token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::thread;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/engine/game.rs:72:13
[INFO] [stdout]    |
[INFO] [stdout] 72 |             player.send(Message::from(msg));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 72 |             let _ = player.send(Message::from(msg));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/engine/game_manager.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |         for (_, mut game) in &mut self.games {
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/engine/game.rs:30:21
[INFO] [stdout]    |
[INFO] [stdout] 30 |                 let mut game_logic = GameLogic::new(self.clone());
[INFO] [stdout]    |                     ----^^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `clients` is never read
[INFO] [stdout]  --> src/engine/network.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct NetworkManager {
[INFO] [stdout]   |            -------------- field in this struct
[INFO] [stdout] 8 |     pub clients: Vec<Sender>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_total_clients`, `add_client`, and `remove_client` are never used
[INFO] [stdout]   --> src/engine/network.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl NetworkManager {
[INFO] [stdout]    | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn get_total_clients(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add_client(&mut self, client: Sender) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn remove_client(&mut self, token: Token) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `remove_player`, `get_games_list`, and `player_join_game` are never used
[INFO] [stdout]   --> src/engine/game_manager.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl GameManager {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn remove_player(&mut self, player_token: Token) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn get_games_list(&self) -> Vec<u64> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub fn player_join_game(&mut self, player: Sender, game_id: u64) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `kick` and `join` are never used
[INFO] [stdout]   --> src/engine/game.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl Game {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn kick(&mut self, player_token: Token) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn join(&mut self, player: Sender) -> bool {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/engine/game.rs:72:13
[INFO] [stdout]    |
[INFO] [stdout] 72 |             player.send(Message::from(msg));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 72 |             let _ = player.send(Message::from(msg));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.47s
[INFO] running `Command { std: "docker" "inspect" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414", kill_on_drop: false }`
[INFO] [stdout] 83410feb29d74ef32de02d7edbbaee347d5444e893b67d943acacaf7cb110414
