[INFO] cloning repository https://github.com/konnidb/bridge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/konnidb/bridge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkonnidb%2Fbridge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkonnidb%2Fbridge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70713f0e71461bd38469f25d4f43a0bcf3bee2ef [INFO] checking konnidb/bridge against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkonnidb%2Fbridge" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/konnidb/bridge on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/konnidb/bridge [INFO] finished tweaking git repo https://github.com/konnidb/bridge [INFO] tweaked toml for git repo https://github.com/konnidb/bridge written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/konnidb/bridge 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d017c20a7e955f17c5a0f93967df1f08b59624d19c264205a7cc98a3529c13b4 [INFO] running `Command { std: "docker" "start" "-a" "d017c20a7e955f17c5a0f93967df1f08b59624d19c264205a7cc98a3529c13b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d017c20a7e955f17c5a0f93967df1f08b59624d19c264205a7cc98a3529c13b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d017c20a7e955f17c5a0f93967df1f08b59624d19c264205a7cc98a3529c13b4", kill_on_drop: false }` [INFO] [stdout] d017c20a7e955f17c5a0f93967df1f08b59624d19c264205a7cc98a3529c13b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71c3cbe81fda244b04f7300bfe706753523f3bc878ff3fa972beac7ced468113 [INFO] running `Command { std: "docker" "start" "-a" "71c3cbe81fda244b04f7300bfe706753523f3bc878ff3fa972beac7ced468113", kill_on_drop: false }` [INFO] [stderr] Checking bridgedb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `option` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{option, ops::Deref}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::btree_map::Keys` and `ops::Deref` [INFO] [stdout] --> src/storage/bptree/node.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::btree_map::Keys, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Index` [INFO] [stdout] --> src/storage/mod.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | use super::{Index, IndexHandler}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/schemas/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::Bytes` [INFO] [stdout] --> src/graph_engine/mod.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, str::Bytes, vec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `comparisons::*` [INFO] [stdout] --> src/graph_engine/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use comparisons::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `option` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{option, ops::Deref}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::btree_map::Keys` and `ops::Deref` [INFO] [stdout] --> src/storage/bptree/node.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::btree_map::Keys, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/schemas/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::Bytes` [INFO] [stdout] --> src/graph_engine/mod.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, str::Bytes, vec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `comparisons::*` [INFO] [stdout] --> src/graph_engine/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use comparisons::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/storage/bptree/node.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/storage/bptree/node.rs:25:44 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/storage/bptree/node.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/storage/bptree/node.rs:25:44 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/bptree/node.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut node = &mut Node::new(32); [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: unused variable: `err` [INFO] [stdout] --> src/storage/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut file = File::open(&self.path); [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/storage/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut file = File::open(&self.path); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sentence_map` [INFO] [stdout] --> src/query_lang/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sentence_map: HashMap<&str, bool> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sentence_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/query_lang/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut tokens = self.query.split(" "); [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/query_lang/mod.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sentence_map: HashMap<&str, bool> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sentence_map` [INFO] [stdout] --> src/query_lang/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sentence_map: HashMap<&str, bool> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sentence_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/storage/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexHandler` is never constructed [INFO] [stdout] --> src/storage/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct IndexHandler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_index`, `store_index`, and `get_next_page_id` are never used [INFO] [stdout] --> src/storage/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl IndexHandler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(path: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn load_index(&self) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn store_index(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_next_page_id(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinPlusTree` is never constructed [INFO] [stdout] --> src/storage/bptree/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BinPlusTree<'a, 'b> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinPlusTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/storage/bptree/node.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `new`, `insert`, and `insert_key_at_idx` are never used [INFO] [stdout] --> src/storage/bptree/node.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Node<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(order: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn insert_key_at_idx(&mut self, key: &'a i32, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_numeric` is never used [INFO] [stdout] --> src/schemas/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_numeric(val_type: &ValueType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema_name`, `properties`, and `index_properties` are never read [INFO] [stdout] --> src/schemas/schema_str.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Schema<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | properties: HashMap<&'a String, &'a ValueMetaData<'a>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | index_properties: HashMap<&'a String, &'a ValueMetaData<'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Schema` 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 `new`, `can_remove_property`, `remove_property`, `add_property`, and `alter_property` are never used [INFO] [stdout] --> src/schemas/schema_str.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Schema<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn can_remove_property(&self, prop_name: &'a String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn remove_property(&mut self, prop_name: &'a String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_property( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn alter_property( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value_type`, `name`, `allow_null`, `is_index`, and `is_unique` are never read [INFO] [stdout] --> src/schemas/value_meta_data.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ValueMetaData<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 5 | pub value_type: &'a ValueType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub allow_null: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub is_index: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub is_unique: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueMetaData` 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 function `new` is never used [INFO] [stdout] --> src/schemas/value_meta_data.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> ValueMetaData<'a> { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `INT`, `LONG`, `FLOAT`, `BOOLEAN`, and `TEXT` are never constructed [INFO] [stdout] --> src/schemas/value_type.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | INT, // 32 BIT [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | LONG, // 64 BIT [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | FLOAT, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | BOOLEAN, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | TEXT, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` 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 `is_directed`, `nodes`, and `edges` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Graph<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | is_directed: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | nodes: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | edges: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Graph` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_sentence` is never used [INFO] [stdout] --> src/graph_engine/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl<'a> Graph<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 28 | pub fn match_sentence(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema` and `data` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 35 | schema: Schema<'a>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `source` and `dest` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Edge<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 41 | source: &'a Node<'a>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | dest: &'a Node<'a>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greater_than` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn greater_than() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `less_than` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn less_than() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equals` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn equals() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Match` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Match { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Match` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryNode` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct QueryNode<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryNode` 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 function `new` is never used [INFO] [stdout] --> src/query_lang/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Match { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(nodes: Vec, vertices: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Query` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Query<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` 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 `new` and `get_nodes` are never used [INFO] [stdout] --> src/query_lang/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'a> Query<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 31 | pub fn new(query: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_nodes(self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&str` instead of dereferencing the inner type [INFO] [stdout] --> src/main.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | let item = get.get(0).unwrap().deref(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/query_lang/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut tokens = self.query.split(" "); [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/query_lang/mod.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sentence_map: HashMap<&str, bool> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Index` is never constructed [INFO] [stdout] --> src/storage/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Index { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index_map` is never read [INFO] [stdout] --> src/storage/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct IndexHandler { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 12 | path: String, [INFO] [stdout] 13 | index_map: Option> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `load_index`, `store_index`, and `get_next_page_id` are never used [INFO] [stdout] --> src/storage/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl IndexHandler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn load_index(&self) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn store_index(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_next_page_id(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinPlusTree` is never constructed [INFO] [stdout] --> src/storage/bptree/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BinPlusTree<'a, 'b> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinPlusTree` 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 `keys`, `stored_values`, `left`, `right`, and `is_leaf` are never read [INFO] [stdout] --> src/storage/bptree/node.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | pub order: i32, [INFO] [stdout] 6 | pub keys: Option<&'a mut Vec<&'a i32>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub stored_values: Option<&'a mut Vec<&'a str>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub left: Option<&'a mut Self>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pub right: Option<&'a mut Self>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub is_leaf: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert` and `insert_key_at_idx` are never used [INFO] [stdout] --> src/storage/bptree/node.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Node<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn insert(&mut self, key: &'a i32, value: &'a str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn insert_key_at_idx(&mut self, key: &'a i32, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_numeric` is never used [INFO] [stdout] --> src/schemas/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_numeric(val_type: &ValueType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema_name`, `properties`, and `index_properties` are never read [INFO] [stdout] --> src/schemas/schema_str.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Schema<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | properties: HashMap<&'a String, &'a ValueMetaData<'a>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | index_properties: HashMap<&'a String, &'a ValueMetaData<'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Schema` 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 `new`, `can_remove_property`, `remove_property`, `add_property`, and `alter_property` are never used [INFO] [stdout] --> src/schemas/schema_str.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Schema<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn can_remove_property(&self, prop_name: &'a String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn remove_property(&mut self, prop_name: &'a String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_property( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn alter_property( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `allow_null`, `is_index`, and `is_unique` are never read [INFO] [stdout] --> src/schemas/value_meta_data.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ValueMetaData<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 5 | pub value_type: &'a ValueType, [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub allow_null: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub is_index: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub is_unique: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueMetaData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LONG`, `FLOAT`, `BOOLEAN`, and `TEXT` are never constructed [INFO] [stdout] --> src/schemas/value_type.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ValueType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | INT, // 32 BIT [INFO] [stdout] 4 | LONG, // 64 BIT [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | FLOAT, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | BOOLEAN, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | TEXT, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValueType` 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 `is_directed`, `nodes`, and `edges` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Graph<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | is_directed: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | nodes: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | edges: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Graph` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_sentence` is never used [INFO] [stdout] --> src/graph_engine/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl<'a> Graph<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 28 | pub fn match_sentence(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema` and `data` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 35 | schema: Schema<'a>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `source` and `dest` are never read [INFO] [stdout] --> src/graph_engine/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Edge<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 41 | source: &'a Node<'a>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | dest: &'a Node<'a>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greater_than` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn greater_than() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `less_than` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn less_than() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equals` is never used [INFO] [stdout] --> src/graph_engine/comparisons.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn equals() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Match` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Match { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Match` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryNode` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct QueryNode<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryNode` 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 function `new` is never used [INFO] [stdout] --> src/query_lang/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Match { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(nodes: Vec, vertices: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Query` is never constructed [INFO] [stdout] --> src/query_lang/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Query<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` 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 `new` and `get_nodes` are never used [INFO] [stdout] --> src/query_lang/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'a> Query<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 31 | pub fn new(query: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_nodes(self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&str` instead of dereferencing the inner type [INFO] [stdout] --> src/main.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | let item = get.get(0).unwrap().deref(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_new_Node` should have a snake case name [INFO] [stdout] --> src/storage/bptree/node.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn test_new_Node() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_new_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_new_IndexHandler` should have a snake case name [INFO] [stdout] --> src/storage/mod.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn test_new_IndexHandler() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_new_index_handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ValueMetaData_new` should have a snake case name [INFO] [stdout] --> src/schemas/mod.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn test_ValueMetaData_new() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_value_meta_data_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "71c3cbe81fda244b04f7300bfe706753523f3bc878ff3fa972beac7ced468113", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71c3cbe81fda244b04f7300bfe706753523f3bc878ff3fa972beac7ced468113", kill_on_drop: false }` [INFO] [stdout] 71c3cbe81fda244b04f7300bfe706753523f3bc878ff3fa972beac7ced468113