[INFO] fetching crate codespan-reporting 0.11.1... [INFO] checking codespan-reporting-0.11.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate codespan-reporting 0.11.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate codespan-reporting 0.11.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 codespan-reporting 0.11.1 [INFO] finished tweaking crates.io crate codespan-reporting 0.11.1 [INFO] tweaked toml for crates.io crate codespan-reporting 0.11.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate codespan-reporting 0.11.1 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5539876aee9791eebff058b8faf0872081e18651bcfe690a9d6e75ef5b909882 [INFO] running `Command { std: "docker" "start" "-a" "5539876aee9791eebff058b8faf0872081e18651bcfe690a9d6e75ef5b909882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5539876aee9791eebff058b8faf0872081e18651bcfe690a9d6e75ef5b909882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5539876aee9791eebff058b8faf0872081e18651bcfe690a9d6e75ef5b909882", kill_on_drop: false }` [INFO] [stdout] 5539876aee9791eebff058b8faf0872081e18651bcfe690a9d6e75ef5b909882 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 57f4b3d245126a431056cd58923a406d40a6381356b0792366d01b2c5ec91b37 [INFO] running `Command { std: "docker" "start" "-a" "57f4b3d245126a431056cd58923a406d40a6381356b0792366d01b2c5ec91b37", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Checking dtoa v0.4.7 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking similar v1.2.2 [INFO] [stderr] Checking utf8parse v0.2.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Checking unindent v0.1.7 [INFO] [stderr] Checking codespan-reporting v0.11.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:294:21 [INFO] [stdout] | [INFO] [stdout] 277 | 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] 294 | self.set_color(self.styles().label(severity, LabelStyle::Primary))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 305 | } [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:297:21 [INFO] [stdout] | [INFO] [stdout] 277 | 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] 297 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 305 | } [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:302:69 [INFO] [stdout] | [INFO] [stdout] 277 | 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] 302 | '\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] 305 | } [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:434:33 [INFO] [stdout] | [INFO] [stdout] 412 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 413 | | .char_metrics(source.char_indices()) [INFO] [stdout] 414 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 415 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 420 | | // ``` [INFO] [stdout] 421 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 434 | None => self.reset()?, [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 454 | } [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:436:29 [INFO] [stdout] | [INFO] [stdout] 412 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 413 | | .char_metrics(source.char_indices()) [INFO] [stdout] 414 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 415 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 420 | | // ``` [INFO] [stdout] 421 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 436 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 454 | } [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:450:61 [INFO] [stdout] | [INFO] [stdout] 412 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 413 | | .char_metrics(source.char_indices()) [INFO] [stdout] 414 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 415 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 420 | | // ``` [INFO] [stdout] 421 | | .chain(std::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 450 | (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] 454 | } [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:303:26 [INFO] [stdout] | [INFO] [stdout] 277 | 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] 303 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 304 | } [INFO] [stdout] 305 | } [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:760:21 [INFO] [stdout] | [INFO] [stdout] 750 | 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] 760 | self.set_color(self.styles().label(severity, label_style))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 770 | } [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:762:21 [INFO] [stdout] | [INFO] [stdout] 750 | 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] 762 | self.reset()?; [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 770 | } [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:768:37 [INFO] [stdout] | [INFO] [stdout] 750 | 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] 768 | 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] 769 | } [INFO] [stdout] 770 | } [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:761:21 [INFO] [stdout] | [INFO] [stdout] 750 | 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] 761 | write!(self, "{}", self.chars().pointer_left)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 770 | } [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:855:31 [INFO] [stdout] | [INFO] [stdout] 849 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 850 | | .char_metrics(source.char_indices()) [INFO] [stdout] 851 | | .take_while(|(metrics, _)| metrics.byte_index < start + 1) [INFO] [stdout] | |______________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 855 | .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] 856 | } [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:851:25: 851:39]>` [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:889:31 [INFO] [stdout] | [INFO] [stdout] 883 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 884 | | .char_metrics(source.char_indices()) [INFO] [stdout] 885 | | .take_while(|(metrics, _)| metrics.byte_index < start) [INFO] [stdout] | |__________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 889 | .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] 890 | } [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:885:25: 885:39]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking terminal_size v0.1.16 [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 `codespan-reporting` (lib) due to 14 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "57f4b3d245126a431056cd58923a406d40a6381356b0792366d01b2c5ec91b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f4b3d245126a431056cd58923a406d40a6381356b0792366d01b2c5ec91b37", kill_on_drop: false }` [INFO] [stdout] 57f4b3d245126a431056cd58923a406d40a6381356b0792366d01b2c5ec91b37