[INFO] cloning repository https://github.com/akishichinibu/codecrafters-redis-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/akishichinibu/codecrafters-redis-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakishichinibu%2Fcodecrafters-redis-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakishichinibu%2Fcodecrafters-redis-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecb20da00c4470cfada472095b956f875ff02600 [INFO] checking akishichinibu/codecrafters-redis-rust against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fakishichinibu%2Fcodecrafters-redis-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/akishichinibu/codecrafters-redis-rust [INFO] finished tweaking git repo https://github.com/akishichinibu/codecrafters-redis-rust [INFO] tweaked toml for git repo https://github.com/akishichinibu/codecrafters-redis-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/akishichinibu/codecrafters-redis-rust on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/akishichinibu/codecrafters-redis-rust 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fc7d1f08399ef4f0dbcba27d3f37482784308d5a2995e1ade81517f9e795a59 [INFO] running `Command { std: "docker" "start" "-a" "5fc7d1f08399ef4f0dbcba27d3f37482784308d5a2995e1ade81517f9e795a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fc7d1f08399ef4f0dbcba27d3f37482784308d5a2995e1ade81517f9e795a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fc7d1f08399ef4f0dbcba27d3f37482784308d5a2995e1ade81517f9e795a59", kill_on_drop: false }` [INFO] [stdout] 5fc7d1f08399ef4f0dbcba27d3f37482784308d5a2995e1ade81517f9e795a59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b25d86e22d2ac4b19b07c51fc242f6cc796116512dd1cb1a27fe5d8ac2a5429e [INFO] running `Command { std: "docker" "start" "-a" "b25d86e22d2ac4b19b07c51fc242f6cc796116512dd1cb1a27fe5d8ac2a5429e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking parking_lot_core v0.9.5 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking ctrlc v3.4.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking thiserror v1.0.32 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `spawn` [INFO] [stdout] --> src/replica.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::{spawn, task}; [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: `spawn` [INFO] [stdout] --> src/replica.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::{spawn, task}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/replica.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 104 | / loop { [INFO] [stdout] 105 | | let (command, length) = match reader.read_command(&mut parser).await { [INFO] [stdout] 106 | | Ok(command) => command, [INFO] [stdout] 107 | | Err(e) => return Err(e), [INFO] [stdout] ... | [INFO] [stdout] 138 | | offset += length; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 140 | println!("[replica progate] progation done"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/replica.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 104 | / loop { [INFO] [stdout] 105 | | let (command, length) = match reader.read_command(&mut parser).await { [INFO] [stdout] 106 | | Ok(command) => command, [INFO] [stdout] 107 | | Err(e) => return Err(e), [INFO] [stdout] ... | [INFO] [stdout] 138 | | offset += length; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 140 | println!("[replica progate] progation done"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/command.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 185 | n => { [INFO] [stdout] | - matches any value [INFO] [stdout] ... [INFO] [stdout] 196 | n => return Err(RedisCommandError::DismatchedArgsNum(2, n)), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/command.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | n => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/command.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 185 | n => { [INFO] [stdout] | - matches any value [INFO] [stdout] ... [INFO] [stdout] 196 | n => return Err(RedisCommandError::DismatchedArgsNum(2, n)), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/command.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | n => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:414:22 [INFO] [stdout] | [INFO] [stdout] 414 | let (values, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:417:22 [INFO] [stdout] | [INFO] [stdout] 417 | let (values, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:420:22 [INFO] [stdout] | [INFO] [stdout] 420 | let (values, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:445:22 [INFO] [stdout] | [INFO] [stdout] 445 | let (values, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:449:22 [INFO] [stdout] | [INFO] [stdout] 449 | let (values, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | let input = "*0\r\n".as_bytes(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser.rs:485:21 [INFO] [stdout] | [INFO] [stdout] 485 | let (value, t) = parser.parse().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `redis` [INFO] [stdout] --> src/replica.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | redis: Redis, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_redis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `redis` [INFO] [stdout] --> src/replica.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | redis: Redis, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_redis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_replica` [INFO] [stdout] --> src/worker.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let is_replica = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_replica` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_replica` [INFO] [stdout] --> src/worker.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let is_replica = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_replica` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / #[structopt(long, default_value = "127.0.0.1")] [INFO] [stdout] 12 | | pub host: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / #[structopt(long)] [INFO] [stdout] 16 | | pub replicaof: Option>, [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / #[structopt(long)] [INFO] [stdout] 18 | | pub dir: Option, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / #[structopt(long, default_value = "dump.rdb")] [INFO] [stdout] 20 | | pub dbfilename: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / #[structopt(long, default_value = "127.0.0.1")] [INFO] [stdout] 12 | | pub host: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / #[structopt(long)] [INFO] [stdout] 16 | | pub replicaof: Option>, [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / #[structopt(long)] [INFO] [stdout] 18 | | pub dir: Option, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/redis.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / #[structopt(long, default_value = "dump.rdb")] [INFO] [stdout] 20 | | pub dbfilename: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust" test) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust") due to 4 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b25d86e22d2ac4b19b07c51fc242f6cc796116512dd1cb1a27fe5d8ac2a5429e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b25d86e22d2ac4b19b07c51fc242f6cc796116512dd1cb1a27fe5d8ac2a5429e", kill_on_drop: false }` [INFO] [stdout] b25d86e22d2ac4b19b07c51fc242f6cc796116512dd1cb1a27fe5d8ac2a5429e