[INFO] cloning repository https://github.com/WaronLimsakul/RDB2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WaronLimsakul/RDB2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWaronLimsakul%2FRDB2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWaronLimsakul%2FRDB2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a22f9b1aa83cbad4f4bb6b77e201acb7ca1bd095 [INFO] checking WaronLimsakul/RDB2 against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWaronLimsakul%2FRDB2" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WaronLimsakul/RDB2 [INFO] finished tweaking git repo https://github.com/WaronLimsakul/RDB2 [INFO] tweaked toml for git repo https://github.com/WaronLimsakul/RDB2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WaronLimsakul/RDB2 on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WaronLimsakul/RDB2 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af [INFO] running `Command { std: "docker" "start" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.189 [INFO] [stderr] Compiling cfg_aliases v0.2.2 [INFO] [stderr] Checking smallvec v1.16.0 [INFO] [stderr] Checking endian-type v0.2.0 [INFO] [stderr] Checking bitflags v2.13.1 [INFO] [stderr] Checking home v0.5.12 [INFO] [stderr] Compiling nix v0.31.3 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking radix_trie v0.3.0 [INFO] [stderr] Checking rustyline v18.0.1 [INFO] [stderr] Checking rdb2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `TSCol`, `TSKeyOption`, and `TSKey` [INFO] [stdout] --> src/interface/parser.rs:907:33 [INFO] [stdout] | [INFO] [stdout] 907 | use crate::storage::table::{TSCol, TSKey, TSKeyOption}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidType` is never constructed [INFO] [stdout] --> src/execution.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ExecErr { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | InvalidType(Type, Type), // Expect first `Type`, found the second `Type` [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecErr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `col1` and `col2` are never read [INFO] [stdout] --> src/execution/filter.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct JoinPred { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 28 | col1: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | col2: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `col` is never read [INFO] [stdout] --> src/execution/filter.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct LeafPred { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 41 | col: String, // One of them must be column, otherwise, what's the point? [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_col` is never used [INFO] [stdout] --> src/execution/project.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn get_col(schema: &Schema, target_col: &str) -> Option<(usize, Column)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `last_mut` and `find_column` are never used [INFO] [stdout] --> src/execution/query.rs:636:12 [INFO] [stdout] | [INFO] [stdout] 609 | impl Schema { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 636 | pub fn last_mut(&mut self) -> Option<&mut Column> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 641 | pub fn find_column(&self, name: &str) -> Option<(usize, Type)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `option` is never read [INFO] [stdout] --> src/execution/scan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Scan<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | option: ScanOption, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | Meta { cmd: MetaCmd, raw: String }, [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | DDL { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | DML { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | DQL { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect` is never used [INFO] [stdout] --> src/interface/lexer.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 382 | fn expect(token: Token, expect_type: TokenType, content: &'static str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_predable` is never used [INFO] [stdout] --> src/interface/parser.rs:896:4 [INFO] [stdout] | [INFO] [stdout] 896 | fn is_predable(token: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lit_node_int` is never used [INFO] [stdout] --> src/interface/parser.rs:1111:8 [INFO] [stdout] | [INFO] [stdout] 1111 | fn lit_node_int(v: i64) -> ExprNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lit_node_str` is never used [INFO] [stdout] --> src/interface/parser.rs:1114:8 [INFO] [stdout] | [INFO] [stdout] 1114 | fn lit_node_str(s: &'static str) -> ExprNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expr_node_col` is never used [INFO] [stdout] --> src/interface/parser.rs:1117:8 [INFO] [stdout] | [INFO] [stdout] 1117 | fn expr_node_col(c: &'static str) -> ExprNode { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/storage.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 184 | impl ColData { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Empty`, `InvalidKeySize`, and `KeyTypeConversion` are never constructed [INFO] [stdout] --> src/storage.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 409 | pub enum EngineErr { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 414 | Empty(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | InvalidKeySize(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | KeyTypeConversion(Type, KeyType), // Can't convert `Type` to the `KeyType` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EngineErr` 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 `value_size` is never used [INFO] [stdout] --> src/storage/cell.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> Cell<'a> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn value_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `flush`, `insert_row`, `get_all_rows`, and `find_row_by_key` are never used [INFO] [stdout] --> src/storage/engine.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl StorageEngine { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn flush(&mut self, name: &str) -> Result<(), EngineErr> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn insert_row(&mut self, table_name: &str, data: RowData) -> Result<(), EngineErr> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn get_all_rows(&mut self, table_name: &str) -> Result, EngineErr> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn find_row_by_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_page`, `is_free_page`, `next_free_node_id`, `set_next_free_node_id`, and `leaf_get_cell_by_key` are never used [INFO] [stdout] --> src/storage/node.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Page { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn is_page(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn is_free_page(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn next_free_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn set_next_free_node_id(&mut self, val: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn leaf_get_cell_by_key(&self, key: KeyData) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/storage/table.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl TableSchema { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn get_type(&self, col: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_MAGIC_NUMBER` is never used [INFO] [stdout] --> src/storage/table.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | const OFF_TABLE_MAGIC_NUMBER: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_ROOT_NODE_ID` is never used [INFO] [stdout] --> src/storage/table.rs:191:7 [INFO] [stdout] | [INFO] [stdout] 191 | const OFF_TABLE_ROOT_NODE_ID: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_FREE_PAGE` is never used [INFO] [stdout] --> src/storage/table.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 192 | const OFF_TABLE_FREE_PAGE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_NUM_COLUMNS` is never used [INFO] [stdout] --> src/storage/table.rs:193:7 [INFO] [stdout] | [INFO] [stdout] 193 | const OFF_TABLE_NUM_COLUMNS: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_COLUMN_ENTRIES` is never used [INFO] [stdout] --> src/storage/table.rs:194:7 [INFO] [stdout] | [INFO] [stdout] 194 | const OFF_TABLE_COLUMN_ENTRIES: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidType` is never constructed [INFO] [stdout] --> src/execution.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ExecErr { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | InvalidType(Type, Type), // Expect first `Type`, found the second `Type` [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecErr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `col1` and `col2` are never read [INFO] [stdout] --> src/execution/filter.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct JoinPred { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 28 | col1: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | col2: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `col` is never read [INFO] [stdout] --> src/execution/filter.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct LeafPred { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 41 | col: String, // One of them must be column, otherwise, what's the point? [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_col` is never used [INFO] [stdout] --> src/execution/project.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn get_col(schema: &Schema, target_col: &str) -> Option<(usize, Column)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `last_mut` and `find_column` are never used [INFO] [stdout] --> src/execution/query.rs:636:12 [INFO] [stdout] | [INFO] [stdout] 609 | impl Schema { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 636 | pub fn last_mut(&mut self) -> Option<&mut Column> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 641 | pub fn find_column(&self, name: &str) -> Option<(usize, Type)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `option` is never read [INFO] [stdout] --> src/execution/scan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Scan<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | option: ScanOption, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | Meta { cmd: MetaCmd, raw: String }, [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | DDL { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | DML { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/interface.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | DQL { ast: ParseTree, raw: String }, [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_predable` is never used [INFO] [stdout] --> src/interface/parser.rs:896:4 [INFO] [stdout] | [INFO] [stdout] 896 | fn is_predable(token: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lit_node_str` is never used [INFO] [stdout] --> src/interface/parser.rs:1114:8 [INFO] [stdout] | [INFO] [stdout] 1114 | fn lit_node_str(s: &'static str) -> ExprNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/storage.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 184 | impl ColData { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Empty`, `InvalidKeySize`, and `KeyTypeConversion` are never constructed [INFO] [stdout] --> src/storage.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 409 | pub enum EngineErr { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 414 | Empty(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | InvalidKeySize(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | KeyTypeConversion(Type, KeyType), // Can't convert `Type` to the `KeyType` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EngineErr` 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 `value_size` is never used [INFO] [stdout] --> src/storage/cell.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> Cell<'a> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn value_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_page`, `is_free_page`, `next_free_node_id`, `set_next_free_node_id`, and `leaf_get_cell_by_key` are never used [INFO] [stdout] --> src/storage/node.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Page { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn is_page(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn is_free_page(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn next_free_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn set_next_free_node_id(&mut self, val: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn leaf_get_cell_by_key(&self, key: KeyData) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/storage/table.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl TableSchema { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn get_type(&self, col: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_MAGIC_NUMBER` is never used [INFO] [stdout] --> src/storage/table.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | const OFF_TABLE_MAGIC_NUMBER: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_ROOT_NODE_ID` is never used [INFO] [stdout] --> src/storage/table.rs:191:7 [INFO] [stdout] | [INFO] [stdout] 191 | const OFF_TABLE_ROOT_NODE_ID: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_FREE_PAGE` is never used [INFO] [stdout] --> src/storage/table.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 192 | const OFF_TABLE_FREE_PAGE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_NUM_COLUMNS` is never used [INFO] [stdout] --> src/storage/table.rs:193:7 [INFO] [stdout] | [INFO] [stdout] 193 | const OFF_TABLE_NUM_COLUMNS: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OFF_TABLE_COLUMN_ENTRIES` is never used [INFO] [stdout] --> src/storage/table.rs:194:7 [INFO] [stdout] | [INFO] [stdout] 194 | const OFF_TABLE_COLUMN_ENTRIES: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `&str` [INFO] [stdout] --> src/storage/engine.rs:342:29 [INFO] [stdout] | [INFO] [stdout] 342 | key: TSKey::new("id".into(), KeyType::Uint, TSKeyOption::default()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 342 - key: TSKey::new("id".into(), KeyType::Uint, TSKeyOption::default()), [INFO] [stdout] 342 + key: TSKey::new("id", KeyType::Uint, TSKeyOption::default()), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 342 - key: TSKey::new("id".into(), KeyType::Uint, TSKeyOption::default()), [INFO] [stdout] 342 + key: TSKey::new(<&str as Into<_>>::into("id"), KeyType::Uint, TSKeyOption::default()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rdb2` (bin "rdb2" test) due to 1 previous error; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af", kill_on_drop: false }` [INFO] [stdout] 52af27bba8b0c966f0e18b99c8fdc114ba5ce4ef86eaeab0dd3154948988a8af