[INFO] fetching crate redo 0.41.1... [INFO] checking redo-0.41.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate redo 0.41.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate redo 0.41.1 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 crates.io crate redo 0.41.1 [INFO] finished tweaking crates.io crate redo 0.41.1 [INFO] tweaked toml for crates.io crate redo 0.41.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 094f27a1a5c52ffdae1e5a130ebdccbc57965dc872c3c7ed196fa0c97ae54ead [INFO] running `Command { std: "docker" "start" "-a" "094f27a1a5c52ffdae1e5a130ebdccbc57965dc872c3c7ed196fa0c97ae54ead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "094f27a1a5c52ffdae1e5a130ebdccbc57965dc872c3c7ed196fa0c97ae54ead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "094f27a1a5c52ffdae1e5a130ebdccbc57965dc872c3c7ed196fa0c97ae54ead", kill_on_drop: false }` [INFO] [stdout] 094f27a1a5c52ffdae1e5a130ebdccbc57965dc872c3c7ed196fa0c97ae54ead [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05b2fc8c527312a1044b4f52f9e7add7eb49b8d81d41bc2b386bb864de859fb4 [INFO] running `Command { std: "docker" "start" "-a" "05b2fc8c527312a1044b4f52f9e7add7eb49b8d81d41bc2b386bb864de859fb4", kill_on_drop: false }` [INFO] [stderr] Checking redo v0.41.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `self.record` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:281:31 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 280 | // Walk to `branch.current` either by undoing or redoing. [INFO] [stdout] 281 | if let Err(err) = self.record.go_to(branch.parent.current).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/history.rs:286:31 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 286 | let current = self.current(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `self.record.saved` because it was mutably borrowed [INFO] [stdout] --> src/history.rs:287:29 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | `*self` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 287 | let saved = self.record.saved.filter(|&saved| saved > current); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of borrowed `*self` [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.record` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:288:37 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 288 | let entries = match self.record.__apply(entry.command) { [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.branches` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 293 | self.branches [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `self.root` because it was mutably borrowed [INFO] [stdout] --> src/history.rs:294:33 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | `*self` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 294 | .insert(self.root, Branch::new(new, current, entries)); [INFO] [stdout] | ^^^^^^^^^ use of borrowed `*self` [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:295:21 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 295 | self.set_root(new, current, saved); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.record` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:281:31 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 280 | // Walk to `branch.current` either by undoing or redoing. [INFO] [stdout] 281 | if let Err(err) = self.record.go_to(branch.parent.current).unwrap() { [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/history.rs:286:31 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 286 | let current = self.current(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `self.record.saved` because it was mutably borrowed [INFO] [stdout] --> src/history.rs:287:29 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | `*self` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 287 | let saved = self.record.saved.filter(|&saved| saved > current); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of borrowed `*self` [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.record` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:288:37 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 288 | let entries = match self.record.__apply(entry.command) { [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.branches` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 293 | self.branches [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `redo` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0503]: cannot use `self.root` because it was mutably borrowed [INFO] [stdout] --> src/history.rs:294:33 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | `*self` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 294 | .insert(self.root, Branch::new(new, current, entries)); [INFO] [stdout] | ^^^^^^^^^ use of borrowed `*self` [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/history.rs:295:21 [INFO] [stdout] | [INFO] [stdout] 279 | for (new, branch) in self.mk_path(branch)? { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 295 | self.set_root(new, current, saved); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redo` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "05b2fc8c527312a1044b4f52f9e7add7eb49b8d81d41bc2b386bb864de859fb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05b2fc8c527312a1044b4f52f9e7add7eb49b8d81d41bc2b386bb864de859fb4", kill_on_drop: false }` [INFO] [stdout] 05b2fc8c527312a1044b4f52f9e7add7eb49b8d81d41bc2b386bb864de859fb4