[INFO] cloning repository https://github.com/WVAviator/myco-kv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WVAviator/myco-kv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWVAviator%2Fmyco-kv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWVAviator%2Fmyco-kv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7be2942cd9be8d611b299b48e227ee4034f0ddee [INFO] checking WVAviator/myco-kv against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWVAviator%2Fmyco-kv" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/WVAviator/myco-kv on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/WVAviator/myco-kv [INFO] finished tweaking git repo https://github.com/WVAviator/myco-kv [INFO] tweaked toml for git repo https://github.com/WVAviator/myco-kv written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/WVAviator/myco-kv 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4631bb237378dce469755426f7eab91b1981c1d28df14957fd31ec74fd9c6694 [INFO] running `Command { std: "docker" "start" "-a" "4631bb237378dce469755426f7eab91b1981c1d28df14957fd31ec74fd9c6694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4631bb237378dce469755426f7eab91b1981c1d28df14957fd31ec74fd9c6694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4631bb237378dce469755426f7eab91b1981c1d28df14957fd31ec74fd9c6694", kill_on_drop: false }` [INFO] [stdout] 4631bb237378dce469755426f7eab91b1981c1d28df14957fd31ec74fd9c6694 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 060700002d1b596bd7818a62985d54db2606e311526f7d72903dddcea2aa6573 [INFO] running `Command { std: "docker" "start" "-a" "060700002d1b596bd7818a62985d54db2606e311526f7d72903dddcea2aa6573", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking regex-syntax v0.7.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking regex v1.8.4 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking predicates v2.1.5 [INFO] [stderr] Checking clap_builder v4.3.5 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling clap_derive v4.3.2 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Checking clap v4.3.5 [INFO] [stderr] Checking mockall v0.11.4 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking myco-kv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/kvmap/mod.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 27 | | .wal [INFO] [stdout] 28 | | .lock() [INFO] [stdout] 29 | | .unwrap() [INFO] [stdout] | |_____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 33 | })?; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 34 | [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 26 ~ let binding = self [INFO] [stdout] 27 + .wal [INFO] [stdout] 28 + .lock() [INFO] [stdout] 29 + .unwrap(); [INFO] [stdout] 30 ~ let line_iter = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:43:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 43 | if let Err(error) = self.put(key, value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 49 | if let Err(error) = self.delete(&key) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 55 | if let Err(error) = self.expire_at(expiration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `myco-kv` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/kvmap/mod.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 27 | | .wal [INFO] [stdout] 28 | | .lock() [INFO] [stdout] 29 | | .unwrap() [INFO] [stdout] | |_____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 33 | })?; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 34 | [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 26 ~ let binding = self [INFO] [stdout] 27 + .wal [INFO] [stdout] 28 + .lock() [INFO] [stdout] 29 + .unwrap(); [INFO] [stdout] 30 ~ let line_iter = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:43:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 43 | if let Err(error) = self.put(key, value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 49 | if let Err(error) = self.delete(&key) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/kvmap/mod.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 26 | let line_iter = self [INFO] [stdout] | _________________________- [INFO] [stdout] 27 | | .wal [INFO] [stdout] | |________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | for line in line_iter { [INFO] [stdout] | --------- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 55 | if let Err(error) = self.expire_at(expiration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `myco-kv` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "060700002d1b596bd7818a62985d54db2606e311526f7d72903dddcea2aa6573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "060700002d1b596bd7818a62985d54db2606e311526f7d72903dddcea2aa6573", kill_on_drop: false }` [INFO] [stdout] 060700002d1b596bd7818a62985d54db2606e311526f7d72903dddcea2aa6573