[INFO] cloning repository https://github.com/einQimiaozi/batioDB [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/einQimiaozi/batioDB" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeinQimiaozi%2FbatioDB", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeinQimiaozi%2FbatioDB'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 03fa50952af051f4e2e364ec1b663176a7208715 [INFO] building einQimiaozi/batioDB against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeinQimiaozi%2FbatioDB" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 71% (731/1027) Updating files: 72% (740/1027) Updating files: 73% (750/1027) Updating files: 74% (760/1027) Updating files: 75% (771/1027) Updating files: 76% (781/1027) Updating files: 77% (791/1027) Updating files: 78% (802/1027) Updating files: 79% (812/1027) Updating files: 80% (822/1027) Updating files: 81% (832/1027) Updating files: 82% (843/1027) Updating files: 83% (853/1027) Updating files: 84% (863/1027) Updating files: 85% (873/1027) Updating files: 86% (884/1027) Updating files: 87% (894/1027) Updating files: 88% (904/1027) Updating files: 89% (915/1027) Updating files: 90% (925/1027) Updating files: 91% (935/1027) Updating files: 92% (945/1027) Updating files: 93% (956/1027) Updating files: 94% (966/1027) Updating files: 95% (976/1027) Updating files: 96% (986/1027) Updating files: 97% (997/1027) Updating files: 98% (1007/1027) Updating files: 99% (1017/1027) Updating files: 100% (1027/1027) Updating files: 100% (1027/1027), done. [INFO] validating manifest of git repo https://github.com/einQimiaozi/batioDB on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/einQimiaozi/batioDB [INFO] finished tweaking git repo https://github.com/einQimiaozi/batioDB [INFO] tweaked toml for git repo https://github.com/einQimiaozi/batioDB written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/einQimiaozi/batioDB 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ec1badfd28a0841d44853453ec47be38e76c1effd674716ca6d5a4892ed92a7 [INFO] running `Command { std: "docker" "start" "-a" "7ec1badfd28a0841d44853453ec47be38e76c1effd674716ca6d5a4892ed92a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ec1badfd28a0841d44853453ec47be38e76c1effd674716ca6d5a4892ed92a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ec1badfd28a0841d44853453ec47be38e76c1effd674716ca6d5a4892ed92a7", kill_on_drop: false }` [INFO] [stdout] 7ec1badfd28a0841d44853453ec47be38e76c1effd674716ca6d5a4892ed92a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7cd2c4bea206e9039ff32ef9d6d05c2770170a07f3d9128f62ced08cb9eac69 [INFO] running `Command { std: "docker" "start" "-a" "d7cd2c4bea206e9039ff32ef9d6d05c2770170a07f3d9128f62ced08cb9eac69", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling debug-helper v0.3.13 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling crc-any v2.4.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tokio v1.18.2 [INFO] [stderr] Compiling serde_yaml v0.8.24 [INFO] [stderr] Compiling batioDB v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `QUERY` [INFO] [stdout] --> src/db.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::operations::{DELETE, INSERT, QUERY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QUERY` [INFO] [stdout] --> src/db_file.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::operations::{INSERT, QUERY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/config.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/config.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/service.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | let mut value = String::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/service.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | let (mut tx, mut rx):(Sender, Receiver) = mpsc::channel(channel_cap); [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: variable does not need to be mutable [INFO] [stdout] --> src/entry.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut status_bytes = unsafe { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut db_index: BTreeMap = DB::scan_index(&mut db_file); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut offset: u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut offset: u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut new_index: BTreeMap = self.db_index.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = DB::new(config.db_path.clone()); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY` is never used [INFO] [stdout] --> src/operations.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const QUERY: u8 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UPDATE` is never used [INFO] [stdout] --> src/operations.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const UPDATE: u8 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_path` is never read [INFO] [stdout] --> src/db.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DB { [INFO] [stdout] | -- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_entry` and `garbage_collection` are never used [INFO] [stdout] --> src/db.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl DB { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn get_entry(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn garbage_collection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DBConfig { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/db.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | Some(T) => offset = *T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/db.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | Some(T) => offset = *T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | std::fs::remove_file(self.file_path.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = std::fs::remove_file(self.file_path.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | std::fs::remove_file("gc_tmp_file.data".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = std::fs::remove_file("gc_tmp_file.data".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_file.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | self.file.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = self.file.read(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_file.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | self.file.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = self.file.read(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/service.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | ... Some(T) => T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/service.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | message.resp.send(value.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = message.resp.send(value.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/service.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | tx.send(message).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = tx.send(message).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/parse.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | Ok(T) => T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.77s [INFO] running `Command { std: "docker" "inspect" "d7cd2c4bea206e9039ff32ef9d6d05c2770170a07f3d9128f62ced08cb9eac69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7cd2c4bea206e9039ff32ef9d6d05c2770170a07f3d9128f62ced08cb9eac69", kill_on_drop: false }` [INFO] [stdout] d7cd2c4bea206e9039ff32ef9d6d05c2770170a07f3d9128f62ced08cb9eac69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1422f82ed41c10d08a19ea6b62f1176b21a4bbe1781a0695b1e5b926bbf4d6af [INFO] running `Command { std: "docker" "start" "-a" "1422f82ed41c10d08a19ea6b62f1176b21a4bbe1781a0695b1e5b926bbf4d6af", kill_on_drop: false }` [INFO] [stderr] Compiling batioDB v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `QUERY` [INFO] [stdout] --> src/db.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::operations::{DELETE, INSERT, QUERY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QUERY` [INFO] [stdout] --> src/db_file.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::operations::{INSERT, QUERY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/config.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/config.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/service.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | let mut value = String::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/service.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | let (mut tx, mut rx):(Sender, Receiver) = mpsc::channel(channel_cap); [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: variable does not need to be mutable [INFO] [stdout] --> src/entry.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut status_bytes = unsafe { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut db_index: BTreeMap = DB::scan_index(&mut db_file); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut offset: u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut offset: u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut new_index: BTreeMap = self.db_index.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = DB::new(config.db_path.clone()); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY` is never used [INFO] [stdout] --> src/operations.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const QUERY: u8 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UPDATE` is never used [INFO] [stdout] --> src/operations.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const UPDATE: u8 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_path` is never read [INFO] [stdout] --> src/db.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DB { [INFO] [stdout] | -- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_entry` and `garbage_collection` are never used [INFO] [stdout] --> src/db.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl DB { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn get_entry(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn garbage_collection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DBConfig { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/db.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | Some(T) => offset = *T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/db.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | Some(T) => offset = *T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | std::fs::remove_file(self.file_path.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = std::fs::remove_file(self.file_path.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | std::fs::remove_file("gc_tmp_file.data".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = std::fs::remove_file("gc_tmp_file.data".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_file.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | self.file.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = self.file.read(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_file.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | self.file.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = self.file.read(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/service.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | ... Some(T) => T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/service.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | message.resp.send(value.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = message.resp.send(value.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/service.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | tx.send(message).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = tx.send(message).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/parse.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | Ok(T) => T, [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "1422f82ed41c10d08a19ea6b62f1176b21a4bbe1781a0695b1e5b926bbf4d6af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1422f82ed41c10d08a19ea6b62f1176b21a4bbe1781a0695b1e5b926bbf4d6af", kill_on_drop: false }` [INFO] [stdout] 1422f82ed41c10d08a19ea6b62f1176b21a4bbe1781a0695b1e5b926bbf4d6af