[INFO] fetching crate liu 0.0.1... [INFO] checking liu-0.0.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate liu 0.0.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate liu 0.0.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate liu 0.0.1 [INFO] finished tweaking crates.io crate liu 0.0.1 [INFO] tweaked toml for crates.io crate liu 0.0.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] [stderr] Adding aliu v0.1.13 (latest: v0.1.22) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aliu v0.1.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6aee16bf9b33243db24bb0d4bf651da9bde85bc7bc45b7f500dae6960ab87101 [INFO] running `Command { std: "docker" "start" "-a" "6aee16bf9b33243db24bb0d4bf651da9bde85bc7bc45b7f500dae6960ab87101", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6aee16bf9b33243db24bb0d4bf651da9bde85bc7bc45b7f500dae6960ab87101", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aee16bf9b33243db24bb0d4bf651da9bde85bc7bc45b7f500dae6960ab87101", kill_on_drop: false }` [INFO] [stdout] 6aee16bf9b33243db24bb0d4bf651da9bde85bc7bc45b7f500dae6960ab87101 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6949176573cb611221205c1a9de1ad2df3775c37aba2605d89e7c4751e98045f [INFO] running `Command { std: "docker" "start" "-a" "6949176573cb611221205c1a9de1ad2df3775c37aba2605d89e7c4751e98045f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking aliu v0.1.13 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking region v3.0.2 [INFO] [stderr] Checking liu v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 1.99s [INFO] running `Command { std: "docker" "inspect" "6949176573cb611221205c1a9de1ad2df3775c37aba2605d89e7c4751e98045f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6949176573cb611221205c1a9de1ad2df3775c37aba2605d89e7c4751e98045f", kill_on_drop: false }` [INFO] [stdout] 6949176573cb611221205c1a9de1ad2df3775c37aba2605d89e7c4751e98045f [INFO] checking liu-0.0.1 against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] extracting crate liu 0.0.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate liu 0.0.1 on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate liu 0.0.1 [INFO] finished tweaking crates.io crate liu 0.0.1 [INFO] tweaked toml for crates.io crate liu 0.0.1 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" "+dae34b759e282c069aa28752564694effd121a63" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] [stderr] Adding aliu v0.1.13 (latest: v0.1.22) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 884af56240f4aaef2dd94eead5ec15a708494ade0c6060a15937373d2f50b76e [INFO] running `Command { std: "docker" "start" "-a" "884af56240f4aaef2dd94eead5ec15a708494ade0c6060a15937373d2f50b76e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "884af56240f4aaef2dd94eead5ec15a708494ade0c6060a15937373d2f50b76e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "884af56240f4aaef2dd94eead5ec15a708494ade0c6060a15937373d2f50b76e", kill_on_drop: false }` [INFO] [stdout] 884af56240f4aaef2dd94eead5ec15a708494ade0c6060a15937373d2f50b76e [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb552cfe9a5c73c693ea4e903e25a960e16f871fc4c8cfd71cced67241f99a36 [INFO] running `Command { std: "docker" "start" "-a" "eb552cfe9a5c73c693ea4e903e25a960e16f871fc4c8cfd71cced67241f99a36", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking aliu v0.1.13 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking region v3.0.2 [INFO] [stderr] Checking liu v0.0.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 2.61s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking liu v0.0.1 (/tmp/fixit) [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:565:69 [INFO] [stdout] | [INFO] [stdout] 561 | 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] 565 | '\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] 568 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:696:61 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] 673 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 674 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 679 | | // ``` [INFO] [stdout] 680 | | .chain(core::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |_____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 696 | (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] 697 | } [INFO] [stdout] 698 | } [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/print_format.rs:566:26 [INFO] [stdout] | [INFO] [stdout] 561 | 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] 566 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 567 | } [INFO] [stdout] 568 | } [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/print_format.rs:971:37 [INFO] [stdout] | [INFO] [stdout] 956 | 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] 971 | 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] 972 | } [INFO] [stdout] 973 | } [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/print_format.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 956 | 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] 965 | write!(self, "{}", '|')?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 973 | } [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/print_format.rs:1021:53 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1018 | | .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] 1021 | (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] 1022 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, {closure@src/print_format.rs:1018:25: 1018:39}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1038:53 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1035 | | .take_while(|(metrics, _)| metrics.byte_index < start) [INFO] [stdout] | |__________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1038 | (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] 1039 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, {closure@src/print_format.rs:1035:25: 1035:39}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 `liu` (lib test) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:565:69 [INFO] [stdout] | [INFO] [stdout] 561 | 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] 565 | '\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] 568 | } [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[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:696:61 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] 673 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 674 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 679 | | // ``` [INFO] [stdout] 680 | | .chain(core::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |_____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 696 | (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] 697 | } [INFO] [stdout] 698 | } [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/print_format.rs:566:26 [INFO] [stdout] | [INFO] [stdout] 561 | 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] 566 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 567 | } [INFO] [stdout] 568 | } [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/print_format.rs:971:37 [INFO] [stdout] | [INFO] [stdout] 956 | 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] 971 | 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] 972 | } [INFO] [stdout] 973 | } [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/print_format.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 956 | 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] 965 | write!(self, "{}", '|')?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 973 | } [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/print_format.rs:1021:53 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1018 | | .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] 1021 | (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] 1022 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, {closure@src/print_format.rs:1018:25: 1018:39}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1038:53 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1035 | | .take_while(|(metrics, _)| metrics.byte_index < start) [INFO] [stdout] | |__________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1038 | (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] 1039 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, {closure@src/print_format.rs:1035:25: 1035:39}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 `liu` (lib) due to 8 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "eb552cfe9a5c73c693ea4e903e25a960e16f871fc4c8cfd71cced67241f99a36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb552cfe9a5c73c693ea4e903e25a960e16f871fc4c8cfd71cced67241f99a36", kill_on_drop: false }` [INFO] [stdout] eb552cfe9a5c73c693ea4e903e25a960e16f871fc4c8cfd71cced67241f99a36