[INFO] fetching crate temporal_rs 0.0.3... [INFO] checking temporal_rs-0.0.3 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate temporal_rs 0.0.3 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate temporal_rs 0.0.3 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] started tweaking crates.io crate temporal_rs 0.0.3 [INFO] finished tweaking crates.io crate temporal_rs 0.0.3 [INFO] tweaked toml for crates.io crate temporal_rs 0.0.3 written to /workspace/builds/worker-2-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] Updating crates.io index [INFO] [stderr] Locking 35 packages to latest compatible versions [INFO] [stderr] Adding ixdtf v0.2.0 (available: v0.3.0) [INFO] [stderr] Adding tinystr v0.7.6 (available: v0.8.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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bcecf110a2e93dfa05cae7b47f5a86dedfbb3c39e58fafaba7d151813f0b6f9 [INFO] running `Command { std: "docker" "start" "-a" "6bcecf110a2e93dfa05cae7b47f5a86dedfbb3c39e58fafaba7d151813f0b6f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bcecf110a2e93dfa05cae7b47f5a86dedfbb3c39e58fafaba7d151813f0b6f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bcecf110a2e93dfa05cae7b47f5a86dedfbb3c39e58fafaba7d151813f0b6f9", kill_on_drop: false }` [INFO] [stdout] 6bcecf110a2e93dfa05cae7b47f5a86dedfbb3c39e58fafaba7d151813f0b6f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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] b883dd7a2965f1aaaf9d4028a3885b1477564814b06f4a8cdf188ce2609034ae [INFO] running `Command { std: "docker" "start" "-a" "b883dd7a2965f1aaaf9d4028a3885b1477564814b06f4a8cdf188ce2609034ae", 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 proc-macro2 v1.0.92 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking icu_calendar_data v1.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking rustc-hash v2.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking core_maths v0.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Checking calendrical_calculations v0.1.2 [INFO] [stderr] Checking ixdtf v0.2.0 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_calendar v1.5.2 [INFO] [stderr] Checking temporal_rs v0.0.3 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stdout] warning: `impl FnMut(Annotation<'a>) -> Option>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parsers.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | ) -> impl FnMut(Annotation<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parsers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [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] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl FnMut(Annotation<'a>) -> Option>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parsers.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | ) -> impl FnMut(Annotation<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parsers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [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] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.46s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking temporal_rs v0.0.3 (/tmp/fixit) [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 49 | ParseVariant::YearMonth => parser.parse_year_month_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here ------- first borrow later used here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 50 | ParseVariant::MonthDay => parser.parse_month_day_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here ------- first borrow later used here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | ParseVariant::DateTime => parser.parse_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ ------- first borrow later used here [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporal_rs` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 49 | ParseVariant::YearMonth => parser.parse_year_month_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here ------- first borrow later used here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 50 | ParseVariant::MonthDay => parser.parse_month_day_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here ------- first borrow later used here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `parser` as mutable more than once at a time [INFO] [stdout] --> src/parsers.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | ParseVariant::DateTime => parser.parse_with_annotation_handler(handler), [INFO] [stdout] | ^^^^^^ ------- first borrow later used here [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [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/parsers.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let handler = cast_handler(&mut parser, |annotation: Annotation<'_>| { [INFO] [stdout] | ___________________^ [INFO] [stdout] 32 | | if annotation.key == "u-ca" { [INFO] [stdout] 33 | | match first_calendar { [INFO] [stdout] 34 | | Some(ref cal) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | Some(annotation) [INFO] [stdout] 46 | | }); [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/parsers.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | handler: impl FnMut(Annotation<'a>) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 20 ~ fn cast_handler<'a, T: FnMut(Annotation<'a>) -> Option>>( [INFO] [stdout] 21 | _: &mut IxdtfParser<'a>, [INFO] [stdout] 22 ~ handler: T, [INFO] [stdout] 23 ~ ) -> impl FnMut(Annotation<'a>) -> Option> + use<'a, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporal_rs` (lib test) due to 3 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" "b883dd7a2965f1aaaf9d4028a3885b1477564814b06f4a8cdf188ce2609034ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b883dd7a2965f1aaaf9d4028a3885b1477564814b06f4a8cdf188ce2609034ae", kill_on_drop: false }` [INFO] [stdout] b883dd7a2965f1aaaf9d4028a3885b1477564814b06f4a8cdf188ce2609034ae