[INFO] cloning repository https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/winksaville/expr-cannot-borrow-mutable-e0502" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwinksaville%2Fexpr-cannot-borrow-mutable-e0502", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwinksaville%2Fexpr-cannot-borrow-mutable-e0502'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10e39a0c4b6a293ee0021af0f42ee834b7203141 [INFO] checking winksaville/expr-cannot-borrow-mutable-e0502 against master#b3bd7058c139e71bae0862ef8f8ac936208873e9 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwinksaville%2Fexpr-cannot-borrow-mutable-e0502" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 on toolchain b3bd7058c139e71bae0862ef8f8ac936208873e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 [INFO] finished tweaking git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 [INFO] tweaked toml for git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 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" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "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 [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking winksaville/expr-cannot-borrow-mutable-e0502 against try#57fe1b734d9ff1c8a92bda60b85506b9648158d3 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwinksaville%2Fexpr-cannot-borrow-mutable-e0502" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 on toolchain 57fe1b734d9ff1c8a92bda60b85506b9648158d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 [INFO] finished tweaking git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 [INFO] tweaked toml for git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/winksaville/expr-cannot-borrow-mutable-e0502 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" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 066b83d690cbe757add676c366fc71c5962d8de10c54ddd787a984f2135747b4 [INFO] running `Command { std: "docker" "start" "-a" "066b83d690cbe757add676c366fc71c5962d8de10c54ddd787a984f2135747b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "066b83d690cbe757add676c366fc71c5962d8de10c54ddd787a984f2135747b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "066b83d690cbe757add676c366fc71c5962d8de10c54ddd787a984f2135747b4", kill_on_drop: false }` [INFO] [stdout] 066b83d690cbe757add676c366fc71c5962d8de10c54ddd787a984f2135747b4 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3619401dceddbd31f91cd28e5683a03f95c33840e2a541af8f8b0708b3c8521 [INFO] running `Command { std: "docker" "start" "-a" "b3619401dceddbd31f91cd28e5683a03f95c33840e2a541af8f8b0708b3c8521", kill_on_drop: false }` [INFO] [stderr] Checking expr-cannot-borrow-mutable-e0502 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | for i in self.nums.iter() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 25 | sum += i; [INFO] [stdout] 26 | self.push_sum(sum); // Uncommenting this causes compile error E0502 [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/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | for i in self.nums.iter() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 25 | sum += i; [INFO] [stdout] 26 | self.push_sum(sum); // Uncommenting this causes compile error E0502 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `expr-cannot-borrow-mutable-e0502` (bin "expr-cannot-borrow-mutable-e0502" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `expr-cannot-borrow-mutable-e0502` (bin "expr-cannot-borrow-mutable-e0502") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "b3619401dceddbd31f91cd28e5683a03f95c33840e2a541af8f8b0708b3c8521", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3619401dceddbd31f91cd28e5683a03f95c33840e2a541af8f8b0708b3c8521", kill_on_drop: false }` [INFO] [stdout] b3619401dceddbd31f91cd28e5683a03f95c33840e2a541af8f8b0708b3c8521