[INFO] cloning repository https://github.com/yinho999/my-redis-tokio [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yinho999/my-redis-tokio" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyinho999%2Fmy-redis-tokio", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyinho999%2Fmy-redis-tokio'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25a41f1f13ae8a645c23e9ea2a5cc46d9e6b2d06 [INFO] building yinho999/my-redis-tokio against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyinho999%2Fmy-redis-tokio" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yinho999/my-redis-tokio [INFO] finished tweaking git repo https://github.com/yinho999/my-redis-tokio [INFO] tweaked toml for git repo https://github.com/yinho999/my-redis-tokio written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yinho999/my-redis-tokio on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yinho999/my-redis-tokio already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam v0.8.2 [INFO] [stderr] Downloaded smallvec v1.11.2 [INFO] [stderr] Downloaded crossbeam-channel v0.5.8 [INFO] [stderr] Downloaded deranged v0.3.10 [INFO] [stderr] Downloaded crossbeam-queue v0.3.8 [INFO] [stderr] Downloaded time v0.3.30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ee34326b7e2570db74944b8f0be189b2e67bc404bb29def38caf8745d487bda [INFO] running `Command { std: "docker" "start" "-a" "4ee34326b7e2570db74944b8f0be189b2e67bc404bb29def38caf8745d487bda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ee34326b7e2570db74944b8f0be189b2e67bc404bb29def38caf8745d487bda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ee34326b7e2570db74944b8f0be189b2e67bc404bb29def38caf8745d487bda", kill_on_drop: false }` [INFO] [stdout] 4ee34326b7e2570db74944b8f0be189b2e67bc404bb29def38caf8745d487bda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18c881e876c0632930bb44156978c175385a49a31afdc7f26da92d7d28d00d21 [INFO] running `Command { std: "docker" "start" "-a" "18c881e876c0632930bb44156978c175385a49a31afdc7f26da92d7d28d00d21", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling deranged v0.3.10 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling mini-redis v0.4.1 [INFO] [stderr] Compiling my-redis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BytesMut` [INFO] [stdout] --> src/connection_vec_u8.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_bytes.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, `parse_frame`, `write_frame`, and `write_decimal` are never used [INFO] [stdout] --> src/connection_bytes.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | async fn write_frame(&mut self, frame: &Frame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | async fn write_decimal(&mut self, val: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_vec_u8.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, and `parse_frame` are never used [INFO] [stdout] --> src/connection_vec_u8.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-pattern-matching.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut tx1, mut rx1): (tokio::sync::mpsc::Sender>, tokio::sync::mpsc::Receiver>) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-pattern-matching.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | let (mut tx2, mut rx2): (tokio::sync::mpsc::Sender>, tokio::sync::mpsc::Receiver>) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/bin/select-syntax-client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Delay` is never constructed [INFO] [stdout] --> src/bin/mini-tokio.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Delay { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/server.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 38 | / loop { [INFO] [stdout] 39 | | // The first item contains the socket and address of the new connection. [INFO] [stdout] 40 | | // The second item contains the IP and port of the new connection. [INFO] [stdout] 41 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] ... | [INFO] [stdout] 53 | | }); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 55 | 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: type alias `ShardedDb` is never used [INFO] [stdout] --> src/bin/server.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type ShardedDb = Arc>>>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_sharded_db` is never used [INFO] [stdout] --> src/bin/server.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn new_sharded_db(n: usize) -> ShardedDb { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/bin/echo-server-split.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [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 variable: `connection` [INFO] [stdout] --> src/bin/select-syntax-server.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut connection = mini_redis::Connection::new(socket); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-syntax-server.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut connection = mini_redis::Connection::new(socket); [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/select-syntax-server.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 23 | / loop { [INFO] [stdout] 24 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] 25 | | tokio::spawn(async move { process(socket).await }); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 29 | Ok::<_, io::Error>(()) [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-syntax-server.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut listener = TcpListener::bind("localhost:3465").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/bin/select-loop-resume.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | let (mut tx, mut rx) = tokio::sync::mpsc::channel(128); [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: function `race` is never used [INFO] [stdout] --> src/bin/select-borrow.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn race( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/select-error.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut connection = mini_redis::Connection::new(socket); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-error.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut connection = mini_redis::Connection::new(socket); [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/select-error.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 15 | / loop { [INFO] [stdout] 16 | | // This Result will propagated to the res [INFO] [stdout] 17 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] 18 | | tokio::spawn(async move { process(socket).await }); [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 23 | Ok::<_, io::Error>(()) [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-loop-modifying-a-branch.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut tx, mut rx) = tokio::sync::mpsc::channel(128); [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "18c881e876c0632930bb44156978c175385a49a31afdc7f26da92d7d28d00d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18c881e876c0632930bb44156978c175385a49a31afdc7f26da92d7d28d00d21", kill_on_drop: false }` [INFO] [stdout] 18c881e876c0632930bb44156978c175385a49a31afdc7f26da92d7d28d00d21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91dac2a5acb1c90a483fec375b7e4149326de5b4b86ec14c72d53324eb05a20e [INFO] running `Command { std: "docker" "start" "-a" "91dac2a5acb1c90a483fec375b7e4149326de5b4b86ec14c72d53324eb05a20e", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `BytesMut` [INFO] [stdout] --> src/connection_vec_u8.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_bytes.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, `parse_frame`, `write_frame`, and `write_decimal` are never used [INFO] [stdout] --> src/connection_bytes.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | async fn write_frame(&mut self, frame: &Frame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | async fn write_decimal(&mut self, val: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling my-redis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_vec_u8.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, and `parse_frame` are never used [INFO] [stdout] --> src/connection_vec_u8.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/bin/echo-server-split.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [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: `BytesMut` [INFO] [stdout] --> src/connection_vec_u8.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::{BufMut, BytesMut}; [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::io` [INFO] [stdout] --> src/bin/select-syntax-client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_bytes.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, `parse_frame`, `write_frame`, and `write_decimal` are never used [INFO] [stdout] --> src/connection_bytes.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | async fn write_frame(&mut self, frame: &Frame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | async fn write_decimal(&mut self, val: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/connection_vec_u8.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_frame`, and `parse_frame` are never used [INFO] [stdout] --> src/connection_vec_u8.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Connection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn parse_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/server.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 38 | / loop { [INFO] [stdout] 39 | | // The first item contains the socket and address of the new connection. [INFO] [stdout] 40 | | // The second item contains the IP and port of the new connection. [INFO] [stdout] 41 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] ... | [INFO] [stdout] 53 | | }); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 55 | 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: type alias `ShardedDb` is never used [INFO] [stdout] --> src/bin/server.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type ShardedDb = Arc>>>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_sharded_db` is never used [INFO] [stdout] --> src/bin/server.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn new_sharded_db(n: usize) -> ShardedDb { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-pattern-matching.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut tx1, mut rx1): (tokio::sync::mpsc::Sender>, tokio::sync::mpsc::Receiver>) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-pattern-matching.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | let (mut tx2, mut rx2): (tokio::sync::mpsc::Sender>, tokio::sync::mpsc::Receiver>) = mpsc::channel(128); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `race` is never used [INFO] [stdout] --> src/bin/select-borrow.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn race( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Delay` is never constructed [INFO] [stdout] --> src/bin/mini-tokio.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Delay { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection` [INFO] [stdout] --> src/bin/select-error.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut connection = mini_redis::Connection::new(socket); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-error.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut connection = mini_redis::Connection::new(socket); [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/select-error.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 15 | / loop { [INFO] [stdout] 16 | | // This Result will propagated to the res [INFO] [stdout] 17 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] 18 | | tokio::spawn(async move { process(socket).await }); [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 23 | Ok::<_, io::Error>(()) [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-loop-modifying-a-branch.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | let (mut tx, mut rx) = tokio::sync::mpsc::channel(128); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-loop-resume.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | let (mut tx, mut rx) = tokio::sync::mpsc::channel(128); [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: unused variable: `connection` [INFO] [stdout] --> src/bin/select-syntax-server.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut connection = mini_redis::Connection::new(socket); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-syntax-server.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut connection = mini_redis::Connection::new(socket); [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/select-syntax-server.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 23 | / loop { [INFO] [stdout] 24 | | let (socket, _) = listener.accept().await?; [INFO] [stdout] 25 | | tokio::spawn(async move { process(socket).await }); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 29 | Ok::<_, io::Error>(()) [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/select-syntax-server.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut listener = TcpListener::bind("localhost:3465").await?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.08s [INFO] running `Command { std: "docker" "inspect" "91dac2a5acb1c90a483fec375b7e4149326de5b4b86ec14c72d53324eb05a20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91dac2a5acb1c90a483fec375b7e4149326de5b4b86ec14c72d53324eb05a20e", kill_on_drop: false }` [INFO] [stdout] 91dac2a5acb1c90a483fec375b7e4149326de5b4b86ec14c72d53324eb05a20e