[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#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flryan599%2Fmini-redis" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [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-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lryan599/mini-redis on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded opentelemetry v0.20.0 [INFO] [stderr] Downloaded opentelemetry-aws v0.8.0 [INFO] [stderr] Downloaded ordered-float v3.9.1 [INFO] [stderr] Downloaded matchit v0.7.2 [INFO] [stderr] Downloaded opentelemetry-otlp v0.13.0 [INFO] [stderr] Downloaded opentelemetry-semantic-conventions v0.12.0 [INFO] [stderr] Downloaded tonic v0.9.2 [INFO] [stderr] Downloaded opentelemetry_api v0.20.0 [INFO] [stderr] Downloaded opentelemetry_sdk v0.20.0 [INFO] [stderr] Downloaded tracing-opentelemetry v0.21.0 [INFO] [stderr] Downloaded opentelemetry-proto v0.3.0 [INFO] [stderr] Downloaded h2 v0.3.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3a2375ea2a1b48e14e5baba01e79ac7446df8ae818dc53f68b40d25629be873 [INFO] running `Command { std: "docker" "start" "-a" "a3a2375ea2a1b48e14e5baba01e79ac7446df8ae818dc53f68b40d25629be873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3a2375ea2a1b48e14e5baba01e79ac7446df8ae818dc53f68b40d25629be873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3a2375ea2a1b48e14e5baba01e79ac7446df8ae818dc53f68b40d25629be873", kill_on_drop: false }` [INFO] [stdout] a3a2375ea2a1b48e14e5baba01e79ac7446df8ae818dc53f68b40d25629be873 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d27a1f4c8d4d9351bebe9a51c61ab43a64d098d483a686a6289cda6dabaaccb8 [INFO] running `Command { std: "docker" "start" "-a" "d27a1f4c8d4d9351bebe9a51c61ab43a64d098d483a686a6289cda6dabaaccb8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Checking regex-syntax v0.7.5 [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 socket2 v0.5.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking clap_builder v4.4.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking regex-automata v0.3.8 [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 clap_derive v4.4.2 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking clap v4.4.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 25.00s [INFO] running `Command { std: "docker" "inspect" "d27a1f4c8d4d9351bebe9a51c61ab43a64d098d483a686a6289cda6dabaaccb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d27a1f4c8d4d9351bebe9a51c61ab43a64d098d483a686a6289cda6dabaaccb8", kill_on_drop: false }` [INFO] [stdout] d27a1f4c8d4d9351bebe9a51c61ab43a64d098d483a686a6289cda6dabaaccb8