[INFO] cloning repository https://github.com/illef/git-prompt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/illef/git-prompt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillef%2Fgit-prompt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillef%2Fgit-prompt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e5f5af414a6807b04a1370eada4e00e06c74f0f [INFO] checking illef/git-prompt against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillef%2Fgit-prompt" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/illef/git-prompt 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/illef/git-prompt [INFO] finished tweaking git repo https://github.com/illef/git-prompt [INFO] tweaked toml for git repo https://github.com/illef/git-prompt written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/illef/git-prompt 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] f645d78fcf011fc5c0c9280c7ea61aa8b86b4c49279ea1855e0b1de2b0f0d34a [INFO] running `Command { std: "docker" "start" "-a" "f645d78fcf011fc5c0c9280c7ea61aa8b86b4c49279ea1855e0b1de2b0f0d34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f645d78fcf011fc5c0c9280c7ea61aa8b86b4c49279ea1855e0b1de2b0f0d34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f645d78fcf011fc5c0c9280c7ea61aa8b86b4c49279ea1855e0b1de2b0f0d34a", kill_on_drop: false }` [INFO] [stdout] f645d78fcf011fc5c0c9280c7ea61aa8b86b4c49279ea1855e0b1de2b0f0d34a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 7864c1e3a0672c760cbef95b5dfd97978a3954a34907e02389bd0d23d9d7ea54 [INFO] running `Command { std: "docker" "start" "-a" "7864c1e3a0672c760cbef95b5dfd97978a3954a34907e02389bd0d23d9d7ea54", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling libgit2-sys v0.12.13+1.0.1 [INFO] [stderr] Checking git2 v0.13.11 [INFO] [stderr] Checking git-prompt 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/git.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 277 | / print!( [INFO] [stdout] 278 | | "on {}({}){}{}{}", [INFO] [stdout] 279 | | self.branch_string(), [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] 280 | | Colour::Blue.paint(self.status_string().to_string()), [INFO] [stdout] ... | [INFO] [stdout] 283 | | self.stash_count_string() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 284 | | ) [INFO] [stdout] | |_________- ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/git.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 277 | / print!( [INFO] [stdout] 278 | | "on {}({}){}{}{}", [INFO] [stdout] 279 | | self.branch_string(), [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] 280 | | Colour::Blue.paint(self.status_string().to_string()), [INFO] [stdout] ... | [INFO] [stdout] 283 | | self.stash_count_string() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 284 | | ) [INFO] [stdout] | |_________- ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 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 `git-prompt` (bin "git-prompt") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `git-prompt` (bin "git-prompt" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "7864c1e3a0672c760cbef95b5dfd97978a3954a34907e02389bd0d23d9d7ea54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7864c1e3a0672c760cbef95b5dfd97978a3954a34907e02389bd0d23d9d7ea54", kill_on_drop: false }` [INFO] [stdout] 7864c1e3a0672c760cbef95b5dfd97978a3954a34907e02389bd0d23d9d7ea54