[INFO] cloning repository https://github.com/robinsonweng/irc_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robinsonweng/irc_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonweng%2Firc_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonweng%2Firc_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 770a77085cb4d39599506f3def9ea636a947f51b [INFO] checking robinsonweng/irc_server against master#27d8a577138c0d319a572cd1a464c2b755e577de for pr-118882 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonweng%2Firc_server" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinsonweng/irc_server on toolchain 27d8a577138c0d319a572cd1a464c2b755e577de [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+27d8a577138c0d319a572cd1a464c2b755e577de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinsonweng/irc_server [INFO] finished tweaking git repo https://github.com/robinsonweng/irc_server [INFO] tweaked toml for git repo https://github.com/robinsonweng/irc_server written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/robinsonweng/irc_server 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" "+27d8a577138c0d319a572cd1a464c2b755e577de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking robinsonweng/irc_server against try#8bdbfd41bed26c4938a9f14bd20556eac1de8437 for pr-118882 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonweng%2Firc_server" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinsonweng/irc_server on toolchain 8bdbfd41bed26c4938a9f14bd20556eac1de8437 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinsonweng/irc_server [INFO] finished tweaking git repo https://github.com/robinsonweng/irc_server [INFO] tweaked toml for git repo https://github.com/robinsonweng/irc_server written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/robinsonweng/irc_server 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" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking robinsonweng/irc_server against try#8bdbfd41bed26c4938a9f14bd20556eac1de8437 for pr-118882 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinsonweng%2Firc_server" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinsonweng/irc_server on toolchain 8bdbfd41bed26c4938a9f14bd20556eac1de8437 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinsonweng/irc_server [INFO] finished tweaking git repo https://github.com/robinsonweng/irc_server [INFO] tweaked toml for git repo https://github.com/robinsonweng/irc_server written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/robinsonweng/irc_server 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" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-signal v0.2.1 [INFO] [stderr] Downloaded async-executor v1.5.3 [INFO] [stderr] Downloaded watchexec v1.17.2 [INFO] [stderr] Downloaded async-process v1.8.0 [INFO] [stderr] Downloaded clearscreen v1.0.11 [INFO] [stderr] Downloaded cargo-watch v8.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb15674443c76d69ff749079d18afe2776900808d11d4926e9ee8bb517b6a50b [INFO] running `Command { std: "docker" "start" "-a" "bb15674443c76d69ff749079d18afe2776900808d11d4926e9ee8bb517b6a50b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb15674443c76d69ff749079d18afe2776900808d11d4926e9ee8bb517b6a50b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb15674443c76d69ff749079d18afe2776900808d11d4926e9ee8bb517b6a50b", kill_on_drop: false }` [INFO] [stdout] bb15674443c76d69ff749079d18afe2776900808d11d4926e9ee8bb517b6a50b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8bdbfd41bed26c4938a9f14bd20556eac1de8437" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc846ce61289d9fa134eabb0c4e561f8b294a2af2252375f67c168d25c224277 [INFO] running `Command { std: "docker" "start" "-a" "dc846ce61289d9fa134eabb0c4e561f8b294a2af2252375f67c168d25c224277", kill_on_drop: false }` [INFO] [stderr] warning: irc_server v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `cargo-watch` which is missing a lib target [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking aho-corasick v1.1.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Checking irc_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/command.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/server.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/command.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/server.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/irc/command.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_ip` [INFO] [stdout] --> src/irc/command.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/irc/command.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/irc/response.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nickname` [INFO] [stdout] --> src/irc/response.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nickname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/irc/response.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/irc/command.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_ip` [INFO] [stdout] --> src/irc/command.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/irc/command.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/irc/response.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nickname` [INFO] [stdout] --> src/irc/response.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nickname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/irc/response.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topics` and `user_amount` are never read [INFO] [stdout] --> src/irc/server.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Channel { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 46 | topics: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | user_amount: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/irc/command.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let context = raw_context.clone().to_string().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topics` and `user_amount` are never read [INFO] [stdout] --> src/irc/server.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Channel { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 46 | topics: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | user_amount: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/irc/command.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let context = raw_context.clone().to_string().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/command.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/server.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/command.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IrcReply` [INFO] [stdout] --> src/irc/server.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::irc::response::{IrcError, IrcReply}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/irc/command.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_ip` [INFO] [stdout] --> src/irc/command.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/irc/command.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/irc/response.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nickname` [INFO] [stdout] --> src/irc/response.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nickname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/irc/response.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/irc/command.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_ip` [INFO] [stdout] --> src/irc/command.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/irc/command.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/irc/response.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nickname` [INFO] [stdout] --> src/irc/response.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nickname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/irc/response.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_message(&self, hostname: &str, nickname: &str, body: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_ip` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let host_ip = stream.local_addr()?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_regex` [INFO] [stdout] --> src/main.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let channel_regex = r"^JOIN ([#|&]\w+)([,][#|&]\w+)?( \w+)?(,\w+)?"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_ip` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let host_ip = stream.local_addr()?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_regex` [INFO] [stdout] --> src/main.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let channel_regex = r"^JOIN ([#|&]\w+)([,][#|&]\w+)?( \w+)?(,\w+)?"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ping` and `wellcome` are never used [INFO] [stdout] --> src/irc/command.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl CommandHandler { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/irc/response.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum IrcReply { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | IsSupport = 5, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | [INFO] [stdout] 9 | ListStart = 321, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | List = 322, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Listend = 323, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | NoTopic = 331, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Topic = 332, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | NamReply = 353, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | EndOfNames = 366, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | MOTD = 372, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | MOTDStart = 375, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | EndOfMOTD = 376, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | UsersStart = 392, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | Users = 393, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | EndOfUsers = 394, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcReply` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSuchNick`, `NoSuchChannel`, `NoRecipent`, `NoTextTosend`, `NoNicknameGiven`, and `AlreadyRegistred` are never constructed [INFO] [stdout] --> src/irc/response.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum IrcError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 29 | NoSuchNick = 401, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | NoSuchChannel = 403, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | NoOrigin = 409, [INFO] [stdout] 32 | NoRecipent = 411, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | NoTextTosend = 412, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | NoNicknameGiven = 431, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | AlreadyRegistred = 462, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Offline` is never constructed [INFO] [stdout] --> src/irc/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum UserStatus { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | Online, [INFO] [stdout] 7 | Offline, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/irc/server.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_user_status` is never used [INFO] [stdout] --> src/irc/server.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Server { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_user_status(&mut self, source_ip: SocketAddr) -> UserStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:88:56 [INFO] [stdout] | [INFO] [stdout] 88 | println!("raw context: {}", raw_context.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let context = raw_context.clone().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/irc/command.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let context = raw_context.clone().to_string().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ping` and `wellcome` are never used [INFO] [stdout] --> src/irc/command.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl CommandHandler { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn ping(&self, server: &mut Server, source_ip: SocketAddr) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn wellcome(stream: TcpStream) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/irc/response.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum IrcReply { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | IsSupport = 5, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | [INFO] [stdout] 9 | ListStart = 321, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | List = 322, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Listend = 323, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | NoTopic = 331, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Topic = 332, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | NamReply = 353, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | EndOfNames = 366, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | MOTD = 372, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | MOTDStart = 375, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | EndOfMOTD = 376, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | UsersStart = 392, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | Users = 393, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | EndOfUsers = 394, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcReply` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSuchNick`, `NoSuchChannel`, `NoRecipent`, `NoTextTosend`, `NoNicknameGiven`, and `AlreadyRegistred` are never constructed [INFO] [stdout] --> src/irc/response.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum IrcError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 29 | NoSuchNick = 401, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | NoSuchChannel = 403, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | NoOrigin = 409, [INFO] [stdout] 32 | NoRecipent = 411, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | NoTextTosend = 412, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | NoNicknameGiven = 431, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | AlreadyRegistred = 462, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IrcError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Offline` is never constructed [INFO] [stdout] --> src/irc/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum UserStatus { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | Online, [INFO] [stdout] 7 | Offline, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/irc/server.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_user_status` is never used [INFO] [stdout] --> src/irc/server.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Server { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_user_status(&mut self, source_ip: SocketAddr) -> UserStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:88:56 [INFO] [stdout] | [INFO] [stdout] 88 | println!("raw context: {}", raw_context.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let context = raw_context.clone().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/irc/command.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | let context = raw_context.clone().to_string().replace("\r\n", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.08s [INFO] running `Command { std: "docker" "inspect" "dc846ce61289d9fa134eabb0c4e561f8b294a2af2252375f67c168d25c224277", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc846ce61289d9fa134eabb0c4e561f8b294a2af2252375f67c168d25c224277", kill_on_drop: false }` [INFO] [stdout] dc846ce61289d9fa134eabb0c4e561f8b294a2af2252375f67c168d25c224277