[INFO] cloning repository https://github.com/Tonyce/mds
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tonyce/mds" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyce%2Fmds", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyce%2Fmds'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 275e23c2a1045b26405b5e4c5e41966c54e1fb4f
[INFO] checking Tonyce/mds against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyce%2Fmds" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Tonyce/mds on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Tonyce/mds
[INFO] finished tweaking git repo https://github.com/Tonyce/mds
[INFO] tweaked toml for git repo https://github.com/Tonyce/mds written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/Tonyce/mds 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded which v4.1.0
[INFO] [stderr] Downloaded http-body v0.4.1
[INFO] [stderr] Downloaded redox_syscall v0.2.6
[INFO] [stderr] Downloaded tokio-stream v0.1.5
[INFO] [stderr] Downloaded h2 v0.3.2
[INFO] [stderr] Downloaded tokio-util v0.6.6
[INFO] [stderr] Downloaded tokio v1.5.0
[INFO] [stderr] Downloaded libc v0.2.93
[INFO] [stderr] Downloaded httparse v1.4.0
[INFO] [stderr] Downloaded tracing v0.1.25
[INFO] [stderr] Downloaded hyper v0.14.5
[INFO] [stderr] Downloaded lock_api v0.4.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1ae50e0bbc9a71759553446c86321955102f519fb0f07f4d9df04ab02e3e5463
[INFO] running `Command { std: "docker" "start" "-a" "1ae50e0bbc9a71759553446c86321955102f519fb0f07f4d9df04ab02e3e5463", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1ae50e0bbc9a71759553446c86321955102f519fb0f07f4d9df04ab02e3e5463", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1ae50e0bbc9a71759553446c86321955102f519fb0f07f4d9df04ab02e3e5463", kill_on_drop: false }`
[INFO] [stdout] 1ae50e0bbc9a71759553446c86321955102f519fb0f07f4d9df04ab02e3e5463
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 877b5d199758228e0c7de2a84bff4ad769096547ac2f7dcb47ed973bf919fbc9
[INFO] running `Command { std: "docker" "start" "-a" "877b5d199758228e0c7de2a84bff4ad769096547ac2f7dcb47ed973bf919fbc9", kill_on_drop: false }`
[INFO] [stderr] Compiling proc-macro2 v1.0.26
[INFO] [stderr] Compiling libc v0.2.93
[INFO] [stderr] Compiling unicode-xid v0.2.1
[INFO] [stderr] Compiling syn v1.0.69
[INFO] [stderr] Checking pin-project-lite v0.2.6
[INFO] [stderr] Compiling memchr v2.3.4
[INFO] [stderr] Checking bytes v1.0.1
[INFO] [stderr] Checking futures-core v0.3.14
[INFO] [stderr] Checking instant v0.1.9
[INFO] [stderr] Checking futures-sink v0.3.14
[INFO] [stderr] Checking lock_api v0.4.3
[INFO] [stderr] Compiling tokio v1.5.0
[INFO] [stderr] Checking futures-io v0.3.14
[INFO] [stderr] Checking futures-channel v0.3.14
[INFO] [stderr] Compiling gimli v0.23.0
[INFO] [stderr] Checking itoa v0.4.7
[INFO] [stderr] Checking futures-task v0.3.14
[INFO] [stderr] Checking once_cell v1.7.2
[INFO] [stderr] Compiling adler v1.0.2
[INFO] [stderr] Compiling anyhow v1.0.40
[INFO] [stderr] Compiling miniz_oxide v0.4.4
[INFO] [stderr] Compiling indexmap v1.6.2
[INFO] [stderr] Compiling serde_derive v1.0.125
[INFO] [stderr] Compiling rustc-demangle v0.1.18
[INFO] [stderr] Compiling object v0.23.0
[INFO] [stderr] Compiling quote v1.0.9
[INFO] [stderr] Checking parking_lot_core v0.8.3
[INFO] [stderr] Checking parking_lot v0.11.1
[INFO] [stderr] Checking mio v0.7.11
[INFO] [stderr] Checking num_cpus v1.13.0
[INFO] [stderr] Checking signal-hook-registry v1.3.0
[INFO] [stderr] Checking http v0.2.4
[INFO] [stderr] Checking tracing-core v0.1.17
[INFO] [stderr] Compiling serde v1.0.125
[INFO] [stderr] Checking hashbrown v0.9.1
[INFO] [stderr] Compiling httparse v1.4.0
[INFO] [stderr] Checking tracing v0.1.25
[INFO] [stderr] Compiling itertools v0.9.0
[INFO] [stderr] Compiling serde_json v1.0.64
[INFO] [stderr] Compiling addr2line v0.14.1
[INFO] [stderr] Checking want v0.3.0
[INFO] [stderr] Checking socket2 v0.4.0
[INFO] [stderr] Checking httpdate v0.3.2
[INFO] [stderr] Checking byteorder v1.4.3
[INFO] [stderr] Checking http-body v0.4.1
[INFO] [stderr] Compiling backtrace v0.3.56
[INFO] [stderr] Compiling tokio-macros v1.1.0
[INFO] [stderr] Compiling futures-macro v0.3.14
[INFO] [stderr] Compiling pin-project-internal v1.0.7
[INFO] [stderr] Compiling prost-derive v0.7.0
[INFO] [stderr] Checking futures-util v0.3.14
[INFO] [stderr] Checking pin-project v1.0.7
[INFO] [stderr] Checking prost v0.7.0
[INFO] [stderr] Checking futures-executor v0.3.14
[INFO] [stderr] Checking futures v0.3.14
[INFO] [stderr] Checking tokio-util v0.6.6
[INFO] [stderr] Checking tokio-stream v0.1.5
[INFO] [stderr] Checking h2 v0.3.2
[INFO] [stderr] Checking hyper v0.14.5
[INFO] [stderr] Checking mds v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `make_service_fn`, `service_fn`
[INFO] [stdout] --> src/http/server.rs:6:22
[INFO] [stdout] |
[INFO] [stdout] 6 | use hyper::service::{make_service_fn, service_fn};
[INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `Client`, `HeaderMap`, `Version`
[INFO] [stdout] --> src/http/server.rs:7:19
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Client, HeaderMap, Request, Response, Server, Version};
[INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout] --> src/http/server.rs:8:26
[INFO] [stdout] |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout] --> src/http/server.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::convert::Infallible;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::sync::Mutex`
[INFO] [stdout] --> src/http/server.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use tokio::sync::Mutex;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Tx`
[INFO] [stdout] --> src/tcp/peer.rs:1:32
[INFO] [stdout] |
[INFO] [stdout] 1 | use crate::state::{Rx, Shared, Tx};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout] --> src/tcp/protocol.rs:2:13
[INFO] [stdout] |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut, BytesMut};
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::SinkExt`
[INFO] [stdout] --> src/tcp/protocol.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use futures::SinkExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error::Error`, `fmt`, `fs`
[INFO] [stdout] --> src/tcp/protocol.rs:5:11
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::{error::Error, fmt, fs, io, usize};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^ ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`
[INFO] [stdout] --> src/tcp/protocol.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::net::UnixListener`
[INFO] [stdout] --> src/tcp/protocol.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | use tokio::net::UnixListener;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::signal`
[INFO] [stdout] --> src/tcp/protocol.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use tokio::signal;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio_stream::StreamExt`
[INFO] [stdout] --> src/tcp/protocol.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use tokio_stream::StreamExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `make_service_fn`, `service_fn`
[INFO] [stdout] --> src/http/server.rs:6:22
[INFO] [stdout] |
[INFO] [stdout] 6 | use hyper::service::{make_service_fn, service_fn};
[INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `Client`, `HeaderMap`, `Version`
[INFO] [stdout] --> src/http/server.rs:7:19
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Client, HeaderMap, Request, Response, Server, Version};
[INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout] --> src/http/server.rs:8:26
[INFO] [stdout] |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout] --> src/http/server.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::convert::Infallible;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::sync::Mutex`
[INFO] [stdout] --> src/http/server.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use tokio::sync::Mutex;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Tx`
[INFO] [stdout] --> src/tcp/peer.rs:1:32
[INFO] [stdout] |
[INFO] [stdout] 1 | use crate::state::{Rx, Shared, Tx};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout] --> src/tcp/protocol.rs:2:13
[INFO] [stdout] |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut, BytesMut};
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::SinkExt`
[INFO] [stdout] --> src/tcp/protocol.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use futures::SinkExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error::Error`, `fmt`, `fs`
[INFO] [stdout] --> src/tcp/protocol.rs:5:11
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::{error::Error, fmt, fs, io, usize};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^ ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`
[INFO] [stdout] --> src/tcp/protocol.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::net::UnixListener`
[INFO] [stdout] --> src/tcp/protocol.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | use tokio::net::UnixListener;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::signal`
[INFO] [stdout] --> src/tcp/protocol.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use tokio::signal;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio_stream::StreamExt`
[INFO] [stdout] --> src/tcp/protocol.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use tokio_stream::StreamExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/tcp/server.rs:68:17
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout] --> src/tcp/server.rs:91:26
[INFO] [stdout] |
[INFO] [stdout] 91 | Some(Err(e)) => {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:62:9
[INFO] [stdout] |
[INFO] [stdout] 62 | let mut transport = Framed::new(stream, Protocol);
[INFO] [stdout] | ----^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:68:13
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ----^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/tcp/server.rs:68:17
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout] --> src/tcp/server.rs:91:26
[INFO] [stdout] |
[INFO] [stdout] 91 | Some(Err(e)) => {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `prost::Message`
[INFO] [stdout] --> src/tcp/protocol.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use prost::Message;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `req_version`
[INFO] [stdout] --> src/http/server.rs:41:13
[INFO] [stdout] |
[INFO] [stdout] 41 | let req_version = req.version();
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_version`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:62:9
[INFO] [stdout] |
[INFO] [stdout] 62 | let mut transport = Framed::new(stream, Protocol);
[INFO] [stdout] | ----^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:68:13
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ----^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/http/server.rs:40:24
[INFO] [stdout] |
[INFO] [stdout] 40 | fn call(&mut self, mut req: Request
) -> Self::Future {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/http/server.rs:24:5
[INFO] [stdout] |
[INFO] [stdout] 21 | struct ReqBody {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ReqBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `prost::Message`
[INFO] [stdout] --> src/tcp/protocol.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use prost::Message;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout] --> src/state.rs:13:9
[INFO] [stdout] |
[INFO] [stdout] 11 | pub struct Shared {
[INFO] [stdout] | ------ field in this struct
[INFO] [stdout] 12 | pub peers: HashMap,
[INFO] [stdout] 13 | pub counter: usize,
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout] --> src/tcp/protocol.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 14 | impl Protocol {
[INFO] [stdout] | ------------- associated function in this implementation
[INFO] [stdout] 15 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `req_version`
[INFO] [stdout] --> src/http/server.rs:41:13
[INFO] [stdout] |
[INFO] [stdout] 41 | let req_version = req.version();
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_version`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/http/server.rs:40:24
[INFO] [stdout] |
[INFO] [stdout] 40 | fn call(&mut self, mut req: Request) -> Self::Future {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/http/server.rs:24:5
[INFO] [stdout] |
[INFO] [stdout] 21 | struct ReqBody {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ReqBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout] --> src/state.rs:13:9
[INFO] [stdout] |
[INFO] [stdout] 11 | pub struct Shared {
[INFO] [stdout] | ------ field in this struct
[INFO] [stdout] 12 | pub peers: HashMap,
[INFO] [stdout] 13 | pub counter: usize,
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout] --> src/tcp/protocol.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 14 | impl Protocol {
[INFO] [stdout] | ------------- associated function in this implementation
[INFO] [stdout] 15 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.63s
[INFO] running `Command { std: "docker" "inspect" "877b5d199758228e0c7de2a84bff4ad769096547ac2f7dcb47ed973bf919fbc9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "877b5d199758228e0c7de2a84bff4ad769096547ac2f7dcb47ed973bf919fbc9", kill_on_drop: false }`
[INFO] [stdout] 877b5d199758228e0c7de2a84bff4ad769096547ac2f7dcb47ed973bf919fbc9
[INFO] checking Tonyce/mds against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyce%2Fmds" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Tonyce/mds on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Tonyce/mds
[INFO] finished tweaking git repo https://github.com/Tonyce/mds
[INFO] tweaked toml for git repo https://github.com/Tonyce/mds written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/Tonyce/mds 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 978df41c5bc5da54271e3a6d3a3e8bae7f3b5e0b41edfebd151be7d34f87c91e
[INFO] running `Command { std: "docker" "start" "-a" "978df41c5bc5da54271e3a6d3a3e8bae7f3b5e0b41edfebd151be7d34f87c91e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "978df41c5bc5da54271e3a6d3a3e8bae7f3b5e0b41edfebd151be7d34f87c91e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "978df41c5bc5da54271e3a6d3a3e8bae7f3b5e0b41edfebd151be7d34f87c91e", kill_on_drop: false }`
[INFO] [stdout] 978df41c5bc5da54271e3a6d3a3e8bae7f3b5e0b41edfebd151be7d34f87c91e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5e3d1b2b9e1187d68e5615e115dfb05e976a8504383d79163ed56e9ff257c805
[INFO] running `Command { std: "docker" "start" "-a" "5e3d1b2b9e1187d68e5615e115dfb05e976a8504383d79163ed56e9ff257c805", kill_on_drop: false }`
[INFO] [stderr] Compiling proc-macro2 v1.0.26
[INFO] [stderr] Compiling libc v0.2.93
[INFO] [stderr] Compiling unicode-xid v0.2.1
[INFO] [stderr] Compiling syn v1.0.69
[INFO] [stderr] Compiling memchr v2.3.4
[INFO] [stderr] Checking pin-project-lite v0.2.6
[INFO] [stderr] Checking bytes v1.0.1
[INFO] [stderr] Checking futures-core v0.3.14
[INFO] [stderr] Checking instant v0.1.9
[INFO] [stderr] Checking futures-sink v0.3.14
[INFO] [stderr] Checking lock_api v0.4.3
[INFO] [stderr] Compiling tokio v1.5.0
[INFO] [stderr] Checking futures-io v0.3.14
[INFO] [stderr] Checking futures-channel v0.3.14
[INFO] [stderr] Compiling anyhow v1.0.40
[INFO] [stderr] Compiling gimli v0.23.0
[INFO] [stderr] Checking itoa v0.4.7
[INFO] [stderr] Checking once_cell v1.7.2
[INFO] [stderr] Compiling adler v1.0.2
[INFO] [stderr] Checking futures-task v0.3.14
[INFO] [stderr] Compiling indexmap v1.6.2
[INFO] [stderr] Compiling miniz_oxide v0.4.4
[INFO] [stderr] Compiling rustc-demangle v0.1.18
[INFO] [stderr] Compiling object v0.23.0
[INFO] [stderr] Compiling serde_derive v1.0.125
[INFO] [stderr] Compiling quote v1.0.9
[INFO] [stderr] Checking parking_lot_core v0.8.3
[INFO] [stderr] Checking mio v0.7.11
[INFO] [stderr] Checking parking_lot v0.11.1
[INFO] [stderr] Checking num_cpus v1.13.0
[INFO] [stderr] Checking signal-hook-registry v1.3.0
[INFO] [stderr] Checking tracing-core v0.1.17
[INFO] [stderr] Checking http v0.2.4
[INFO] [stderr] Compiling serde v1.0.125
[INFO] [stderr] Compiling httparse v1.4.0
[INFO] [stderr] Checking hashbrown v0.9.1
[INFO] [stderr] Checking tracing v0.1.25
[INFO] [stderr] Compiling itertools v0.9.0
[INFO] [stderr] Compiling serde_json v1.0.64
[INFO] [stderr] Compiling addr2line v0.14.1
[INFO] [stderr] Checking want v0.3.0
[INFO] [stderr] Checking socket2 v0.4.0
[INFO] [stderr] Checking httpdate v0.3.2
[INFO] [stderr] Checking byteorder v1.4.3
[INFO] [stderr] Checking http-body v0.4.1
[INFO] [stderr] Compiling backtrace v0.3.56
[INFO] [stderr] Compiling tokio-macros v1.1.0
[INFO] [stderr] Compiling futures-macro v0.3.14
[INFO] [stderr] Compiling pin-project-internal v1.0.7
[INFO] [stderr] Compiling prost-derive v0.7.0
[INFO] [stderr] Checking futures-util v0.3.14
[INFO] [stderr] Checking pin-project v1.0.7
[INFO] [stderr] Checking prost v0.7.0
[INFO] [stderr] Checking futures-executor v0.3.14
[INFO] [stderr] Checking futures v0.3.14
[INFO] [stderr] Checking tokio-util v0.6.6
[INFO] [stderr] Checking tokio-stream v0.1.5
[INFO] [stderr] Checking h2 v0.3.2
[INFO] [stderr] Checking hyper v0.14.5
[INFO] [stderr] Checking mds v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `make_service_fn`, `service_fn`
[INFO] [stdout] --> src/http/server.rs:6:22
[INFO] [stdout] |
[INFO] [stdout] 6 | use hyper::service::{make_service_fn, service_fn};
[INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `Client`, `HeaderMap`, `Version`
[INFO] [stdout] --> src/http/server.rs:7:19
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Client, HeaderMap, Request, Response, Server, Version};
[INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout] --> src/http/server.rs:8:26
[INFO] [stdout] |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout] --> src/http/server.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::convert::Infallible;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::sync::Mutex`
[INFO] [stdout] --> src/http/server.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use tokio::sync::Mutex;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Tx`
[INFO] [stdout] --> src/tcp/peer.rs:1:32
[INFO] [stdout] |
[INFO] [stdout] 1 | use crate::state::{Rx, Shared, Tx};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout] --> src/tcp/protocol.rs:2:13
[INFO] [stdout] |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut, BytesMut};
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::SinkExt`
[INFO] [stdout] --> src/tcp/protocol.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use futures::SinkExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error::Error`, `fmt`, `fs`
[INFO] [stdout] --> src/tcp/protocol.rs:5:11
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::{error::Error, fmt, fs, io, usize};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^ ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`
[INFO] [stdout] --> src/tcp/protocol.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::net::UnixListener`
[INFO] [stdout] --> src/tcp/protocol.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | use tokio::net::UnixListener;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::signal`
[INFO] [stdout] --> src/tcp/protocol.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use tokio::signal;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio_stream::StreamExt`
[INFO] [stdout] --> src/tcp/protocol.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use tokio_stream::StreamExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `make_service_fn`, `service_fn`
[INFO] [stdout] --> src/http/server.rs:6:22
[INFO] [stdout] |
[INFO] [stdout] 6 | use hyper::service::{make_service_fn, service_fn};
[INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `Client`, `HeaderMap`, `Version`
[INFO] [stdout] --> src/http/server.rs:7:19
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Client, HeaderMap, Request, Response, Server, Version};
[INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout] --> src/http/server.rs:8:26
[INFO] [stdout] |
[INFO] [stdout] 8 | use serde::{Deserialize, Serialize};
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout] --> src/http/server.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::convert::Infallible;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::sync::Mutex`
[INFO] [stdout] --> src/http/server.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use tokio::sync::Mutex;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Tx`
[INFO] [stdout] --> src/tcp/peer.rs:1:32
[INFO] [stdout] |
[INFO] [stdout] 1 | use crate::state::{Rx, Shared, Tx};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout] --> src/tcp/protocol.rs:2:13
[INFO] [stdout] |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut, BytesMut};
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::SinkExt`
[INFO] [stdout] --> src/tcp/protocol.rs:3:5
[INFO] [stdout] |
[INFO] [stdout] 3 | use futures::SinkExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error::Error`, `fmt`, `fs`
[INFO] [stdout] --> src/tcp/protocol.rs:5:11
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::{error::Error, fmt, fs, io, usize};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^ ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`
[INFO] [stdout] --> src/tcp/protocol.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::net::UnixListener`
[INFO] [stdout] --> src/tcp/protocol.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | use tokio::net::UnixListener;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio::signal`
[INFO] [stdout] --> src/tcp/protocol.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use tokio::signal;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `tokio_stream::StreamExt`
[INFO] [stdout] --> src/tcp/protocol.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use tokio_stream::StreamExt;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/tcp/server.rs:68:17
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout] --> src/tcp/server.rs:91:26
[INFO] [stdout] |
[INFO] [stdout] 91 | Some(Err(e)) => {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout] --> src/tcp/server.rs:68:17
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout] --> src/tcp/server.rs:91:26
[INFO] [stdout] |
[INFO] [stdout] 91 | Some(Err(e)) => {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:62:9
[INFO] [stdout] |
[INFO] [stdout] 62 | let mut transport = Framed::new(stream, Protocol);
[INFO] [stdout] | ----^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:68:13
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ----^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:62:9
[INFO] [stdout] |
[INFO] [stdout] 62 | let mut transport = Framed::new(stream, Protocol);
[INFO] [stdout] | ----^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/tcp/server.rs:68:13
[INFO] [stdout] |
[INFO] [stdout] 68 | let mut state = state.write().await;
[INFO] [stdout] | ----^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `prost::Message`
[INFO] [stdout] --> src/tcp/protocol.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use prost::Message;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `req_version`
[INFO] [stdout] --> src/http/server.rs:41:13
[INFO] [stdout] |
[INFO] [stdout] 41 | let req_version = req.version();
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_version`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/http/server.rs:40:24
[INFO] [stdout] |
[INFO] [stdout] 40 | fn call(&mut self, mut req: Request) -> Self::Future {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `prost::Message`
[INFO] [stdout] --> src/tcp/protocol.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use prost::Message;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/http/server.rs:24:5
[INFO] [stdout] |
[INFO] [stdout] 21 | struct ReqBody {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ReqBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout] --> src/state.rs:13:9
[INFO] [stdout] |
[INFO] [stdout] 11 | pub struct Shared {
[INFO] [stdout] | ------ field in this struct
[INFO] [stdout] 12 | pub peers: HashMap,
[INFO] [stdout] 13 | pub counter: usize,
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout] --> src/tcp/protocol.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 14 | impl Protocol {
[INFO] [stdout] | ------------- associated function in this implementation
[INFO] [stdout] 15 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `req_version`
[INFO] [stdout] --> src/http/server.rs:41:13
[INFO] [stdout] |
[INFO] [stdout] 41 | let req_version = req.version();
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_version`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/http/server.rs:40:24
[INFO] [stdout] |
[INFO] [stdout] 40 | fn call(&mut self, mut req: Request) -> Self::Future {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `msg` is never read
[INFO] [stdout] --> src/http/server.rs:24:5
[INFO] [stdout] |
[INFO] [stdout] 21 | struct ReqBody {
[INFO] [stdout] | ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 | msg: String,
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ReqBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout] --> src/state.rs:13:9
[INFO] [stdout] |
[INFO] [stdout] 11 | pub struct Shared {
[INFO] [stdout] | ------ field in this struct
[INFO] [stdout] 12 | pub peers: HashMap,
[INFO] [stdout] 13 | pub counter: usize,
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout] --> src/tcp/protocol.rs:15:8
[INFO] [stdout] |
[INFO] [stdout] 14 | impl Protocol {
[INFO] [stdout] | ------------- associated function in this implementation
[INFO] [stdout] 15 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 23 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.77s
[INFO] running `Command { std: "docker" "inspect" "5e3d1b2b9e1187d68e5615e115dfb05e976a8504383d79163ed56e9ff257c805", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5e3d1b2b9e1187d68e5615e115dfb05e976a8504383d79163ed56e9ff257c805", kill_on_drop: false }`
[INFO] [stdout] 5e3d1b2b9e1187d68e5615e115dfb05e976a8504383d79163ed56e9ff257c805