[INFO] fetching crate gctree 0.28.0... [INFO] checking gctree-0.28.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate gctree 0.28.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate gctree 0.28.0 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 gctree 0.28.0 [INFO] finished tweaking crates.io crate gctree 0.28.0 [INFO] tweaked toml for crates.io crate gctree 0.28.0 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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] 3f50e23c1976d1e16f2112bc54fdbab188deebbf6cf2ca416dea4f11b4727125 [INFO] running `Command { std: "docker" "start" "-a" "3f50e23c1976d1e16f2112bc54fdbab188deebbf6cf2ca416dea4f11b4727125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f50e23c1976d1e16f2112bc54fdbab188deebbf6cf2ca416dea4f11b4727125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f50e23c1976d1e16f2112bc54fdbab188deebbf6cf2ca416dea4f11b4727125", kill_on_drop: false }` [INFO] [stdout] 3f50e23c1976d1e16f2112bc54fdbab188deebbf6cf2ca416dea4f11b4727125 [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] d79d52753580dd1dc8b0ed473288ab9412f90b98c3da9660ee253828ae706785 [INFO] running `Command { std: "docker" "start" "-a" "d79d52753580dd1dc8b0ed473288ab9412f90b98c3da9660ee253828ae706785", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Checking ioe v0.6.0 [INFO] [stderr] Checking thiserror v1.0.48 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking gctree v0.28.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 101 | for idx in self.dfs(node_idx).rev(/* leaves -> ... -> node_idx */) { [INFO] [stdout] | ------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 105 | self.rm_edges(self[idx].parent_idxs().collect::>(), [idx])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 113 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Rev>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.garbage` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 101 | for idx in self.dfs(node_idx).rev(/* leaves -> ... -> node_idx */) { [INFO] [stdout] | ------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 112 | self.garbage.push_back(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 125 | for idx in self.dfs(node_idx) { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 126 | if self[idx].has_parents() { continue } [INFO] [stdout] 127 | self.rm_edges([idx], self[idx].child_idxs().collect::>())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl DoubleEndedIterator + Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.garbage` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 125 | for idx in self.dfs(node_idx) { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 133 | self.garbage.push_back(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 101 | for idx in self.dfs(node_idx).rev(/* leaves -> ... -> node_idx */) { [INFO] [stdout] | ------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 105 | self.rm_edges(self[idx].parent_idxs().collect::>(), [idx])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 113 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Rev>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.garbage` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 101 | for idx in self.dfs(node_idx).rev(/* leaves -> ... -> node_idx */) { [INFO] [stdout] | ------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 112 | self.garbage.push_back(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 125 | for idx in self.dfs(node_idx) { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 126 | if self[idx].has_parents() { continue } [INFO] [stdout] 127 | self.rm_edges([idx], self[idx].child_idxs().collect::>())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl DoubleEndedIterator + Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.garbage` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/arena.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 125 | for idx in self.dfs(node_idx) { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 133 | self.garbage.push_back(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gctree` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gctree` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "d79d52753580dd1dc8b0ed473288ab9412f90b98c3da9660ee253828ae706785", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d79d52753580dd1dc8b0ed473288ab9412f90b98c3da9660ee253828ae706785", kill_on_drop: false }` [INFO] [stdout] d79d52753580dd1dc8b0ed473288ab9412f90b98c3da9660ee253828ae706785