[INFO] cloning repository https://github.com/zihjielitw/movan-l1j-tw-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zihjielitw/movan-l1j-tw-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzihjielitw%2Fmovan-l1j-tw-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzihjielitw%2Fmovan-l1j-tw-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0193a2782acbfb5d84a40d3b1fa416752208d664 [INFO] building zihjielitw/movan-l1j-tw-rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzihjielitw%2Fmovan-l1j-tw-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zihjielitw/movan-l1j-tw-rust [INFO] finished tweaking git repo https://github.com/zihjielitw/movan-l1j-tw-rust [INFO] tweaked toml for git repo https://github.com/zihjielitw/movan-l1j-tw-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zihjielitw/movan-l1j-tw-rust on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zihjielitw/movan-l1j-tw-rust 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-trait v0.1.84 [INFO] [stderr] Downloaded bcrypt v0.16.0 [INFO] [stderr] Downloaded miette-derive v7.4.0 [INFO] [stderr] Downloaded tokio-graceful-shutdown v0.15.2 [INFO] [stderr] Downloaded syn v2.0.94 [INFO] [stderr] Downloaded miette v7.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed89fdedc6b9cf328cb8c28ffdbba78303bd56f8470f4894c4c6207cf26d3b4e [INFO] running `Command { std: "docker" "start" "-a" "ed89fdedc6b9cf328cb8c28ffdbba78303bd56f8470f4894c4c6207cf26d3b4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed89fdedc6b9cf328cb8c28ffdbba78303bd56f8470f4894c4c6207cf26d3b4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed89fdedc6b9cf328cb8c28ffdbba78303bd56f8470f4894c4c6207cf26d3b4e", kill_on_drop: false }` [INFO] [stdout] ed89fdedc6b9cf328cb8c28ffdbba78303bd56f8470f4894c4c6207cf26d3b4e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8361cf9a8751ee73a70c22cc446a61fe49fe5c9022b81b33c93cf67f7ad97b2a [INFO] running `Command { std: "docker" "start" "-a" "8361cf9a8751ee73a70c22cc446a61fe49fe5c9022b81b33c93cf67f7ad97b2a", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.94 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling winnow v0.6.22 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling rolling-file v0.2.0 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling bcrypt v0.16.0 [INFO] [stderr] Compiling tempfile v3.15.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [INFO] [stderr] Compiling miette-derive v7.4.0 [INFO] [stderr] Compiling async-trait v0.1.84 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling atomic v0.6.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling miette v7.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling sqlx-core v0.8.3 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling sqlx-postgres v0.8.3 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-graceful-shutdown v0.15.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.3 [INFO] [stderr] Compiling sqlx-macros v0.8.3 [INFO] [stderr] Compiling sqlx v0.8.3 [INFO] [stderr] Compiling movan-l1j-tw-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `REASON_USER_OR_PASS_WRONG` and `SLoginResult` [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game_server::server_packets::s_login_result::{SLoginResult, REASON_USER_OR_PASS_WRONG}; [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: `crate::game_server::client_packets::c_server_version::CServerVersion` [INFO] [stdout] --> src/game_server/services/account_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game_server::client_packets::c_server_version::CServerVersion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut response_packets: Vec = vec![]; [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: field `game` is never read [INFO] [stdout] --> src/config.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub game: ConfigGameNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_chat_level` is never read [INFO] [stdout] --> src/config.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ConfigGameNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 24 | pub global_chat_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_config` is never used [INFO] [stdout] --> src/config.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl GameConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_config() -> Option<&'static GameConfig> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_hex` is never read [INFO] [stdout] --> src/game_server/client_thread.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ClientThread { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | key_hex: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_client_version` and `tag` are never read [INFO] [stdout] --> src/game_server/client_packets/c_server_version.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CServerVersion { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 4 | current_client_version: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ip` and `tag` are never read [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CAuthLogin { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 8 | client_base_packet: ClientBasePacket, [INFO] [stdout] 9 | ip: String, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_language` is never read [INFO] [stdout] --> src/game_server/server_base_packet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ServerBasePacket { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 5 | buffer: BytesMut, [INFO] [stdout] 6 | client_language: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_p`, `write_l`, `write_exp`, `write_f`, `write_s`, and `write_byte` are never used [INFO] [stdout] --> src/game_server/server_base_packet.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ServerBasePacket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn write_p(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn write_l(&mut self, value: i64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn write_exp(&mut self, value: i64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn write_f(&mut self, value: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn write_s(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn write_byte(&mut self, value: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tag` is never read [INFO] [stdout] --> src/game_server/server_packets/s_server_version.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SServerVersion { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_LOGIN_OK` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const REASON_LOGIN_OK: i32 = 0x00; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCOUNT_ALREADY_EXISTS` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const REASON_ACCOUNT_ALREADY_EXISTS: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_USER_OR_PASS_WRONG` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REASON_USER_OR_PASS_WRONG: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCESS_FAILED` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const REASON_ACCESS_FAILED: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_PASS_WRONG` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const REASON_PASS_WRONG: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCOUNT_IN_USE` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const REASON_ACCOUNT_IN_USE: i32 = 0x16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_OUT_OF_GASH` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const REASON_OUT_OF_GASH: i32 = 0x16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SLoginResult` is never constructed [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SLoginResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_packets` are never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SLoginResult { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(reason: i32) -> SLoginResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_packets(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_id`, `acc`, and `pwd` are never read [INFO] [stdout] --> src/game_server/services/account_service.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | /** 使用者帳號唯一 ID */ [INFO] [stdout] 10 | pub account_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | /** 使用者帳號 */ [INFO] [stdout] 12 | pub acc: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | /** 使用者密碼 */ [INFO] [stdout] 14 | pub pwd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_valid` is never read [INFO] [stdout] --> src/game_server/services/account_service.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AccountService { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | /** 帳戶是否有效 (True 代表有效)- */ [INFO] [stdout] 19 | pub is_valid: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encode_password`, and `validate_password` are never used [INFO] [stdout] --> src/game_server/services/account_service.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AccountService { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 23 | [INFO] [stdout] 24 | pub fn new() -> AccountService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn encode_password(&self, raw_password: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn validate_password(&mut self, raw_password: String, hash_password: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "8361cf9a8751ee73a70c22cc446a61fe49fe5c9022b81b33c93cf67f7ad97b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8361cf9a8751ee73a70c22cc446a61fe49fe5c9022b81b33c93cf67f7ad97b2a", kill_on_drop: false }` [INFO] [stdout] 8361cf9a8751ee73a70c22cc446a61fe49fe5c9022b81b33c93cf67f7ad97b2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fdbea404cc02417079e23100fb0793f706a251a0e6c0e36260980671db75180 [INFO] running `Command { std: "docker" "start" "-a" "2fdbea404cc02417079e23100fb0793f706a251a0e6c0e36260980671db75180", kill_on_drop: false }` [INFO] [stderr] Compiling movan-l1j-tw-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `REASON_USER_OR_PASS_WRONG` and `SLoginResult` [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game_server::server_packets::s_login_result::{SLoginResult, REASON_USER_OR_PASS_WRONG}; [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: `crate::game_server::client_packets::c_server_version::CServerVersion` [INFO] [stdout] --> src/game_server/services/account_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game_server::client_packets::c_server_version::CServerVersion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut response_packets: Vec = vec![]; [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: field `game` is never read [INFO] [stdout] --> src/config.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub game: ConfigGameNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_chat_level` is never read [INFO] [stdout] --> src/config.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ConfigGameNode { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 24 | pub global_chat_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_config` is never used [INFO] [stdout] --> src/config.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl GameConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_config() -> Option<&'static GameConfig> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key_hex` is never read [INFO] [stdout] --> src/game_server/client_thread.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ClientThread { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | key_hex: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_client_version` and `tag` are never read [INFO] [stdout] --> src/game_server/client_packets/c_server_version.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CServerVersion { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 4 | current_client_version: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ip` and `tag` are never read [INFO] [stdout] --> src/game_server/client_packets/c_auth_login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CAuthLogin { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 8 | client_base_packet: ClientBasePacket, [INFO] [stdout] 9 | ip: String, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_language` is never read [INFO] [stdout] --> src/game_server/server_base_packet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ServerBasePacket { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 5 | buffer: BytesMut, [INFO] [stdout] 6 | client_language: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_p`, `write_l`, `write_exp`, `write_f`, `write_s`, and `write_byte` are never used [INFO] [stdout] --> src/game_server/server_base_packet.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ServerBasePacket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn write_p(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn write_l(&mut self, value: i64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn write_exp(&mut self, value: i64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn write_f(&mut self, value: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn write_s(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn write_byte(&mut self, value: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tag` is never read [INFO] [stdout] --> src/game_server/server_packets/s_server_version.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SServerVersion { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | tag: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_LOGIN_OK` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const REASON_LOGIN_OK: i32 = 0x00; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCOUNT_ALREADY_EXISTS` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const REASON_ACCOUNT_ALREADY_EXISTS: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_USER_OR_PASS_WRONG` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REASON_USER_OR_PASS_WRONG: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCESS_FAILED` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const REASON_ACCESS_FAILED: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_PASS_WRONG` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const REASON_PASS_WRONG: i32 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_ACCOUNT_IN_USE` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const REASON_ACCOUNT_IN_USE: i32 = 0x16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REASON_OUT_OF_GASH` is never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const REASON_OUT_OF_GASH: i32 = 0x16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SLoginResult` is never constructed [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SLoginResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_packets` are never used [INFO] [stdout] --> src/game_server/server_packets/s_login_result.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SLoginResult { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(reason: i32) -> SLoginResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_packets(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_id`, `acc`, and `pwd` are never read [INFO] [stdout] --> src/game_server/services/account_service.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | /** 使用者帳號唯一 ID */ [INFO] [stdout] 10 | pub account_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | /** 使用者帳號 */ [INFO] [stdout] 12 | pub acc: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | /** 使用者密碼 */ [INFO] [stdout] 14 | pub pwd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_valid` is never read [INFO] [stdout] --> src/game_server/services/account_service.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AccountService { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | /** 帳戶是否有效 (True 代表有效)- */ [INFO] [stdout] 19 | pub is_valid: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encode_password`, and `validate_password` are never used [INFO] [stdout] --> src/game_server/services/account_service.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AccountService { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 23 | [INFO] [stdout] 24 | pub fn new() -> AccountService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn encode_password(&self, raw_password: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn validate_password(&mut self, raw_password: String, hash_password: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "2fdbea404cc02417079e23100fb0793f706a251a0e6c0e36260980671db75180", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fdbea404cc02417079e23100fb0793f706a251a0e6c0e36260980671db75180", kill_on_drop: false }` [INFO] [stdout] 2fdbea404cc02417079e23100fb0793f706a251a0e6c0e36260980671db75180