[INFO] cloning repository https://github.com/pepegar/redirs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pepegar/redirs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepegar%2Fredirs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepegar%2Fredirs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e605e4ca68288ce66e1b368824b2be376598eb6b [INFO] testing pepegar/redirs against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepegar%2Fredirs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pepegar/redirs [INFO] finished tweaking git repo https://github.com/pepegar/redirs [INFO] tweaked toml for git repo https://github.com/pepegar/redirs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pepegar/redirs on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pepegar/redirs 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e5d9acf7e9613a44141992a176a3e8badf67543de28ff02bd3616ad1f21ae846 [INFO] running `Command { std: "docker" "start" "-a" "e5d9acf7e9613a44141992a176a3e8badf67543de28ff02bd3616ad1f21ae846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5d9acf7e9613a44141992a176a3e8badf67543de28ff02bd3616ad1f21ae846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5d9acf7e9613a44141992a176a3e8badf67543de28ff02bd3616ad1f21ae846", kill_on_drop: false }` [INFO] [stdout] e5d9acf7e9613a44141992a176a3e8badf67543de28ff02bd3616ad1f21ae846 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5464882d2f433a53028793ddbc7bad76c7098b13ebaccb46a861ee4d5411157 [INFO] running `Command { std: "docker" "start" "-a" "c5464882d2f433a53028793ddbc7bad76c7098b13ebaccb46a861ee4d5411157", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling signal-hook-registry v1.2.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling redis-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/expirator.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{mpsc::Receiver, Mutex, RwLock}, time::sleep}; [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: `CommandRequest`, `FromRESP`, and `ToRESP` [INFO] [stdout] --> src/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use commands::{CommandRequest, FromRESP, ToRESP}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::RESP` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use protocol::RESP; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 19 | CommandRequest::PING => Ok(CommandResponse::PONG), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 20 | CommandRequest::ECHO(x) => Ok(CommandResponse::ECHO(x)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 21 | CommandRequest::SET(key, value, expiry) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 34 | CommandRequest::GET(key) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/protocol.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/protocol.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/protocol.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/protocol.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/commands.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/commands.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 123 | CommandResponse::PONG => Ok(RESP::BulkString("PONG".to_string())), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 124 | CommandResponse::ECHO(x) => Ok(RESP::BulkString(x.to_string())), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 125 | CommandResponse::OK => Ok(RESP::SimpleString("OK".to_string())), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 126 | CommandResponse::STR(str) => Ok(RESP::BulkString(str.to_string())), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/protocol.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | fn parse_integer(rest: &str) -> IResult<&str, RESP> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `connected_slaves`, `second_repl_offset`, `repl_backlog_active`, `repl_backlog_size`, `repl_backlog_first_byte_offset`, and `repl_backlog_histlen` are never read [INFO] [stdout] --> src/commands.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ReplicationInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 46 | role: ReplicationRole, [INFO] [stdout] 47 | connected_slaves: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | second_repl_offset: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | repl_backlog_active: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | repl_backlog_size: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | repl_backlog_first_byte_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 54 | repl_backlog_histlen: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReplicationInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RESP { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 12 | SimpleString(String), [INFO] [stdout] 13 | SimpleError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Array(Vec), [INFO] [stdout] 18 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | Double(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | BigNumber(f64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | BulkError(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | VerbatimString(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | Map(HashMap), [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Push(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RESP` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CommandStream { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn new(resp_stream: RESPStream) -> CommandStream { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.76s [INFO] running `Command { std: "docker" "inspect" "c5464882d2f433a53028793ddbc7bad76c7098b13ebaccb46a861ee4d5411157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5464882d2f433a53028793ddbc7bad76c7098b13ebaccb46a861ee4d5411157", kill_on_drop: false }` [INFO] [stdout] c5464882d2f433a53028793ddbc7bad76c7098b13ebaccb46a861ee4d5411157 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ef7763bb37d4f9453005877747bebe33d13d66c94d071ff894b08f83cd532ef [INFO] running `Command { std: "docker" "start" "-a" "7ef7763bb37d4f9453005877747bebe33d13d66c94d071ff894b08f83cd532ef", kill_on_drop: false }` [INFO] [stderr] Compiling redis-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/expirator.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::{mpsc::Receiver, Mutex, RwLock}, time::sleep}; [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: `CommandRequest`, `FromRESP`, and `ToRESP` [INFO] [stdout] --> src/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use commands::{CommandRequest, FromRESP, ToRESP}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::RESP` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use protocol::RESP; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 19 | CommandRequest::PING => Ok(CommandResponse::PONG), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 20 | CommandRequest::ECHO(x) => Ok(CommandResponse::ECHO(x)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 21 | CommandRequest::SET(key, value, expiry) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 34 | CommandRequest::GET(key) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/protocol.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | fn parse_integer(rest: &str) -> IResult<&str, RESP> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/protocol.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/protocol.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/protocol.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/protocol.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/commands.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/commands.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 123 | CommandResponse::PONG => Ok(RESP::BulkString("PONG".to_string())), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 124 | CommandResponse::ECHO(x) => Ok(RESP::BulkString(x.to_string())), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 125 | CommandResponse::OK => Ok(RESP::SimpleString("OK".to_string())), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 126 | CommandResponse::STR(str) => Ok(RESP::BulkString(str.to_string())), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `connected_slaves`, `second_repl_offset`, `repl_backlog_active`, `repl_backlog_size`, `repl_backlog_first_byte_offset`, and `repl_backlog_histlen` are never read [INFO] [stdout] --> src/commands.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ReplicationInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 46 | role: ReplicationRole, [INFO] [stdout] 47 | connected_slaves: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | second_repl_offset: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | repl_backlog_active: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | repl_backlog_size: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | repl_backlog_first_byte_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 54 | repl_backlog_histlen: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReplicationInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RESP { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 12 | SimpleString(String), [INFO] [stdout] 13 | SimpleError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Array(Vec), [INFO] [stdout] 18 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | Double(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | BigNumber(f64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | BulkError(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | VerbatimString(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | Map(HashMap), [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | Set(HashSet), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Push(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RESP` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CommandStream { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn new(resp_stream: RESPStream) -> CommandStream { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "7ef7763bb37d4f9453005877747bebe33d13d66c94d071ff894b08f83cd532ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ef7763bb37d4f9453005877747bebe33d13d66c94d071ff894b08f83cd532ef", kill_on_drop: false }` [INFO] [stdout] 7ef7763bb37d4f9453005877747bebe33d13d66c94d071ff894b08f83cd532ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 99c9f7ac2f2ac583be230b5720cb1facd0675850c7410b8b9fe06f41a537d73e [INFO] running `Command { std: "docker" "start" "-a" "99c9f7ac2f2ac583be230b5720cb1facd0675850c7410b8b9fe06f41a537d73e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `RwLock` [INFO] [stderr] --> src/expirator.rs:4:43 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::{sync::{mpsc::Receiver, Mutex, RwLock}, time::sleep}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CommandRequest`, `FromRESP`, and `ToRESP` [INFO] [stderr] --> src/main.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | use commands::{CommandRequest, FromRESP, ToRESP}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `protocol::RESP` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use protocol::RESP; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::from_utf8` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::str::from_utf8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stderr] --> src/main.rs:24:17 [INFO] [stderr] | [INFO] [stderr] 24 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/interpreter.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/interpreter.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 19 | CommandRequest::PING => Ok(CommandResponse::PONG), [INFO] [stderr] | -------------------- matches some of the same values [INFO] [stderr] 20 | CommandRequest::ECHO(x) => Ok(CommandResponse::ECHO(x)), [INFO] [stderr] | ----------------------- matches some of the same values [INFO] [stderr] 21 | CommandRequest::SET(key, value, expiry) => { [INFO] [stderr] | --------------------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 34 | CommandRequest::GET(key) => { [INFO] [stderr] | ------------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 48 | x => Err(anyhow!("unexpected command: {:?}", x)) [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/protocol.rs:130:18 [INFO] [stderr] | [INFO] [stderr] 130 | fn parse_integer(rest: &str) -> IResult<&str, RESP> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/protocol.rs:44:24 [INFO] [stderr] | [INFO] [stderr] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/protocol.rs:44:38 [INFO] [stderr] | [INFO] [stderr] 44 | (RESP::Map(x), RESP::Map(y)) => false, // todo: IDK what to do here :/ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/protocol.rs:45:24 [INFO] [stderr] | [INFO] [stderr] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/protocol.rs:45:38 [INFO] [stderr] | [INFO] [stderr] 45 | (RESP::Set(x), RESP::Set(y)) => false, // todo: idk what to do here [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/commands.rs:144:13 [INFO] [stderr] | [INFO] [stderr] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/commands.rs:144:13 [INFO] [stderr] | [INFO] [stderr] 123 | CommandResponse::PONG => Ok(RESP::BulkString("PONG".to_string())), [INFO] [stderr] | --------------------- matches some of the same values [INFO] [stderr] 124 | CommandResponse::ECHO(x) => Ok(RESP::BulkString(x.to_string())), [INFO] [stderr] | ------------------------ matches some of the same values [INFO] [stderr] 125 | CommandResponse::OK => Ok(RESP::SimpleString("OK".to_string())), [INFO] [stderr] | ------------------- matches some of the same values [INFO] [stderr] 126 | CommandResponse::STR(str) => Ok(RESP::BulkString(str.to_string())), [INFO] [stderr] | ------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 144 | x => Err(anyhow!("unexpected command in ToRESP: {:?}", x)) [INFO] [stderr] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: fields `connected_slaves`, `second_repl_offset`, `repl_backlog_active`, `repl_backlog_size`, `repl_backlog_first_byte_offset`, and `repl_backlog_histlen` are never read [INFO] [stderr] --> src/commands.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 45 | pub struct ReplicationInfo { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 46 | role: ReplicationRole, [INFO] [stderr] 47 | connected_slaves: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | second_repl_offset: i8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 51 | repl_backlog_active: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 52 | repl_backlog_size: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 53 | repl_backlog_first_byte_offset: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 54 | repl_backlog_histlen: u64 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ReplicationInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/protocol.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum RESP { [INFO] [stderr] | ---- variants in this enum [INFO] [stderr] 12 | SimpleString(String), [INFO] [stderr] 13 | SimpleError(String), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 16 | Integer(i64), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 17 | Array(Vec), [INFO] [stderr] 18 | Null, [INFO] [stderr] | ^^^^ [INFO] [stderr] 19 | Boolean(bool), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 20 | Double(f64), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 21 | BigNumber(f64), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 22 | BulkError(Vec), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 23 | VerbatimString(String), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 24 | Map(HashMap), [INFO] [stderr] | ^^^ [INFO] [stderr] 25 | Set(HashSet), [INFO] [stderr] | ^^^ [INFO] [stderr] 26 | Push(Vec), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RESP` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/stream.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl CommandStream { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn new(resp_stream: RESPStream) -> CommandStream { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `redis-starter-rust` (bin "redis-starter-rust" test) generated 15 warnings (run `cargo fix --bin "redis-starter-rust" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/redis_starter_rust-2b6935e23829ec0a) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test protocol::tests::test_decode_array ... ok [INFO] [stdout] test protocol::tests::test_decode_bulk ... ok [INFO] [stdout] test protocol::tests::test_encode ... ok [INFO] [stdout] test protocol::tests::test_decode_simplestring ... ok [INFO] [stdout] test protocol::tests::test_roundtrip ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "99c9f7ac2f2ac583be230b5720cb1facd0675850c7410b8b9fe06f41a537d73e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99c9f7ac2f2ac583be230b5720cb1facd0675850c7410b8b9fe06f41a537d73e", kill_on_drop: false }` [INFO] [stdout] 99c9f7ac2f2ac583be230b5720cb1facd0675850c7410b8b9fe06f41a537d73e