[INFO] fetching crate liu 0.0.1... [INFO] checking liu-0.0.1 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate liu 0.0.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate liu 0.0.1 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 17 packages to latest compatible versions [INFO] [stderr] Adding aliu v0.1.13 (available: v0.1.22) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98bc0d753a871028273f0139628b318acedbc8afc39518415812421673204704 [INFO] running `Command { std: "docker" "start" "-a" "98bc0d753a871028273f0139628b318acedbc8afc39518415812421673204704", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98bc0d753a871028273f0139628b318acedbc8afc39518415812421673204704", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98bc0d753a871028273f0139628b318acedbc8afc39518415812421673204704", kill_on_drop: false }` [INFO] [stdout] 98bc0d753a871028273f0139628b318acedbc8afc39518415812421673204704 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13427d8d04369269de0322bfd45dcb98ec8b3ae2f9808c9f43441db2460abb5f [INFO] running `Command { std: "docker" "start" "-a" "13427d8d04369269de0322bfd45dcb98ec8b3ae2f9808c9f43441db2460abb5f", 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.164 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking aliu v0.1.13 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking unicode-width v0.1.14 [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] Fixed src/parser.rs (2 fixes) [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/print_format.rs:887:10 [INFO] [stdout] | [INFO] [stdout] 887 | ) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/print_format.rs:453:6 [INFO] [stdout] | [INFO] [stdout] 453 | impl<'writer, W: Write> Renderer<'writer, W> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 885 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 2.35s [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/print_format.rs:887:10 [INFO] [stdout] | [INFO] [stdout] 887 | ) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/print_format.rs:453:6 [INFO] [stdout] | [INFO] [stdout] 453 | impl<'writer, W: Write> Renderer<'writer, W> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 885 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:561:34 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:671:34 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | __________________________________^ [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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 call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:561:34 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: 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] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:956:30 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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 call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:956:30 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: 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] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:1016:29 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | _____________________________^ [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:1033:29 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | _____________________________^ [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:561:34 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:671:34 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | __________________________________^ [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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 call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:561:34 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: 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] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `liu` (lib) due to 7 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: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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:956:30 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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 call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:956:30 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: 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] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:1016:29 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | _____________________________^ [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/print_format.rs:1033:29 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | _____________________________^ [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/print_format.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | char_indices: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 884 ~ fn char_metrics>( [INFO] [stdout] 885 | &self, [INFO] [stdout] 886 ~ char_indices: T, [INFO] [stdout] 887 ~ ) -> impl Iterator + use { [INFO] [stdout] | [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 7 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" "13427d8d04369269de0322bfd45dcb98ec8b3ae2f9808c9f43441db2460abb5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13427d8d04369269de0322bfd45dcb98ec8b3ae2f9808c9f43441db2460abb5f", kill_on_drop: false }` [INFO] [stdout] 13427d8d04369269de0322bfd45dcb98ec8b3ae2f9808c9f43441db2460abb5f