[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCQUPTYHM%2Fturtledb" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CQUPTYHM/turtledb on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking 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-0/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lalrpop-util v0.18.1 [INFO] [stderr] Downloaded lalrpop v0.18.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", 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] 0944cbf050a7324e3fc252d0c6858abc138ec56f40e1b959710d8c7468c05357 [INFO] running `Command { std: "docker" "start" "-a" "0944cbf050a7324e3fc252d0c6858abc138ec56f40e1b959710d8c7468c05357", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0944cbf050a7324e3fc252d0c6858abc138ec56f40e1b959710d8c7468c05357", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0944cbf050a7324e3fc252d0c6858abc138ec56f40e1b959710d8c7468c05357", kill_on_drop: false }` [INFO] [stdout] 0944cbf050a7324e3fc252d0c6858abc138ec56f40e1b959710d8c7468c05357 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] d2f120ac3fdf66117363066a03ee98c7ef82c03be5fbca0a82a705a2a6e44bf6 [INFO] running `Command { std: "docker" "start" "-a" "d2f120ac3fdf66117363066a03ee98c7ef82c03be5fbca0a82a705a2a6e44bf6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling bit-vec v0.5.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling lalrpop-util v0.18.1 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling bit-set v0.5.1 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling ena v0.13.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling sha2 v0.8.1 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling string_cache_codegen v0.4.4 [INFO] [stderr] Compiling string_cache v0.7.5 [INFO] [stderr] Checking regex v1.3.6 [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: 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: 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: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling docopt v1.1.0 [INFO] [stderr] Compiling lalrpop v0.18.1 [INFO] [stderr] Compiling parser v0.1.0 (/opt/rustwide/workdir/parser) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 00s [INFO] running `Command { std: "docker" "inspect" "d2f120ac3fdf66117363066a03ee98c7ef82c03be5fbca0a82a705a2a6e44bf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f120ac3fdf66117363066a03ee98c7ef82c03be5fbca0a82a705a2a6e44bf6", kill_on_drop: false }` [INFO] [stdout] d2f120ac3fdf66117363066a03ee98c7ef82c03be5fbca0a82a705a2a6e44bf6