[INFO] cloning repository https://github.com/Sigeth/chatserver-lab [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sigeth/chatserver-lab" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSigeth%2Fchatserver-lab", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSigeth%2Fchatserver-lab'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1158a8a6072e0881c2a99e34ac377e973f270699 [INFO] building Sigeth/chatserver-lab against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSigeth%2Fchatserver-lab" "/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/Sigeth/chatserver-lab [INFO] finished tweaking git repo https://github.com/Sigeth/chatserver-lab [INFO] tweaked toml for git repo https://github.com/Sigeth/chatserver-lab written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Sigeth/chatserver-lab 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/Sigeth/chatserver-lab 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-attributes v1.1.2 [INFO] [stderr] Downloaded futures-lite v2.5.0 [INFO] [stderr] Downloaded foldhash v0.1.3 [INFO] [stderr] Downloaded commoncrypto-sys v0.2.0 [INFO] [stderr] Downloaded commoncrypto v0.2.0 [INFO] [stderr] Downloaded value-bag v1.10.0 [INFO] [stderr] Downloaded crypto-hash v0.3.4 [INFO] [stderr] Downloaded async-std v1.13.0 [INFO] [stderr] Downloaded ratatui v0.24.0 [INFO] [stderr] Downloaded crossterm v0.25.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] a3bac24b4c001820f3a4ab207c6833aee85472979a4289bd58e277ee953e9c93 [INFO] running `Command { std: "docker" "start" "-a" "a3bac24b4c001820f3a4ab207c6833aee85472979a4289bd58e277ee953e9c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3bac24b4c001820f3a4ab207c6833aee85472979a4289bd58e277ee953e9c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3bac24b4c001820f3a4ab207c6833aee85472979a4289bd58e277ee953e9c93", kill_on_drop: false }` [INFO] [stdout] a3bac24b4c001820f3a4ab207c6833aee85472979a4289bd58e277ee953e9c93 [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] 5c7b19b340a7627a36396151b0118b24cb0bc3fba236941bf6890a311df5453e [INFO] running `Command { std: "docker" "start" "-a" "5c7b19b340a7627a36396151b0118b24cb0bc3fba236941bf6890a311df5453e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling value-bag v1.10.0 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling futures-lite v2.5.0 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling foldhash v0.1.3 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling itoa v1.0.13 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ratatui v0.24.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling crypto-hash v0.3.4 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling chatproto v0.1.0 (/opt/rustwide/workdir/chatproto) [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use byteorder::{BigEndian, LittleEndian, ReadBytesExt}; [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: `async_std::sync::RwLock` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `select` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, select}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullyQualifiedMessage` and `MAILBOX_SIZE` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | core::{MessageServer, SpamChecker, MAILBOX_SIZE}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | messages::{ [INFO] [stdout] 13 | ClientError, ClientId, ClientMessage, ClientPollReply, ClientReply, FullyQualifiedMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Outgoing` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::messages::{Outgoing, ServerMessage, ServerReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | for i in 0..clients_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 230 | for _i in 0..clients_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 230 - for i in 0..clients_len as usize { [INFO] [stdout] 230 + for core::MAILBOX_SIZE in 0..clients_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | for i in 0..user_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | for _i in 0..user_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 265 - for i in 0..user_len as usize { [INFO] [stdout] 265 + for core::MAILBOX_SIZE in 0..user_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rd` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:46 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:39 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:56 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checker` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:57 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sequence` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | sequence: Sequence, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:56 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | async fn client_poll(&self, client: ClientId) -> ClientPollReply { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | async fn handle_server_message(&self, msg: ServerMessage) -> ServerReply { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | async fn route_to(&self, destination: ServerId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `checker` is never read [INFO] [stdout] --> chatproto/src/solutions/sample.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Server { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 23 | checker: C, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> chatproto/src/netproto/encode.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | for client_reply in m.clone() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[ClientReply]` does not implement `Clone`, so calling `clone` on `&[ClientReply]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stdout] warning: unused import: `SpamChecker` [INFO] [stdout] --> server/src/main.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use chatproto::core::{DefaultChecker, MessageServer, SpamChecker}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_cursor` is never used [INFO] [stdout] --> client/src/inputbox.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 8 | impl IBox { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn reset_cursor(&mut self) { [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 45.75s [INFO] running `Command { std: "docker" "inspect" "5c7b19b340a7627a36396151b0118b24cb0bc3fba236941bf6890a311df5453e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c7b19b340a7627a36396151b0118b24cb0bc3fba236941bf6890a311df5453e", kill_on_drop: false }` [INFO] [stdout] 5c7b19b340a7627a36396151b0118b24cb0bc3fba236941bf6890a311df5453e [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] ca8aaaee9b9cd4bdb7fab3e625fced4fefa900a0e4f543b63bba55b751df02dc [INFO] running `Command { std: "docker" "start" "-a" "ca8aaaee9b9cd4bdb7fab3e625fced4fefa900a0e4f543b63bba55b751df02dc", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use byteorder::{BigEndian, LittleEndian, ReadBytesExt}; [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: `async_std::sync::RwLock` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `select` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, select}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullyQualifiedMessage` and `MAILBOX_SIZE` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | core::{MessageServer, SpamChecker, MAILBOX_SIZE}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | messages::{ [INFO] [stdout] 13 | ClientError, ClientId, ClientMessage, ClientPollReply, ClientReply, FullyQualifiedMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Outgoing` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::messages::{Outgoing, ServerMessage, ServerReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | for i in 0..clients_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 230 | for _i in 0..clients_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 230 - for i in 0..clients_len as usize { [INFO] [stdout] 230 + for core::MAILBOX_SIZE in 0..clients_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | for i in 0..user_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | for _i in 0..user_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 265 - for i in 0..user_len as usize { [INFO] [stdout] 265 + for core::MAILBOX_SIZE in 0..user_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rd` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:46 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling chatproto v0.1.0 (/opt/rustwide/workdir/chatproto) [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:39 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:56 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checker` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:57 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sequence` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | sequence: Sequence, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:56 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | async fn client_poll(&self, client: ClientId) -> ClientPollReply { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | async fn handle_server_message(&self, msg: ServerMessage) -> ServerReply { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | async fn route_to(&self, destination: ServerId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `checker` is never read [INFO] [stdout] --> chatproto/src/solutions/sample.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Server { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 23 | checker: C, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> chatproto/src/netproto/encode.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | for client_reply in m.clone() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[ClientReply]` does not implement `Clone`, so calling `clone` on `&[ClientReply]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused import: `SpamChecker` [INFO] [stdout] --> server/src/main.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use chatproto::core::{DefaultChecker, MessageServer, SpamChecker}; [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: `BigEndian` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use byteorder::{BigEndian, LittleEndian, ReadBytesExt}; [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: `async_std::sync::RwLock` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `select` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, select}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `VecDeque` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | collections::{HashMap, HashSet, VecDeque}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullyQualifiedMessage` and `MAILBOX_SIZE` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | core::{MessageServer, SpamChecker, MAILBOX_SIZE}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | messages::{ [INFO] [stdout] 13 | ClientError, ClientId, ClientMessage, ClientPollReply, ClientReply, FullyQualifiedMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Outgoing` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::messages::{Outgoing, ServerMessage, ServerReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_cursor` is never used [INFO] [stdout] --> client/src/inputbox.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 8 | impl IBox { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn reset_cursor(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | for i in 0..clients_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 230 | for _i in 0..clients_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 230 - for i in 0..clients_len as usize { [INFO] [stdout] 230 + for core::MAILBOX_SIZE in 0..clients_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | for i in 0..user_len as usize { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | for _i in 0..user_len as usize { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAILBOX_SIZE` [INFO] [stdout] | [INFO] [stdout] 265 - for i in 0..user_len as usize { [INFO] [stdout] 265 + for core::MAILBOX_SIZE in 0..user_len as usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rd` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> chatproto/src/netproto/decode.rs:294:46 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn sequence(rd: &mut R, d: DEC) -> anyhow::Result> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:39 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chatproto/src/netproto/encode.rs:293:56 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn sequence(w: &mut W, m: &Sequence, f: ENC) -> std::io::Result<()> [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checker` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn new(checker: C, id: ServerId) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:41:57 [INFO] [stdout] | [INFO] [stdout] 41 | async fn register_local_client(&self, src_ip: IpAddr, name: String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sequence` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | sequence: Sequence, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sequence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:65:56 [INFO] [stdout] | [INFO] [stdout] 65 | async fn handle_client_message(&self, src: ClientId, msg: ClientMessage) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | async fn client_poll(&self, client: ClientId) -> ClientPollReply { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | async fn handle_server_message(&self, msg: ServerMessage) -> ServerReply { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> chatproto/src/solutions/sample.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | async fn route_to(&self, destination: ServerId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `checker` is never read [INFO] [stdout] --> chatproto/src/solutions/sample.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Server { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 23 | checker: C, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> chatproto/src/netproto/encode.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | for client_reply in m.clone() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[messages::ClientReply]` does not implement `Clone`, so calling `clone` on `&[messages::ClientReply]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.74s [INFO] running `Command { std: "docker" "inspect" "ca8aaaee9b9cd4bdb7fab3e625fced4fefa900a0e4f543b63bba55b751df02dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca8aaaee9b9cd4bdb7fab3e625fced4fefa900a0e4f543b63bba55b751df02dc", kill_on_drop: false }` [INFO] [stdout] ca8aaaee9b9cd4bdb7fab3e625fced4fefa900a0e4f543b63bba55b751df02dc