[INFO] cloning repository https://github.com/Linker-123/rat-db [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Linker-123/rat-db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinker-123%2Frat-db", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinker-123%2Frat-db'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54feb170afdd41a7f396d59078bf85158cd5735f [INFO] checking Linker-123/rat-db against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinker-123%2Frat-db" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Linker-123/rat-db on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Linker-123/rat-db [INFO] finished tweaking git repo https://github.com/Linker-123/rat-db [INFO] tweaked toml for git repo https://github.com/Linker-123/rat-db written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Linker-123/rat-db 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.66 [INFO] [stderr] Downloaded windows-targets v0.48.1 [INFO] [stderr] Downloaded thiserror v1.0.44 [INFO] [stderr] Downloaded pin-project-lite v0.2.10 [INFO] [stderr] Downloaded crossbeam-queue v0.3.8 [INFO] [stderr] Downloaded thiserror-impl v1.0.44 [INFO] [stderr] Downloaded smallvec v1.11.0 [INFO] [stderr] Downloaded ordered-float v3.7.0 [INFO] [stderr] Downloaded unicode-ident v1.0.11 [INFO] [stderr] Downloaded crossbeam v0.8.2 [INFO] [stderr] Downloaded hermit-abi v0.3.2 [INFO] [stderr] Downloaded quote v1.0.32 [INFO] [stderr] Downloaded rayon-core v1.11.0 [INFO] [stderr] Downloaded serde v1.0.177 [INFO] [stderr] Downloaded log v0.4.19 [INFO] [stderr] Downloaded rayon v1.7.0 [INFO] [stderr] Downloaded syn v2.0.27 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.48.0 [INFO] [stderr] Downloaded serde_derive v1.0.177 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.48.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.48.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.48.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.48.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.48.0 [INFO] [stderr] Downloaded libc v0.2.147 [INFO] [stderr] Downloaded windows_i686_gnu v0.48.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 851bf44bc1de467961b45bfd92b558000ba8371189a83022f7f87466b68a5e1d [INFO] running `Command { std: "docker" "start" "-a" "851bf44bc1de467961b45bfd92b558000ba8371189a83022f7f87466b68a5e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "851bf44bc1de467961b45bfd92b558000ba8371189a83022f7f87466b68a5e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "851bf44bc1de467961b45bfd92b558000ba8371189a83022f7f87466b68a5e1d", kill_on_drop: false }` [INFO] [stdout] 851bf44bc1de467961b45bfd92b558000ba8371189a83022f7f87466b68a5e1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b550dd88fa844b9b08db9e25f7a700fa5e05078b675a0add44ebff56be9fb0d1 [INFO] running `Command { std: "docker" "start" "-a" "b550dd88fa844b9b08db9e25f7a700fa5e05078b675a0add44ebff56be9fb0d1", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling serde v1.0.177 [INFO] [stderr] Compiling serde_derive v1.0.177 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ordered-float v3.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking rat-storage v0.1.0 (/opt/rustwide/workdir/rat-storage) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rat-storage/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut index_manager = [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: constant `MINIMUM_FREE_HANDLES` is never used [INFO] [stdout] --> rat-storage/src/collection.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const MINIMUM_FREE_HANDLES: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAXIMUM_HANDLE_SIZE` is never used [INFO] [stdout] --> rat-storage/src/collection.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAXIMUM_HANDLE_SIZE: usize = 2000000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Collection` is never constructed [INFO] [stdout] --> rat-storage/src/collection.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Collection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scan_handles`, `create_handles`, and `write` are never used [INFO] [stdout] --> rat-storage/src/collection.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Collection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn scan_handles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn create_handles(&mut self, needed: usize, last_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn write(&self, bytes: Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `save_current`, and `load` are never used [INFO] [stdout] --> rat-storage/src/database.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl DatabaseMetadata { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn create(meta_path: PathBuf, db_name: String) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn save_current(&self, meta_path: &PathBuf) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn load(meta_path: PathBuf) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> rat-storage/src/database.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_collection`, `collection`, and `create_new` are never used [INFO] [stdout] --> rat-storage/src/database.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl Database { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 75 | pub fn new(db_path: PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create_collection(&mut self, collection_name: String) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn collection(&self, collection_name: &str) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn create_new(db_name: String) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_numeric` is never used [INFO] [stdout] --> rat-storage/src/doc.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl DocumentValue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 17 | pub fn is_numeric(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `serialize` are never used [INFO] [stdout] --> rat-storage/src/doc.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 89 | pub fn new(id: u64, fields: HashMap) -> Document { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_vec_length` is never used [INFO] [stdout] --> rat-storage/src/doc.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn insert_vec_length(vec: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Handle` is never constructed [INFO] [stdout] --> rat-storage/src/handles.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Handle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Handle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> rat-storage/src/handles.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Handle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 23 | pub fn new(path: PathBuf, id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_path(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn is_busy(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn file_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn read(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn write(&self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HandleInternal` is never constructed [INFO] [stdout] --> rat-storage/src/handles.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | struct HandleInternal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> rat-storage/src/handles.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl HandleInternal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 135 | pub fn new(path: PathBuf, id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sorting`, `MetaTooBig`, and `PathExists` are never constructed [INFO] [stdout] --> rat-storage/src/index.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IndexError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 16 | #[error("Invalid sorting method")] [INFO] [stdout] 17 | Sorting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | MetaTooBig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | PathExists, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer` and `metadata` are never read [INFO] [stdout] --> rat-storage/src/index.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct SingleIndexManager { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | writer: BufWriter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | pub metadata: IndexMetaData, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SingleIndexManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_new` and `add_index` are never used [INFO] [stdout] --> rat-storage/src/index.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl SingleIndexManager { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn create_new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn add_index(&mut self, id: usize, value: DocumentValue) -> Result<(), IndexError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SENDER` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | static mut SENDER: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MANAGER` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | static mut MANAGER: Option = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScheduledInterval` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ScheduledInterval { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntervalMessage` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum IntervalMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntervalManager` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct IntervalManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl IntervalManager { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 32 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlowInterval` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct SlowInterval { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, and `end` are never used [INFO] [stdout] --> rat-storage/src/schedule.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SlowInterval { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 104 | pub fn new(time: Duration, callback: F) -> SlowInterval [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn start(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn end(id: usize) -> Result<(), SendError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rat-storage/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut index_manager = [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: constant `MINIMUM_FREE_HANDLES` is never used [INFO] [stdout] --> rat-storage/src/collection.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const MINIMUM_FREE_HANDLES: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAXIMUM_HANDLE_SIZE` is never used [INFO] [stdout] --> rat-storage/src/collection.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAXIMUM_HANDLE_SIZE: usize = 2000000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Collection` is never constructed [INFO] [stdout] --> rat-storage/src/collection.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Collection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scan_handles`, `create_handles`, and `write` are never used [INFO] [stdout] --> rat-storage/src/collection.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Collection { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn scan_handles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn create_handles(&mut self, needed: usize, last_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn write(&self, bytes: Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `save_current`, and `load` are never used [INFO] [stdout] --> rat-storage/src/database.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl DatabaseMetadata { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn create(meta_path: PathBuf, db_name: String) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn save_current(&self, meta_path: &PathBuf) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn load(meta_path: PathBuf) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> rat-storage/src/database.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_collection`, `collection`, and `create_new` are never used [INFO] [stdout] --> rat-storage/src/database.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl Database { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 75 | pub fn new(db_path: PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create_collection(&mut self, collection_name: String) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn collection(&self, collection_name: &str) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn create_new(db_name: String) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_numeric` is never used [INFO] [stdout] --> rat-storage/src/doc.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl DocumentValue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 17 | pub fn is_numeric(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `serialize` are never used [INFO] [stdout] --> rat-storage/src/doc.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 89 | pub fn new(id: u64, fields: HashMap) -> Document { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_vec_length` is never used [INFO] [stdout] --> rat-storage/src/doc.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn insert_vec_length(vec: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Handle` is never constructed [INFO] [stdout] --> rat-storage/src/handles.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Handle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Handle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> rat-storage/src/handles.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Handle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 23 | pub fn new(path: PathBuf, id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_path(&self) -> &PathBuf { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn is_busy(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn file_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn read(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn write(&self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HandleInternal` is never constructed [INFO] [stdout] --> rat-storage/src/handles.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | struct HandleInternal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> rat-storage/src/handles.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl HandleInternal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 135 | pub fn new(path: PathBuf, id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sorting`, `MetaTooBig`, and `PathExists` are never constructed [INFO] [stdout] --> rat-storage/src/index.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IndexError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 16 | #[error("Invalid sorting method")] [INFO] [stdout] 17 | Sorting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | MetaTooBig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | PathExists, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer` and `metadata` are never read [INFO] [stdout] --> rat-storage/src/index.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct SingleIndexManager { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | writer: BufWriter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | pub metadata: IndexMetaData, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SingleIndexManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_new` and `add_index` are never used [INFO] [stdout] --> rat-storage/src/index.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl SingleIndexManager { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn create_new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn add_index(&mut self, id: usize, value: DocumentValue) -> Result<(), IndexError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SENDER` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | static mut SENDER: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MANAGER` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | static mut MANAGER: Option = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScheduledInterval` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ScheduledInterval { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntervalMessage` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum IntervalMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntervalManager` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct IntervalManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> rat-storage/src/schedule.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl IntervalManager { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 32 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SlowInterval` is never constructed [INFO] [stdout] --> rat-storage/src/schedule.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct SlowInterval { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, and `end` are never used [INFO] [stdout] --> rat-storage/src/schedule.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl SlowInterval { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 104 | pub fn new(time: Duration, callback: F) -> SlowInterval [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn start(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn end(id: usize) -> Result<(), SendError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.60s [INFO] running `Command { std: "docker" "inspect" "b550dd88fa844b9b08db9e25f7a700fa5e05078b675a0add44ebff56be9fb0d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b550dd88fa844b9b08db9e25f7a700fa5e05078b675a0add44ebff56be9fb0d1", kill_on_drop: false }` [INFO] [stdout] b550dd88fa844b9b08db9e25f7a700fa5e05078b675a0add44ebff56be9fb0d1