[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] 8f9c1bedd4a6baf71561686cb97dbb4c3bfe26bd [INFO] checking xymeng16/rustkv against try#39e1293fce4b650061e85dda88aa428f726a8444 for pr-88041 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxymeng16%2Frustkv" "/workspace/builds/worker-56/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-56/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xymeng16/rustkv on toolchain 39e1293fce4b650061e85dda88aa428f726a8444 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39e1293fce4b650061e85dda88aa428f726a8444" "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-56/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: "/workspace/cargo-home/bin/cargo" "+39e1293fce4b650061e85dda88aa428f726a8444" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded function_name-proc-macro v0.2.0 [INFO] [stderr] Downloaded function_name v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+39e1293fce4b650061e85dda88aa428f726a8444" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6cca692cda1fc098fb9de1b62107a28b24e94d84f1a8efd1131e1d534d288b1a [INFO] running `Command { std: "docker" "start" "-a" "6cca692cda1fc098fb9de1b62107a28b24e94d84f1a8efd1131e1d534d288b1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cca692cda1fc098fb9de1b62107a28b24e94d84f1a8efd1131e1d534d288b1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cca692cda1fc098fb9de1b62107a28b24e94d84f1a8efd1131e1d534d288b1a", kill_on_drop: false }` [INFO] [stdout] 6cca692cda1fc098fb9de1b62107a28b24e94d84f1a8efd1131e1d534d288b1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+39e1293fce4b650061e85dda88aa428f726a8444" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5efae804c7c9532184ca84d001c885a890bebc8229f84d2bd88bfd4714e99bd6 [INFO] running `Command { std: "docker" "start" "-a" "5efae804c7c9532184ca84d001c885a890bebc8229f84d2bd88bfd4714e99bd6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 syn v1.0.74 [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 getrandom v0.1.16 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking gimli v0.24.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking rustc-demangle v0.1.20 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking predicates-tree v1.0.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking object v0.25.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking addr2line v0.15.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking simple_logger v1.11.0 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Compiling synstructure v0.12.5 [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] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking assert_cmd v0.11.1 [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: `OpenOptions` [INFO] [stdout] --> src/lib.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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] [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: `OpenOptions` [INFO] [stdout] --> src/lib.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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] [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 variable: `index_file` [INFO] [stdout] --> src/lib.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let index_file = File::create(INDEX_FILENAME)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_file` [INFO] [stdout] --> src/lib.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let index_file = File::create(INDEX_FILENAME)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `logfiles` [INFO] [stdout] --> src/lib.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | let active_log_file = logfiles[0].borrow_mut(); [INFO] [stdout] | -------- `logfiles` is borrowed here [INFO] [stdout] 93 | / Ok(KvStore { [INFO] [stdout] 94 | | map: HashMap::new(), [INFO] [stdout] 95 | | logfiles, [INFO] [stdout] 96 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 100 | | active_log_file, [INFO] [stdout] 101 | | }) [INFO] [stdout] | |__________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `logfiles` [INFO] [stdout] --> src/lib.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | let active_log_file = logfiles[0].borrow_mut(); [INFO] [stdout] | -------- `logfiles` is borrowed here [INFO] [stdout] 93 | / Ok(KvStore { [INFO] [stdout] 94 | | map: HashMap::new(), [INFO] [stdout] 95 | | logfiles, [INFO] [stdout] 96 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 100 | | active_log_file, [INFO] [stdout] 101 | | }) [INFO] [stdout] | |__________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `logfiles` because it is borrowed [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 76 | impl<'a> KvStore<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 92 | let active_log_file = logfiles[0].borrow_mut(); [INFO] [stdout] | -------- borrow of `logfiles` occurs here [INFO] [stdout] 93 | / Ok(KvStore { [INFO] [stdout] 94 | | map: HashMap::new(), [INFO] [stdout] 95 | | logfiles, [INFO] [stdout] | | ^^^^^^^^ move out of `logfiles` occurs here [INFO] [stdout] 96 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 100 | | active_log_file, [INFO] [stdout] 101 | | }) [INFO] [stdout] | |__________- returning this value requires that `logfiles` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / Ok(KvStore { [INFO] [stdout] 119 | | map: HashMap::new(), [INFO] [stdout] 120 | | logfiles: Vec::new(), [INFO] [stdout] 121 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 125 | | active_log_file: &mut KvStoreLogFile::create_or_open(1, "a.bson")?, [INFO] [stdout] | | -------------------------------------------- temporary value created here [INFO] [stdout] 126 | | }) [INFO] [stdout] | |__________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `logfiles` because it is borrowed [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 76 | impl<'a> KvStore<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 92 | let active_log_file = logfiles[0].borrow_mut(); [INFO] [stdout] | -------- borrow of `logfiles` occurs here [INFO] [stdout] 93 | / Ok(KvStore { [INFO] [stdout] 94 | | map: HashMap::new(), [INFO] [stdout] 95 | | logfiles, [INFO] [stdout] | | ^^^^^^^^ move out of `logfiles` occurs here [INFO] [stdout] 96 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 100 | | active_log_file, [INFO] [stdout] 101 | | }) [INFO] [stdout] | |__________- returning this value requires that `logfiles` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / Ok(KvStore { [INFO] [stdout] 119 | | map: HashMap::new(), [INFO] [stdout] 120 | | logfiles: Vec::new(), [INFO] [stdout] 121 | | write_buf: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 125 | | active_log_file: &mut KvStoreLogFile::create_or_open(1, "a.bson")?, [INFO] [stdout] | | -------------------------------------------- temporary value created here [INFO] [stdout] 126 | | }) [INFO] [stdout] | |__________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `file` [INFO] [stdout] --> src/logptr.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 93 | let file = OpenOptions::new() [INFO] [stdout] | ---- move occurs because `file` has type `File`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 99 | file, [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 103 | current_position: file.metadata().unwrap().len(), [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `file` [INFO] [stdout] --> src/logptr.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 93 | let file = OpenOptions::new() [INFO] [stdout] | ---- move occurs because `file` has type `File`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 99 | file, [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 103 | current_position: file.metadata().unwrap().len(), [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logptr.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustkv` due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "5efae804c7c9532184ca84d001c885a890bebc8229f84d2bd88bfd4714e99bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5efae804c7c9532184ca84d001c885a890bebc8229f84d2bd88bfd4714e99bd6", kill_on_drop: false }` [INFO] [stdout] 5efae804c7c9532184ca84d001c885a890bebc8229f84d2bd88bfd4714e99bd6