[INFO] cloning repository https://github.com/zhyg021/lanMsg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhyg021/lanMsg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhyg021%2FlanMsg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhyg021%2FlanMsg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db2e2e6f94623ed756e13057cb1bc2066b22a35e [INFO] testing zhyg021/lanMsg against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhyg021%2FlanMsg" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zhyg021/lanMsg [INFO] finished tweaking git repo https://github.com/zhyg021/lanMsg [INFO] tweaked toml for git repo https://github.com/zhyg021/lanMsg written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zhyg021/lanMsg on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zhyg021/lanMsg 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] acbbdebbc6351c08f6f1919f4ed22a4e62eaea9eedf69a819536cb004b26e658 [INFO] running `Command { std: "docker" "start" "-a" "acbbdebbc6351c08f6f1919f4ed22a4e62eaea9eedf69a819536cb004b26e658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "acbbdebbc6351c08f6f1919f4ed22a4e62eaea9eedf69a819536cb004b26e658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acbbdebbc6351c08f6f1919f4ed22a4e62eaea9eedf69a819536cb004b26e658", kill_on_drop: false }` [INFO] [stdout] acbbdebbc6351c08f6f1919f4ed22a4e62eaea9eedf69a819536cb004b26e658 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eefa7f3858ef308f907c78b19a23d3235ba47232afd8c4b8c356485134a6d1d9 [INFO] running `Command { std: "docker" "start" "-a" "eefa7f3858ef308f907c78b19a23d3235ba47232afd8c4b8c356485134a6d1d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling lanMsg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/config.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, Ipv4Addr}, [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::protocol::extract_string_part` [INFO] [stdout] --> src/net.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::protocol::extract_string_part; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpListener` [INFO] [stdout] --> src/net.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, UdpSocket}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::EncodingConfig` [INFO] [stdout] --> src/protocol.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::config::EncodingConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::IpMsgServer` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use net::IpMsgServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `group` is never read [INFO] [stdout] --> src/protocol.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | let mut group = ""; [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: value assigned to `name` is never read [INFO] [stdout] --> src/protocol.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | let mut name = ""; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let (tx, mut rx) = mpsc::channel(100); [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/main.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | let mut input = input.trim().to_string(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/main.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let (tx, mut rx) = mpsc::channel(100); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `broadcast_addr` is never used [INFO] [stdout] --> src/config.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn broadcast_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_PORT` is never used [INFO] [stdout] --> src/net.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const FILE_PORT: u16 = 2426; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_online_users_basic` is never used [INFO] [stdout] --> src/net.rs:138:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl IpMsgServer { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn get_online_users_basic(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encode_with_config` is never used [INFO] [stdout] --> src/protocol.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl IpMsgPacket { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn encode_with_config(&self, config: &AppConfig) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_string_part` is never used [INFO] [stdout] --> src/protocol.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | pub(crate) fn extract_string_part(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPMSG_BR_ABSENCE` is never used [INFO] [stdout] --> src/protocol.rs:176:15 [INFO] [stdout] | [INFO] [stdout] 176 | pub const IPMSG_BR_ABSENCE: u32 = 0x00000004; //更改为离开状态 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE` is never used [INFO] [stdout] --> src/protocol.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | pub const FILE: u32 = 0x00000060; // 文件传输 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.30s [INFO] running `Command { std: "docker" "inspect" "eefa7f3858ef308f907c78b19a23d3235ba47232afd8c4b8c356485134a6d1d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eefa7f3858ef308f907c78b19a23d3235ba47232afd8c4b8c356485134a6d1d9", kill_on_drop: false }` [INFO] [stdout] eefa7f3858ef308f907c78b19a23d3235ba47232afd8c4b8c356485134a6d1d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 948e40d7cbe7595b4eb12e6d1dd78da413c6e75b8160a0cdcc073cb7070eea09 [INFO] running `Command { std: "docker" "start" "-a" "948e40d7cbe7595b4eb12e6d1dd78da413c6e75b8160a0cdcc073cb7070eea09", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling lanMsg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/config.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | net::{IpAddr, Ipv4Addr}, [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::protocol::extract_string_part` [INFO] [stdout] --> src/net.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::protocol::extract_string_part; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpListener` [INFO] [stdout] --> src/net.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::{TcpListener, UdpSocket}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::IpMsgServer` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use net::IpMsgServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `group` is never read [INFO] [stdout] --> src/protocol.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | let mut group = ""; [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: value assigned to `name` is never read [INFO] [stdout] --> src/protocol.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | let mut name = ""; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let (tx, mut rx) = mpsc::channel(100); [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/main.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | let mut input = input.trim().to_string(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/main.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let (tx, mut rx) = mpsc::channel(100); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `broadcast_addr` is never used [INFO] [stdout] --> src/config.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn broadcast_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_PORT` is never used [INFO] [stdout] --> src/net.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const FILE_PORT: u16 = 2426; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_online_users_basic` is never used [INFO] [stdout] --> src/net.rs:138:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl IpMsgServer { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn get_online_users_basic(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encode_with_config` is never used [INFO] [stdout] --> src/protocol.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl IpMsgPacket { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn encode_with_config(&self, config: &AppConfig) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_string_part` is never used [INFO] [stdout] --> src/protocol.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | pub(crate) fn extract_string_part(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IPMSG_BR_ABSENCE` is never used [INFO] [stdout] --> src/protocol.rs:176:15 [INFO] [stdout] | [INFO] [stdout] 176 | pub const IPMSG_BR_ABSENCE: u32 = 0x00000004; //更改为离开状态 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE` is never used [INFO] [stdout] --> src/protocol.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | pub const FILE: u32 = 0x00000060; // 文件传输 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.96s [INFO] running `Command { std: "docker" "inspect" "948e40d7cbe7595b4eb12e6d1dd78da413c6e75b8160a0cdcc073cb7070eea09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "948e40d7cbe7595b4eb12e6d1dd78da413c6e75b8160a0cdcc073cb7070eea09", kill_on_drop: false }` [INFO] [stdout] 948e40d7cbe7595b4eb12e6d1dd78da413c6e75b8160a0cdcc073cb7070eea09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 798abe0db1365026a068dcb41d08f0c98544a87584602d05dc35e9c87cb92e26 [INFO] running `Command { std: "docker" "start" "-a" "798abe0db1365026a068dcb41d08f0c98544a87584602d05dc35e9c87cb92e26", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Ipv4Addr` [INFO] [stderr] --> src/config.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | net::{IpAddr, Ipv4Addr}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::protocol::extract_string_part` [INFO] [stderr] --> src/net.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::protocol::extract_string_part; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TcpListener` [INFO] [stderr] --> src/net.rs:8:18 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio::net::{TcpListener, UdpSocket}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `net::IpMsgServer` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use net::IpMsgServer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `group` is never read [INFO] [stderr] --> src/protocol.rs:130:25 [INFO] [stderr] | [INFO] [stderr] 130 | let mut group = ""; [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: value assigned to `name` is never read [INFO] [stderr] --> src/protocol.rs:131:24 [INFO] [stderr] | [INFO] [stderr] 131 | let mut name = ""; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:132:22 [INFO] [stderr] | [INFO] [stderr] 132 | let (tx, mut rx) = mpsc::channel(100); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:150:21 [INFO] [stderr] | [INFO] [stderr] 150 | let mut input = input.trim().to_string(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rx` [INFO] [stderr] --> src/main.rs:132:22 [INFO] [stderr] | [INFO] [stderr] 132 | let (tx, mut rx) = mpsc::channel(100); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `broadcast_addr` is never used [INFO] [stderr] --> src/config.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 138 | impl AppConfig { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 170 | pub fn broadcast_addr(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `FILE_PORT` is never used [INFO] [stderr] --> src/net.rs:12:7 [INFO] [stderr] | [INFO] [stderr] 12 | const FILE_PORT: u16 = 2426; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_online_users_basic` is never used [INFO] [stderr] --> src/net.rs:138:18 [INFO] [stderr] | [INFO] [stderr] 29 | impl IpMsgServer { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 138 | pub async fn get_online_users_basic(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `encode_with_config` is never used [INFO] [stderr] --> src/protocol.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl IpMsgPacket { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn encode_with_config(&self, config: &AppConfig) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_string_part` is never used [INFO] [stderr] --> src/protocol.rs:182:15 [INFO] [stderr] | [INFO] [stderr] 182 | pub(crate) fn extract_string_part(data: &[u8]) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `IPMSG_BR_ABSENCE` is never used [INFO] [stderr] --> src/protocol.rs:176:15 [INFO] [stderr] | [INFO] [stderr] 176 | pub const IPMSG_BR_ABSENCE: u32 = 0x00000004; //更改为离开状态 [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `FILE` is never used [INFO] [stderr] --> src/protocol.rs:178:15 [INFO] [stderr] | [INFO] [stderr] 178 | pub const FILE: u32 = 0x00000060; // 文件传输 [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lanMsg` (bin "lanMsg" test) generated 16 warnings (run `cargo fix --bin "lanMsg" -p lanMsg --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/lanMsg-20738158d84d6dc4) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test protocol::tests::test_extract_string ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "798abe0db1365026a068dcb41d08f0c98544a87584602d05dc35e9c87cb92e26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "798abe0db1365026a068dcb41d08f0c98544a87584602d05dc35e9c87cb92e26", kill_on_drop: false }` [INFO] [stdout] 798abe0db1365026a068dcb41d08f0c98544a87584602d05dc35e9c87cb92e26