[INFO] cloning repository https://github.com/ashishk15678/db [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ashishk15678/db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2da402d055af1d73f074138c2c64db2cfd23f16d [INFO] checking ashishk15678/db against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fdb" "/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/ashishk15678/db [INFO] finished tweaking git repo https://github.com/ashishk15678/db [INFO] tweaked toml for git repo https://github.com/ashishk15678/db written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ashishk15678/db on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ashishk15678/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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3fcc25756b015ccf3887a5820e6dafc00820b819934bd09dfd76170e93d2bbd9 [INFO] running `Command { std: "docker" "start" "-a" "3fcc25756b015ccf3887a5820e6dafc00820b819934bd09dfd76170e93d2bbd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3fcc25756b015ccf3887a5820e6dafc00820b819934bd09dfd76170e93d2bbd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fcc25756b015ccf3887a5820e6dafc00820b819934bd09dfd76170e93d2bbd9", kill_on_drop: false }` [INFO] [stdout] 3fcc25756b015ccf3887a5820e6dafc00820b819934bd09dfd76170e93d2bbd9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4269fdade0bee271fc1fbf47d32483754fadf184c77cdeb46edef2e4c587ae20 [INFO] running `Command { std: "docker" "start" "-a" "4269fdade0bee271fc1fbf47d32483754fadf184c77cdeb46edef2e4c587ae20", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling zmij v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.148 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Compiling protobuf v3.7.2 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking toml_writer v1.0.4 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking proctitle v0.1.1 [INFO] [stderr] Checking sysinfo v0.37.2 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_parser v1.0.4 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking protobuf-support v3.7.2 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking db v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/DS/B_tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/config.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{Display, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/db/partition/mod.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | db::http::{HttpResponse, handleClient}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpStream` and `ops::Deref` [INFO] [stdout] --> src/db/partition/mod.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | ops::Deref, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `thread` [INFO] [stdout] --> src/db/partition/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | io::{Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | net::SocketAddr, [INFO] [stdout] 21 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CATALOG` and `TableSchema` [INFO] [stdout] --> src/db/storage/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::catalog::{TableSchema, CATALOG}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::sql::parser::Expression` [INFO] [stdout] --> src/db/storage/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::db::sql::parser::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/init.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | config::{self, Config}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/DS/B_tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/config.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{Display, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/db/partition/mod.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | db::http::{HttpResponse, handleClient}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpStream` and `ops::Deref` [INFO] [stdout] --> src/db/partition/mod.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | ops::Deref, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `thread` [INFO] [stdout] --> src/db/partition/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | io::{Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | net::SocketAddr, [INFO] [stdout] 21 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CATALOG` and `TableSchema` [INFO] [stdout] --> src/db/storage/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::catalog::{TableSchema, CATALOG}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db::sql::parser::Expression` [INFO] [stdout] --> src/db/storage/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::db::sql::parser::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/init.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | config::{self, Config}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db/partition/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut sys = System::new_all(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db/partition/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut sys = System::new_all(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/db/partition/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut file = OpenOptions::new() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashed_partition_key` [INFO] [stdout] --> src/db/partition/mod.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let hashed_partition_key = aes::Aes::new(&partition_key.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashed_partition_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alias` [INFO] [stdout] --> src/db/sql/parser.rs:716:45 [INFO] [stdout] | [INFO] [stdout] 716 | } else if let Token::Identifier(alias) = self.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/db/partition/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut file = OpenOptions::new() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashed_partition_key` [INFO] [stdout] --> src/db/partition/mod.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let hashed_partition_key = aes::Aes::new(&partition_key.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashed_partition_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/hashing/aes.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | let a = a << 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Page` is never constructed [INFO] [stdout] --> src/db/pager/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pageId` is never read [INFO] [stdout] --> src/db/pager/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Record { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pageId: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pageId` and `records` are never read [INFO] [stdout] --> src/db/pager/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Page { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 44 | pageId: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DbCommon` is never used [INFO] [stdout] --> src/db/pager/mod.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | trait DbCommon { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `throttle` is never read [INFO] [stdout] --> src/db/partition/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct DataBaseClient { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | throttle: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataBaseClient` 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 `pkcs7_pad` is never used [INFO] [stdout] --> src/hashing/aes.rs:260:4 [INFO] [stdout] | [INFO] [stdout] 260 | fn pkcs7_pad(data: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pkcs7_unpad` is never used [INFO] [stdout] --> src/hashing/aes.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn pkcs7_unpad(data: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DS` should have a snake case name [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod DS; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `B_tree` should have a snake case name [INFO] [stdout] --> src/DS/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod B_tree; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `b_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handleClient` should have a snake case name [INFO] [stdout] --> src/db/http/mod.rs:139:14 [INFO] [stdout] | [INFO] [stdout] 139 | pub async fn handleClient(stream: TcpStream) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `handle_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `INIT` should have a snake case name [INFO] [stdout] --> src/init.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn INIT(config: Config) -> Result> { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `init` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alias` [INFO] [stdout] --> src/db/sql/parser.rs:716:45 [INFO] [stdout] | [INFO] [stdout] 716 | } else if let Token::Identifier(alias) = self.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alias` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `db` (bin "db") due to 1 previous error; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/hashing/aes.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | let a = a << 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Page` is never constructed [INFO] [stdout] --> src/db/pager/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pageId` is never read [INFO] [stdout] --> src/db/pager/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Record { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pageId: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pageId` and `records` are never read [INFO] [stdout] --> src/db/pager/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Page { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 44 | pageId: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DbCommon` is never used [INFO] [stdout] --> src/db/pager/mod.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | trait DbCommon { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `throttle` is never read [INFO] [stdout] --> src/db/partition/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct DataBaseClient { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | throttle: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataBaseClient` 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 `pkcs7_pad` is never used [INFO] [stdout] --> src/hashing/aes.rs:260:4 [INFO] [stdout] | [INFO] [stdout] 260 | fn pkcs7_pad(data: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pkcs7_unpad` is never used [INFO] [stdout] --> src/hashing/aes.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn pkcs7_unpad(data: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DS` should have a snake case name [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod DS; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `B_tree` should have a snake case name [INFO] [stdout] --> src/DS/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod B_tree; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `b_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handleClient` should have a snake case name [INFO] [stdout] --> src/db/http/mod.rs:139:14 [INFO] [stdout] | [INFO] [stdout] 139 | pub async fn handleClient(stream: TcpStream) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `handle_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `INIT` should have a snake case name [INFO] [stdout] --> src/init.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn INIT(config: Config) -> Result> { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `init` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `db` (bin "db" test) due to 1 previous error; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4269fdade0bee271fc1fbf47d32483754fadf184c77cdeb46edef2e4c587ae20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4269fdade0bee271fc1fbf47d32483754fadf184c77cdeb46edef2e4c587ae20", kill_on_drop: false }` [INFO] [stdout] 4269fdade0bee271fc1fbf47d32483754fadf184c77cdeb46edef2e4c587ae20