[INFO] fetching crate diagnostic 0.5.1... [INFO] checking diagnostic-0.5.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate diagnostic 0.5.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate diagnostic 0.5.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 diagnostic 0.5.1 [INFO] finished tweaking crates.io crate diagnostic 0.5.1 [INFO] tweaked toml for crates.io crate diagnostic 0.5.1 written to /workspace/builds/worker-5-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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0c72dcdd16f0edc9119dfb3705441b971a89ad0d3af32647c294b3e090682c4f [INFO] running `Command { std: "docker" "start" "-a" "0c72dcdd16f0edc9119dfb3705441b971a89ad0d3af32647c294b3e090682c4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c72dcdd16f0edc9119dfb3705441b971a89ad0d3af32647c294b3e090682c4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c72dcdd16f0edc9119dfb3705441b971a89ad0d3af32647c294b3e090682c4f", kill_on_drop: false }` [INFO] [stdout] 0c72dcdd16f0edc9119dfb3705441b971a89ad0d3af32647c294b3e090682c4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 565616d73236d241f4204d5a9d1965013e010e22d747f2c48ec6e3f3f49f4821 [INFO] running `Command { std: "docker" "start" "-a" "565616d73236d241f4204d5a9d1965013e010e22d747f2c48ec6e3f3f49f4821", kill_on_drop: false }` [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking diagnostic v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 288 | self.set_color(self.styles().label(severity, LabelStyle::Primary))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [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/term/renderer.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 292 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:297:69 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 297 | '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?, [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [INFO] [stdout] | - ... and the first 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/term/renderer.rs:427:33 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 427 | None => self.reset()?, [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 429 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:443:61 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 443 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", caret_ch))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 288 | self.set_color(self.styles().label(severity, LabelStyle::Primary))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [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/term/renderer.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 298 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 299 | } [INFO] [stdout] 300 | } [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] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 292 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:297:69 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 297 | '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?, [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 300 | } [INFO] [stdout] | - ... and the first 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/term/renderer.rs:427:33 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 427 | None => self.reset()?, [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 429 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:443:61 [INFO] [stdout] | [INFO] [stdout] 405 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 406 | | .char_metrics(source.char_indices()) [INFO] [stdout] 407 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 408 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 413 | | // ``` [INFO] [stdout] 414 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 443 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", caret_ch))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 447 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 270 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [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] 298 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 299 | } [INFO] [stdout] 300 | } [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] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:723:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 723 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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/term/renderer.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 725 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:731:37 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 731 | spaces.try_for_each(|_| write!(self, " "))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 732 | } [INFO] [stdout] 733 | } [INFO] [stdout] | - ... and the first 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/term/renderer.rs:724:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 724 | write!(self, "{}", self.chars().pointer_left)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/term/renderer.rs:723:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 723 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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/term/renderer.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 725 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:731:37 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 731 | spaces.try_for_each(|_| write!(self, " "))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 732 | } [INFO] [stdout] 733 | } [INFO] [stdout] | - ... and the first 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/term/renderer.rs:724:21 [INFO] [stdout] | [INFO] [stdout] 713 | for (metrics, ch) in self.char_metrics(char_indices) { [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] 724 | write!(self, "{}", self.chars().pointer_left)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 733 | } [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] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:806:53 [INFO] [stdout] | [INFO] [stdout] 804 | for (metrics, _) in self.char_metrics(source.char_indices()).take_while(|(metrics, _)| metrics.byte_index < start + 1) { [INFO] [stdout] | -------------------------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 805 | // FIXME: improve rendering of carets between character boundaries [INFO] [stdout] 806 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", self.chars().multi_top))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 807 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/term/renderer.rs:804:81: 804:95]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:836:53 [INFO] [stdout] | [INFO] [stdout] 834 | for (metrics, _) in self.char_metrics(source.char_indices()).take_while(|(metrics, _)| metrics.byte_index < start) { [INFO] [stdout] | ---------------------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 835 | // FIXME: improve rendering of carets between character boundaries [INFO] [stdout] 836 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", self.chars().multi_bottom))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 837 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/term/renderer.rs:834:81: 834:95]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:806:53 [INFO] [stdout] | [INFO] [stdout] 804 | for (metrics, _) in self.char_metrics(source.char_indices()).take_while(|(metrics, _)| metrics.byte_index < start + 1) { [INFO] [stdout] | -------------------------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 805 | // FIXME: improve rendering of carets between character boundaries [INFO] [stdout] 806 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", self.chars().multi_top))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 807 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/term/renderer.rs:804:81: 804:95]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/term/renderer.rs:836:53 [INFO] [stdout] | [INFO] [stdout] 834 | for (metrics, _) in self.char_metrics(source.char_indices()).take_while(|(metrics, _)| metrics.byte_index < start) { [INFO] [stdout] | ---------------------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 835 | // FIXME: improve rendering of carets between character boundaries [INFO] [stdout] 836 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", self.chars().multi_bottom))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 837 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/term/renderer.rs:834:81: 834:95]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `diagnostic` (lib) due to 14 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `diagnostic` (lib test) due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "565616d73236d241f4204d5a9d1965013e010e22d747f2c48ec6e3f3f49f4821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "565616d73236d241f4204d5a9d1965013e010e22d747f2c48ec6e3f3f49f4821", kill_on_drop: false }` [INFO] [stdout] 565616d73236d241f4204d5a9d1965013e010e22d747f2c48ec6e3f3f49f4821