[INFO] cloning repository https://github.com/xymeng16/rustkv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xymeng16/rustkv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxymeng16%2Frustkv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxymeng16%2Frustkv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7184aeeb9c72be04bc540140ecb24126f04c41f9 [INFO] checking xymeng16/rustkv against try#7d2afcda7a9c043d5175cbca3ab08f0acf02b13a for pr-140824 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxymeng16%2Frustkv" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xymeng16/rustkv on toolchain 7d2afcda7a9c043d5175cbca3ab08f0acf02b13a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xymeng16/rustkv [INFO] finished tweaking git repo https://github.com/xymeng16/rustkv [INFO] tweaked toml for git repo https://github.com/xymeng16/rustkv written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/xymeng16/rustkv 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" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "fetch" "--manifest-path" "Cargo.toml", 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] Downloading crates ... [INFO] [stderr] Downloaded function_name-proc-macro v0.2.0 [INFO] [stderr] Downloaded bson v2.0.0-beta.2 [INFO] [stderr] Downloaded function_name v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1392eb4029bfc4278c890d22fd9feb098c3f777ae33f730bca452006fa2f4a8d [INFO] running `Command { std: "docker" "start" "-a" "1392eb4029bfc4278c890d22fd9feb098c3f777ae33f730bca452006fa2f4a8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1392eb4029bfc4278c890d22fd9feb098c3f777ae33f730bca452006fa2f4a8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1392eb4029bfc4278c890d22fd9feb098c3f777ae33f730bca452006fa2f4a8d", kill_on_drop: false }` [INFO] [stdout] 1392eb4029bfc4278c890d22fd9feb098c3f777ae33f730bca452006fa2f4a8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+7d2afcda7a9c043d5175cbca3ab08f0acf02b13a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60a036806afad34330a86441300d6256cc6c868582379ee6101d4514c62730b3 [INFO] running `Command { std: "docker" "start" "-a" "60a036806afad34330a86441300d6256cc6c868582379ee6101d4514c62730b3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking gimli v0.24.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Checking object v0.25.3 [INFO] [stderr] Checking rustc-demangle v0.1.20 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking addr2line v0.15.2 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking simple_logger v1.11.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking predicates-tree v1.0.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Compiling structopt-derive v0.4.15 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking structopt v0.3.22 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking bson v2.0.0-beta.2 [INFO] [stderr] Checking assert_cmd v0.11.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling function_name-proc-macro v0.2.0 [INFO] [stderr] Checking function_name v0.2.0 [INFO] [stderr] Checking rustkv v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_name::named` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use function_name::named; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_name::named` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use function_name::named; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logptr.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut n = self.write_buf.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logptr.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut n = self.write_buf.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let n = buf.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_read` and `latest_log_position` are never read [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct KvStore{ [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | is_read: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 61 | is_dirty: bool, [INFO] [stdout] 62 | latest_log_position: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/lib.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let n = buf.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_read` and `latest_log_position` are never read [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct KvStore{ [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | is_read: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 61 | is_dirty: bool, [INFO] [stdout] 62 | latest_log_position: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | self.logfiles[self.active_log_file].force_write_back(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = self.logfiles[self.active_log_file].force_write_back(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | self.logfiles[self.active_log_file].file.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 72 | let _ = self.logfiles[self.active_log_file].file.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | index_file.write_all(buf.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = index_file.write_all(buf.as_slice()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | index_file.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 81 | let _ = index_file.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | std::io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = std::io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_KvStoreError` [INFO] [stdout] 3 | #[allow(dead_code)] [INFO] [stdout] 4 | pub enum KvStoreError { [INFO] [stdout] | ------------ `KvStoreError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_KvStoreError` [INFO] [stdout] 3 | #[allow(dead_code)] [INFO] [stdout] 4 | pub enum KvStoreError { [INFO] [stdout] | ------------ `KvStoreError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/logptr.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | self.file.write_all(self.write_buf.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 150 | let _ = self.file.write_all(self.write_buf.as_slice()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/logptr.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.file.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = self.file.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | self.logfiles[self.active_log_file].force_write_back(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = self.logfiles[self.active_log_file].force_write_back(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | self.logfiles[self.active_log_file].file.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 72 | let _ = self.logfiles[self.active_log_file].file.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | index_file.write_all(buf.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = index_file.write_all(buf.as_slice()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | index_file.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 81 | let _ = index_file.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | std::io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = std::io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_KvStoreError` [INFO] [stdout] 3 | #[allow(dead_code)] [INFO] [stdout] 4 | pub enum KvStoreError { [INFO] [stdout] | ------------ `KvStoreError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_KvStoreError` [INFO] [stdout] 3 | #[allow(dead_code)] [INFO] [stdout] 4 | pub enum KvStoreError { [INFO] [stdout] | ------------ `KvStoreError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/logptr.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | self.file.write_all(self.write_buf.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 150 | let _ = self.file.write_all(self.write_buf.as_slice()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/logptr.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | self.file.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = self.file.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustkv::logptr::KvStoreLogFile` [INFO] [stdout] --> src/bin/rustkv.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rustkv::logptr::KvStoreLogFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustkv::logptr::KvStoreLogFile` [INFO] [stdout] --> src/bin/rustkv.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rustkv::logptr::KvStoreLogFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bson v2.0.0-beta.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "60a036806afad34330a86441300d6256cc6c868582379ee6101d4514c62730b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60a036806afad34330a86441300d6256cc6c868582379ee6101d4514c62730b3", kill_on_drop: false }` [INFO] [stdout] 60a036806afad34330a86441300d6256cc6c868582379ee6101d4514c62730b3