[INFO] cloning repository https://github.com/lryan599/mini-redis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lryan599/mini-redis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis'... [INFO] [stderr] fatal: write error: No space left on device [INFO] [stderr] fatal: fetch-pack: invalid index-pack output [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/lryan599/mini-redis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lryan599/mini-redis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7db4ecb647a998cd8c0829fd2b273fce2b49f71 [INFO] checking lryan599/mini-redis against master#8a65ee08296b36342bf7c3cdc15312ccbc357227 for pr-142704 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lryan599/mini-redis on toolchain 8a65ee08296b36342bf7c3cdc15312ccbc357227 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lryan599/mini-redis [INFO] finished tweaking git repo https://github.com/lryan599/mini-redis [INFO] tweaked toml for git repo https://github.com/lryan599/mini-redis written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lryan599/mini-redis 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" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-opentelemetry v0.21.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdda9d3a79d295ca0bc2c0cb57efefd523208e6bec53977b652072e0bd612166 [INFO] running `Command { std: "docker" "start" "-a" "bdda9d3a79d295ca0bc2c0cb57efefd523208e6bec53977b652072e0bd612166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdda9d3a79d295ca0bc2c0cb57efefd523208e6bec53977b652072e0bd612166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdda9d3a79d295ca0bc2c0cb57efefd523208e6bec53977b652072e0bd612166", kill_on_drop: false }` [INFO] [stdout] bdda9d3a79d295ca0bc2c0cb57efefd523208e6bec53977b652072e0bd612166 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a480e9bd444b20ef20faa2d0eb8a36acf5486a0920353f5b5e758f2b97751106 [INFO] running `Command { std: "docker" "start" "-a" "a480e9bd444b20ef20faa2d0eb8a36acf5486a0920353f5b5e758f2b97751106", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking clap_builder v4.4.2 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking clap v4.4.2 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking mini-redis v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/cmd/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/multi.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/exec.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/discard.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/incr.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::cmd::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/cmd/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/multi.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/exec.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/discard.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Connection, Frame, Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseError` [INFO] [stdout] --> src/cmd/incr.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::cmd::{Parse, ParseError}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/db.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | if let Some(v) = state.entries.remove(key) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut state = self.shared.state.lock().unwrap(); [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: method `into_frame` is never used [INFO] [stdout] --> src/cmd/multi.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Multi { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/exec.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Exec { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/discard.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Discard { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/del.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Del { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/incr.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Incr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_state` is never used [INFO] [stdout] --> src/db.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | fn save_state(&self) -> crate::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/db.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 374 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 382 | fn save(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/db.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | if let Some(v) = state.entries.remove(key) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut state = self.shared.state.lock().unwrap(); [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: method `into_frame` is never used [INFO] [stdout] --> src/cmd/multi.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Multi { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/exec.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Exec { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/discard.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Discard { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/del.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Del { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_frame` is never used [INFO] [stdout] --> src/cmd/incr.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Incr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) fn into_frame(self) -> Frame { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_state` is never used [INFO] [stdout] --> src/db.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 121 | impl Db { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | fn save_state(&self) -> crate::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/db.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 374 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 382 | fn save(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> tests/rdb_reader.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> tests/rdb_reader.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{io, u8, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/rdb_reader.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | STRING(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoding` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 37 - STRING(String), [INFO] [stdout] 37 + STRING(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/rdb_reader.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | I8(i8), [INFO] [stdout] | -- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoding` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 38 - I8(i8), [INFO] [stdout] 38 + I8(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/rdb_reader.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | I16(i16), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoding` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 39 - I16(i16), [INFO] [stdout] 39 + I16(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/rdb_reader.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | I32(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Decoding` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 - I32(i32), [INFO] [stdout] 40 + I32(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> tests/rdb_reader.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct RDB { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 52 | // 0x5245444953, "redis" [INFO] [stdout] 53 | magic_string: [u8; 5], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 54 | // 读时不检查RDB版本,但写为0x30303039 [INFO] [stdout] 55 | version: [u8; 4], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | // metadata最多由三个FA组成 [INFO] [stdout] 57 | metadata: Bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | // 只考虑一个数据库,0xFE00 [INFO] [stdout] 59 | db_selector: [u8; 2], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | // 以FB开头,后接两个length-int [INFO] [stdout] 61 | resize_db: Bytes, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 62 | // 以FD开头,后接一个$unsigned int代表时间戳,后面是$value-type,$string-encoded-key和$encoded-value [INFO] [stdout] 63 | kv_expiry: Bytes, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 64 | // 以FC开头,后接一个$unsigned long代表时间戳,后面是$value-type,$string-encoded-key和$encoded-value [INFO] [stdout] 65 | kv_expiry_ms: Bytes, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 66 | // 没有过期限制的KV,由$value-type,$string-encoded-key和$encoded-value组成 [INFO] [stdout] 67 | kv: Bytes, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.83s [INFO] running `Command { std: "docker" "inspect" "a480e9bd444b20ef20faa2d0eb8a36acf5486a0920353f5b5e758f2b97751106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a480e9bd444b20ef20faa2d0eb8a36acf5486a0920353f5b5e758f2b97751106", kill_on_drop: false }` [INFO] [stdout] a480e9bd444b20ef20faa2d0eb8a36acf5486a0920353f5b5e758f2b97751106