[INFO] cloning repository https://github.com/shishirdongre/rust_database_assignment [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shishirdongre/rust_database_assignment" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshishirdongre%2Frust_database_assignment", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshishirdongre%2Frust_database_assignment'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c5b5f88fc1941bc77143a20351aa64dd0966a06 [INFO] checking shishirdongre/rust_database_assignment against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshishirdongre%2Frust_database_assignment" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shishirdongre/rust_database_assignment on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shishirdongre/rust_database_assignment [INFO] finished tweaking git repo https://github.com/shishirdongre/rust_database_assignment [INFO] tweaked toml for git repo https://github.com/shishirdongre/rust_database_assignment written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/shishirdongre/rust_database_assignment 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a95ead7ab3e414dbec40904ba923df73ce55551c9c68a8b9bbac649bf8097b21 [INFO] running `Command { std: "docker" "start" "-a" "a95ead7ab3e414dbec40904ba923df73ce55551c9c68a8b9bbac649bf8097b21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a95ead7ab3e414dbec40904ba923df73ce55551c9c68a8b9bbac649bf8097b21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a95ead7ab3e414dbec40904ba923df73ce55551c9c68a8b9bbac649bf8097b21", kill_on_drop: false }` [INFO] [stdout] a95ead7ab3e414dbec40904ba923df73ce55551c9c68a8b9bbac649bf8097b21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42b64c360c2e56ecd2fa01ab82355360650dc4f6dc9eac0d30016fb508dcd46c [INFO] running `Command { std: "docker" "start" "-a" "42b64c360c2e56ecd2fa01ab82355360650dc4f6dc9eac0d30016fb508dcd46c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling rustix v0.38.38 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling prettyplease v0.2.25 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Checking anstyle v1.0.9 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking anstream v0.6.17 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling prost-derive v0.13.3 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling prost v0.13.3 [INFO] [stderr] Compiling prost-types v0.13.3 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Compiling prost-build v0.13.3 [INFO] [stderr] Compiling db_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::table_definition::Table` [INFO] [stdout] --> src/database_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::table_definition::Table; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/database_manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/database_manager.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell` [INFO] [stdout] --> src/database_manager.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{cell, fmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/file_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminated` [INFO] [stdout] --> src/nom_parser.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | sequence::{delimited, pair, preceded, terminated, tuple}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/parser.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/semantic_processor.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColumnType` and `Column` [INFO] [stdout] --> src/main.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use column_definition::{Column, ColumnType}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseError` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use database_manager::{DatabaseError, DatabaseManager}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `file_manager::FileManager` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use file_manager::FileManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `run_parser` [INFO] [stdout] --> src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | use nom_parser::{parse_command, run_parser, Command as ParsedCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::Parser` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `table_definition::Table` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use table_definition::Table; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::table_definition::Table` [INFO] [stdout] --> src/database_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::table_definition::Table; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/database_manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/database_manager.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell` [INFO] [stdout] --> src/database_manager.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{cell, fmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/file_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminated` [INFO] [stdout] --> src/nom_parser.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | sequence::{delimited, pair, preceded, terminated, tuple}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/parser.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/semantic_processor.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ColumnType` and `Column` [INFO] [stdout] --> src/main.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use column_definition::{Column, ColumnType}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseError` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use database_manager::{DatabaseError, DatabaseManager}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `file_manager::FileManager` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use file_manager::FileManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `run_parser` [INFO] [stdout] --> src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | use nom_parser::{parse_command, run_parser, Command as ParsedCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::Parser` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `table_definition::Table` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use table_definition::Table; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/database_manager.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let database: Database = self.load_database(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `columns` [INFO] [stdout] --> src/database_manager.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | columns, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `columns: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_table` [INFO] [stdout] --> src/database_manager.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | join_table, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `join_table: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/database_manager.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let database: Database = self.load_database(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `columns` [INFO] [stdout] --> src/database_manager.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | columns, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `columns: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_table` [INFO] [stdout] --> src/database_manager.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | join_table, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `join_table: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColumnType` is never used [INFO] [stdout] --> src/column_definition.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ColumnType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Column` is never constructed [INFO] [stdout] --> src/column_definition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Column { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Column` 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/column_definition.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Column { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(name: &str, col_type: ColumnType, not_null: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownError` is never constructed [INFO] [stdout] --> src/database_manager.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum DatabaseError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | UnknownError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseError` 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 `FileManager` is never constructed [INFO] [stdout] --> src/file_manager.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FileManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_file`, and `write_file` are never used [INFO] [stdout] --> src/file_manager.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FileManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read_file(&self) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn write_file(&self, data: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_parser` is never used [INFO] [stdout] --> src/nom_parser.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn run_parser() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parser<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `parse_tokens` are never used [INFO] [stdout] --> src/parser.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(command: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn parse_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SemanticProcessor` is never constructed [INFO] [stdout] --> src/semantic_processor.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SemanticProcessor<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process_create_table`, `process_drop_table`, `process_list_tables`, and `process_list_schema` are never used [INFO] [stdout] --> src/semantic_processor.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> SemanticProcessor<'a> { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new(tpd_list: &'a mut TpdList) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn process_create_table(&mut self, table_name: &str, columns: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn process_drop_table(&mut self, table_name: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn process_list_tables(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn process_list_schema(&self, table_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Table` is never constructed [INFO] [stdout] --> src/table_definition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Table { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Table` 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 `add_column` are never used [INFO] [stdout] --> src/table_definition.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Table { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(name: &str, columns: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_column(&mut self, column: Column) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TpdEntry` is never constructed [INFO] [stdout] --> src/table_manager.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TpdEntry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TpdEntry` 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/table_manager.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TpdEntry { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(table_name: &str, columns: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TpdList` is never constructed [INFO] [stdout] --> src/table_manager.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct TpdList { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TpdList` 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`, `add_tpd_entry`, `drop_tpd_entry`, and `get_tpd_entry` are never used [INFO] [stdout] --> src/table_manager.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl TpdList { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_tpd_entry(&mut self, entry: TpdEntry) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn drop_tpd_entry(&mut self, table_name: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_tpd_entry(&self, table_name: &str) -> Option<&TpdEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Keyword, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Identifier, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | TypeName, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Constant, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | FunctionName, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | Terminator, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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 `Token` is never constructed [INFO] [stdout] --> src/token.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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/token.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(tok_string: &str, tok_type: TokenType, tok_value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColumnType` is never used [INFO] [stdout] --> src/column_definition.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ColumnType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Column` is never constructed [INFO] [stdout] --> src/column_definition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Column { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Column` 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/column_definition.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Column { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(name: &str, col_type: ColumnType, not_null: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownError` is never constructed [INFO] [stdout] --> src/database_manager.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum DatabaseError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | UnknownError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseError` 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 `FileManager` is never constructed [INFO] [stdout] --> src/file_manager.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FileManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_file`, and `write_file` are never used [INFO] [stdout] --> src/file_manager.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FileManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read_file(&self) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn write_file(&self, data: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_parser` is never used [INFO] [stdout] --> src/nom_parser.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn run_parser() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parser<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `parse_tokens` are never used [INFO] [stdout] --> src/parser.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(command: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn parse_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SemanticProcessor` is never constructed [INFO] [stdout] --> src/semantic_processor.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SemanticProcessor<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process_create_table`, `process_drop_table`, `process_list_tables`, and `process_list_schema` are never used [INFO] [stdout] --> src/semantic_processor.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> SemanticProcessor<'a> { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new(tpd_list: &'a mut TpdList) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn process_create_table(&mut self, table_name: &str, columns: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn process_drop_table(&mut self, table_name: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn process_list_tables(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn process_list_schema(&self, table_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Table` is never constructed [INFO] [stdout] --> src/table_definition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Table { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Table` 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 `add_column` are never used [INFO] [stdout] --> src/table_definition.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Table { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(name: &str, columns: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_column(&mut self, column: Column) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TpdEntry` is never constructed [INFO] [stdout] --> src/table_manager.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TpdEntry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TpdEntry` 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/table_manager.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TpdEntry { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(table_name: &str, columns: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TpdList` is never constructed [INFO] [stdout] --> src/table_manager.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct TpdList { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TpdList` 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`, `add_tpd_entry`, `drop_tpd_entry`, and `get_tpd_entry` are never used [INFO] [stdout] --> src/table_manager.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl TpdList { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_tpd_entry(&mut self, entry: TpdEntry) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn drop_tpd_entry(&mut self, table_name: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_tpd_entry(&self, table_name: &str) -> Option<&TpdEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Keyword, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Identifier, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | TypeName, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | Constant, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | FunctionName, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | Terminator, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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 `Token` is never constructed [INFO] [stdout] --> src/token.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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/token.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(tok_string: &str, tok_type: TokenType, tok_value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.43s [INFO] running `Command { std: "docker" "inspect" "42b64c360c2e56ecd2fa01ab82355360650dc4f6dc9eac0d30016fb508dcd46c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42b64c360c2e56ecd2fa01ab82355360650dc4f6dc9eac0d30016fb508dcd46c", kill_on_drop: false }` [INFO] [stdout] 42b64c360c2e56ecd2fa01ab82355360650dc4f6dc9eac0d30016fb508dcd46c