[INFO] cloning repository https://github.com/CQUPTYHM/turtledb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CQUPTYHM/turtledb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCQUPTYHM%2Fturtledb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCQUPTYHM%2Fturtledb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c005599384168a02f768483b9584d2aba99bc634 [INFO] checking CQUPTYHM/turtledb against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCQUPTYHM%2Fturtledb" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CQUPTYHM/turtledb on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CQUPTYHM/turtledb [INFO] removed workspace from git repo https://github.com/CQUPTYHM/turtledb [INFO] finished tweaking git repo https://github.com/CQUPTYHM/turtledb [INFO] tweaked toml for git repo https://github.com/CQUPTYHM/turtledb written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/CQUPTYHM/turtledb already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-12/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5295f678ef1fcd1c9ed44b0a7e4095bcabe0f7fec8f014108a4106f4c138eeb1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5295f678ef1fcd1c9ed44b0a7e4095bcabe0f7fec8f014108a4106f4c138eeb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5295f678ef1fcd1c9ed44b0a7e4095bcabe0f7fec8f014108a4106f4c138eeb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5295f678ef1fcd1c9ed44b0a7e4095bcabe0f7fec8f014108a4106f4c138eeb1", kill_on_drop: false }` [INFO] [stdout] 5295f678ef1fcd1c9ed44b0a7e4095bcabe0f7fec8f014108a4106f4c138eeb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c73d06a09dae4d290faa38cd0052eaec958ed4b8ccba6e682b48cbaa881c1b0b [INFO] running `Command { std: "docker" "start" "-a" "c73d06a09dae4d290faa38cd0052eaec958ed4b8ccba6e682b48cbaa881c1b0b", 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] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking turtledb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/store/file.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store::file` [INFO] [stdout] --> src/store/page.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::store::file; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> src/store/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `table` should have an upper camel case name [INFO] [stdout] --> src/store/table.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct table { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::tablecode` [INFO] [stdout] --> src/executer/executer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::tablecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store` [INFO] [stdout] --> src/executer/executer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::store; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/store/file.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store::file` [INFO] [stdout] --> src/store/page.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::store::file; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> src/store/table.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `table` should have an upper camel case name [INFO] [stdout] --> src/store/table.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct table { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::tablecode` [INFO] [stdout] --> src/executer/executer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::tablecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::store` [INFO] [stdout] --> src/executer/executer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::store; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let b = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_meta_data` [INFO] [stdout] --> src/executer/executer.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_meta_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/executer/executer.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/executer/executer.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/executer/executer.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/executer/executer.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/store/file.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FileManager` [INFO] [stdout] --> src/store/file.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FileManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/file.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_file` [INFO] [stdout] --> src/store/file.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn open_file(&mut self, file_path: &str) -> Result<(), io::Error>{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_file` [INFO] [stdout] --> src/store/file.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn create_file(&mut self, file_path: &str) -> Result<(), io::Error>{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `allocted_page` [INFO] [stdout] --> src/store/file.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn allocted_page(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_page` [INFO] [stdout] --> src/store/file.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn read_page(&mut self, page_id: i64) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_page` [INFO] [stdout] --> src/store/file.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn write_page(&mut self, page_id: i64, data: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/store/page.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const PAGE_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(page_id: i32, page_size: i32, check_sum: i32, transaction_id: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(page_header: PageHeader) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TablePage` [INFO] [stdout] --> src/store/page.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct TablePage { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new(header: PageHeader, size_tuple: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_tuple` [INFO] [stdout] --> src/store/page.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn insert_tuple(&mut self, tuple_data: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tuple` [INFO] [stdout] --> src/store/page.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn delete_tuple(&mut self, tuple_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_tuple` [INFO] [stdout] --> src/store/page.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn update_tuple(&mut self, tuple_id: usize) -> Result<(), &str>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_num_tuple` [INFO] [stdout] --> src/store/page.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_num_tuple(size_tuple: usize) -> usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `table` [INFO] [stdout] --> src/store/table.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct table { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `code_table_name` [INFO] [stdout] --> src/utils/tablecode.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn code_table_name(table_name: &str, db_name: &str, ) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_table` [INFO] [stdout] --> src/executer/executer.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert` [INFO] [stdout] --> src/executer/executer.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `to_Bytes` should have a snake case name [INFO] [stdout] --> src/store/page.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn to_Bytes(&self) -> Bytes; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `to_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let b = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_meta_data` [INFO] [stdout] --> src/executer/executer.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_meta_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/executer/executer.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/executer/executer.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/executer/executer.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/executer/executer.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/store/file.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FileManager` [INFO] [stdout] --> src/store/file.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FileManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/file.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open_file` [INFO] [stdout] --> src/store/file.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn open_file(&mut self, file_path: &str) -> Result<(), io::Error>{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_file` [INFO] [stdout] --> src/store/file.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn create_file(&mut self, file_path: &str) -> Result<(), io::Error>{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `allocted_page` [INFO] [stdout] --> src/store/file.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn allocted_page(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_page` [INFO] [stdout] --> src/store/file.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn read_page(&mut self, page_id: i64) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_page` [INFO] [stdout] --> src/store/file.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn write_page(&mut self, page_id: i64, data: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/store/page.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const PAGE_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(page_id: i32, page_size: i32, check_sum: i32, transaction_id: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(page_header: PageHeader) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TablePage` [INFO] [stdout] --> src/store/page.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct TablePage { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/store/page.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new(header: PageHeader, size_tuple: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_tuple` [INFO] [stdout] --> src/store/page.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn insert_tuple(&mut self, tuple_data: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tuple` [INFO] [stdout] --> src/store/page.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn delete_tuple(&mut self, tuple_id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_tuple` [INFO] [stdout] --> src/store/page.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn update_tuple(&mut self, tuple_id: usize) -> Result<(), &str>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_num_tuple` [INFO] [stdout] --> src/store/page.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_num_tuple(size_tuple: usize) -> usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `table` [INFO] [stdout] --> src/store/table.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct table { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `code_table_name` [INFO] [stdout] --> src/utils/tablecode.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn code_table_name(table_name: &str, db_name: &str, ) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_table` [INFO] [stdout] --> src/executer/executer.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_table(table_meta_data: &str, table_name: &str, db_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert` [INFO] [stdout] --> src/executer/executer.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn insert(table_name :&str, data: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `to_Bytes` should have a snake case name [INFO] [stdout] --> src/store/page.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn to_Bytes(&self) -> Bytes; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `to_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.03s [INFO] running `Command { std: "docker" "inspect" "c73d06a09dae4d290faa38cd0052eaec958ed4b8ccba6e682b48cbaa881c1b0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c73d06a09dae4d290faa38cd0052eaec958ed4b8ccba6e682b48cbaa881c1b0b", kill_on_drop: false }` [INFO] [stdout] c73d06a09dae4d290faa38cd0052eaec958ed4b8ccba6e682b48cbaa881c1b0b