[INFO] cloning repository https://github.com/whitemime/bitcask-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whitemime/bitcask-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitemime%2Fbitcask-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitemime%2Fbitcask-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c0df9796fd038f45c76885f0d302280c23e5854 [INFO] checking whitemime/bitcask-rs against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitemime%2Fbitcask-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/whitemime/bitcask-rs [INFO] finished tweaking git repo https://github.com/whitemime/bitcask-rs [INFO] tweaked toml for git repo https://github.com/whitemime/bitcask-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/whitemime/bitcask-rs 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/whitemime/bitcask-rs 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 18c774b965d3c89d48c5835fc9023e8dea50a152917118bb1cd9554353b2bbdb [INFO] running `Command { std: "docker" "start" "-a" "18c774b965d3c89d48c5835fc9023e8dea50a152917118bb1cd9554353b2bbdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18c774b965d3c89d48c5835fc9023e8dea50a152917118bb1cd9554353b2bbdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18c774b965d3c89d48c5835fc9023e8dea50a152917118bb1cd9554353b2bbdb", kill_on_drop: false }` [INFO] [stdout] 18c774b965d3c89d48c5835fc9023e8dea50a152917118bb1cd9554353b2bbdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] b3d891b1cf9e730122b9eb1c0eeabda3fe0564bbc95c48c3f817b79305e19f43 [INFO] running `Command { std: "docker" "start" "-a" "b3d891b1cf9e730122b9eb1c0eeabda3fe0564bbc95c48c3f817b79305e19f43", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking jiff v0.2.24 [INFO] [stderr] Checking anstream v1.0.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking env_filter v1.0.1 [INFO] [stderr] Checking env_logger v0.11.10 [INFO] [stderr] Checking bitcask-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `logRecordType` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum logRecordType { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecordType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `logRecord` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct logRecord { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `logRecordPos` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct logRecordPos { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecordPos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/data/data_file.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{data::{self, log_record::logRecord}, errors::Result, fio}; [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 variable: `dir_path` [INFO] [stdout] --> src/data/data_file.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(dir_path:PathBuf,file_id:u32) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_id` [INFO] [stdout] --> src/data/data_file.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(dir_path:PathBuf,file_id:u32) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/data/data_file.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read_log_record(&self,offset:u64) ->Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/data/data_file.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn write(&self,buf:&[u8]) ->Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `del` is never used [INFO] [stdout] --> src/index/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Indexer : Sync +Send { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn del(&self,key:Vec) ->bool; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTree` is never constructed [INFO] [stdout] --> src/index/btree.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BTree { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/index/btree.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BTree { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() ->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/data/log_record.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct logRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 11 | pub(crate) key:Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `io_manage` is never read [INFO] [stdout] --> src/data/data_file.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct DataFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | io_manage:Box,//io接口 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `write`, and `sync` are never used [INFO] [stdout] --> src/fio/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait IOManager:Sync +Send { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 6 | //从文件给定位置读取对应数据 [INFO] [stdout] 7 | fn read(&self,buf:&mut [u8],offset:u64)->Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | //写入字节数组到文件中 [INFO] [stdout] 9 | fn write(&self,buf:&[u8]) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | //持久化数据 [INFO] [stdout] 11 | fn sync(&self)->Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIO` is never constructed [INFO] [stdout] --> src/fio/file_io.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct FileIO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fio/file_io.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FileIO { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(file_name:PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Engine` is never constructed [INFO] [stdout] --> src/db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Engine { [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: type `logRecordType` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum logRecordType { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecordType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `logRecord` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct logRecord { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `logRecordPos` should have an upper camel case name [INFO] [stdout] --> src/data/log_record.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct logRecordPos { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LogRecordPos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/data/data_file.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{data::{self, log_record::logRecord}, errors::Result, fio}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcask-rs` (lib) due to 1 previous error; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `dir_path` [INFO] [stdout] --> src/data/data_file.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(dir_path:PathBuf,file_id:u32) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_id` [INFO] [stdout] --> src/data/data_file.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(dir_path:PathBuf,file_id:u32) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/data/data_file.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read_log_record(&self,offset:u64) ->Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/data/data_file.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn write(&self,buf:&[u8]) ->Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `del` is never used [INFO] [stdout] --> src/index/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Indexer : Sync +Send { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn del(&self,key:Vec) ->bool; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/data/log_record.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct logRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 11 | pub(crate) key:Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `io_manage` is never read [INFO] [stdout] --> src/data/data_file.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct DataFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | io_manage:Box,//io接口 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `write`, and `sync` are never used [INFO] [stdout] --> src/fio/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait IOManager:Sync +Send { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 6 | //从文件给定位置读取对应数据 [INFO] [stdout] 7 | fn read(&self,buf:&mut [u8],offset:u64)->Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | //写入字节数组到文件中 [INFO] [stdout] 9 | fn write(&self,buf:&[u8]) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | //持久化数据 [INFO] [stdout] 11 | fn sync(&self)->Result<()>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileIO` is never constructed [INFO] [stdout] --> src/fio/file_io.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct FileIO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fio/file_io.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl FileIO { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(file_name:PathBuf) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Engine` is never constructed [INFO] [stdout] --> src/db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Engine { [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] [stderr] error: could not compile `bitcask-rs` (lib test) due to 1 previous error; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b3d891b1cf9e730122b9eb1c0eeabda3fe0564bbc95c48c3f817b79305e19f43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3d891b1cf9e730122b9eb1c0eeabda3fe0564bbc95c48c3f817b79305e19f43", kill_on_drop: false }` [INFO] [stdout] b3d891b1cf9e730122b9eb1c0eeabda3fe0564bbc95c48c3f817b79305e19f43