[INFO] cloning repository https://github.com/zhxiaogg/rdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhxiaogg/rdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Frdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Frdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16fbc288c87c630c1843b2ea6e14f07f00ba0345 [INFO] checking zhxiaogg/rdb against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Frdb" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zhxiaogg/rdb [INFO] finished tweaking git repo https://github.com/zhxiaogg/rdb [INFO] tweaked toml for git repo https://github.com/zhxiaogg/rdb written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zhxiaogg/rdb on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zhxiaogg/rdb 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [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 log v0.3.8 [INFO] [stderr] Downloaded byteorder v1.1.0 [INFO] [stderr] Downloaded nom v3.2.1 [INFO] [stderr] Downloaded libc v0.2.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54df2da6e24046ef511edf073162b0c2334c47e5123443ec2f41ca973bd70cc5 [INFO] running `Command { std: "docker" "start" "-a" "54df2da6e24046ef511edf073162b0c2334c47e5123443ec2f41ca973bd70cc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54df2da6e24046ef511edf073162b0c2334c47e5123443ec2f41ca973bd70cc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54df2da6e24046ef511edf073162b0c2334c47e5123443ec2f41ca973bd70cc5", kill_on_drop: false }` [INFO] [stdout] 54df2da6e24046ef511edf073162b0c2334c47e5123443ec2f41ca973bd70cc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63ef7cfc83661f87578a3e63d86eecb46c24f049a12c07672b0936d4d605dd53 [INFO] running `Command { std: "docker" "start" "-a" "63ef7cfc83661f87578a3e63d86eecb46c24f049a12c07672b0936d4d605dd53", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.34 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking rdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/table/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - (self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page()) [INFO] [stdout] 140 + self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sql::SQLType` [INFO] [stdout] --> src/vm/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sql::SQLType; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::codegen::OpCode` [INFO] [stdout] --> src/vm/row_buf.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::codegen::OpCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IResult` [INFO] [stdout] --> src/sql/mod.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::{alphanumeric, IResult}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IResult` [INFO] [stdout] --> src/sql/operands.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::{alphanumeric, digit, IResult}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/table/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - (self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page()) [INFO] [stdout] 140 + self.cell_index >= (page.get_num_cells() as usize) && !page.has_next_page() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sql::SQLType` [INFO] [stdout] --> src/vm/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sql::SQLType; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::codegen::OpCode` [INFO] [stdout] --> src/vm/row_buf.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::codegen::OpCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree.rs:289:17 [INFO] [stdout] | [INFO] [stdout] 289 | let mut new_cell_index = match inserted { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/vm/codegen.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | ref table, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `table: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/vm/codegen.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | &Operand::String(ref str) => Some(SQLType::String), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `column` [INFO] [stdout] --> src/vm/codegen.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | &Operand::Column(ref column) => panic!("not implemented"), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vm/row_buf.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RowBuf { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Exit` is never constructed [INFO] [stdout] --> src/vm/codegen.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum OpCode { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Exit(ErrCode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table/mod.rs:96:26 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn select_cursor(&self) -> SelectCursor { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 96 | pub fn select_cursor(&self) -> SelectCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table/mod.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn insert_cursor(&mut self, key: u32) -> UpdateCursor { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 104 | pub fn insert_cursor(&mut self, key: u32) -> UpdateCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pager.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | }).clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/btree.rs:289:17 [INFO] [stdout] | [INFO] [stdout] 289 | let mut new_cell_index = match inserted { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/vm/codegen.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | ref table, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `table: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/vm/codegen.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | &Operand::String(ref str) => Some(SQLType::String), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `column` [INFO] [stdout] --> src/vm/codegen.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | &Operand::Column(ref column) => panic!("not implemented"), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vm/row_buf.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RowBuf { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Exit` is never constructed [INFO] [stdout] --> src/vm/codegen.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum OpCode { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Exit(ErrCode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table/mod.rs:96:26 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn select_cursor(&self) -> SelectCursor { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 96 | pub fn select_cursor(&self) -> SelectCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/table/mod.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn insert_cursor(&mut self, key: u32) -> UpdateCursor { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 104 | pub fn insert_cursor(&mut self, key: u32) -> UpdateCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/pager.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | }).clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [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" "63ef7cfc83661f87578a3e63d86eecb46c24f049a12c07672b0936d4d605dd53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63ef7cfc83661f87578a3e63d86eecb46c24f049a12c07672b0936d4d605dd53", kill_on_drop: false }` [INFO] [stdout] 63ef7cfc83661f87578a3e63d86eecb46c24f049a12c07672b0936d4d605dd53