[INFO] cloning repository https://github.com/smolkov/chat_async [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smolkov/chat_async" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolkov%2Fchat_async", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolkov%2Fchat_async'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05654861858c5858509f178381ce0a6eacbed05d [INFO] checking smolkov/chat_async against master#fe55364329579d361b1ab565728bc033a7dba07e for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolkov%2Fchat_async" "/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/smolkov/chat_async [INFO] finished tweaking git repo https://github.com/smolkov/chat_async [INFO] tweaked toml for git repo https://github.com/smolkov/chat_async written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/smolkov/chat_async on toolchain fe55364329579d361b1ab565728bc033a7dba07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/smolkov/chat_async 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" "+fe55364329579d361b1ab565728bc033a7dba07e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f3dd92b9a5ce02cb5e8fa20cf76aefd0e7cc7b7996c407ab0f795d53ac7df90 [INFO] running `Command { std: "docker" "start" "-a" "7f3dd92b9a5ce02cb5e8fa20cf76aefd0e7cc7b7996c407ab0f795d53ac7df90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f3dd92b9a5ce02cb5e8fa20cf76aefd0e7cc7b7996c407ab0f795d53ac7df90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f3dd92b9a5ce02cb5e8fa20cf76aefd0e7cc7b7996c407ab0f795d53ac7df90", kill_on_drop: false }` [INFO] [stdout] 7f3dd92b9a5ce02cb5e8fa20cf76aefd0e7cc7b7996c407ab0f795d53ac7df90 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1af7a60d93e4668ab23fa69e929e2a5609ae66331a493d8b20bb8a25867cf345 [INFO] running `Command { std: "docker" "start" "-a" "1af7a60d93e4668ab23fa69e929e2a5609ae66331a493d8b20bb8a25867cf345", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking serde v1.0.204 [INFO] [stderr] Checking serde_json v1.0.120 [INFO] [stderr] Checking chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/message.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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 imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/message.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/room.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/room.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/state.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/state.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `broadcast` [INFO] [stdout] --> src/state.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::{broadcast, Mutex, RwLock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::message::Message` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `broadcast` [INFO] [stdout] --> src/state.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::{broadcast, Mutex, RwLock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::message::Message` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any` [INFO] [stdout] --> src/bin/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any, str::FromStr}; [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 imports: `broadcast` and `mpsc` [INFO] [stdout] --> src/bin/server.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | sync::{broadcast, mpsc}, [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any` [INFO] [stdout] --> src/bin/server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any, str::FromStr}; [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 imports: `broadcast` and `mpsc` [INFO] [stdout] --> src/bin/server.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | sync::{broadcast, mpsc}, [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/bin/server.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | Message::Text(msg) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/bin/server.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | Message::ChangeRoom(room) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/bin/server.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | Message::Text(msg) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/bin/server.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | Message::ChangeRoom(room) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/server.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 81 | / loop { [INFO] [stdout] 82 | | if let Ok((socket, addr)) = listener.accept().await { [INFO] [stdout] 83 | | let session = Session { [INFO] [stdout] 84 | | stream: socket, [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 96 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/bin/server.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | if let Ok((socket, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/bin/server.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | let err = process(session).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut listener = TcpListener::bind("127.0.0.1:3000").await?; [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: unreachable expression [INFO] [stdout] --> src/bin/server.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 81 | / loop { [INFO] [stdout] 82 | | if let Ok((socket, addr)) = listener.accept().await { [INFO] [stdout] 83 | | let session = Session { [INFO] [stdout] 84 | | stream: socket, [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 96 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/bin/server.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | if let Ok((socket, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/bin/server.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | let err = process(session).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut listener = TcpListener::bind("127.0.0.1:3000").await?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/bin/server.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 14 | user: 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: method `process_message` is never used [INFO] [stdout] --> src/bin/server.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl Session { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn process_message(&mut self, message: Message) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/bin/server.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 14 | user: 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: method `process_message` is never used [INFO] [stdout] --> src/bin/server.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl Session { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn process_message(&mut self, message: Message) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.18s [INFO] running `Command { std: "docker" "inspect" "1af7a60d93e4668ab23fa69e929e2a5609ae66331a493d8b20bb8a25867cf345", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1af7a60d93e4668ab23fa69e929e2a5609ae66331a493d8b20bb8a25867cf345", kill_on_drop: false }` [INFO] [stdout] 1af7a60d93e4668ab23fa69e929e2a5609ae66331a493d8b20bb8a25867cf345