[INFO] fetching crate try_convert 0.1.1... [INFO] checking try_convert-0.1.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate try_convert 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate try_convert 0.1.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate try_convert 0.1.1 [INFO] finished tweaking crates.io crate try_convert 0.1.1 [INFO] tweaked toml for crates.io crate try_convert 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 10 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.11.0 (available: v0.13.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7322aa702285f8162c22e9d696bef4da62927433a190854ba7c1006271d208a [INFO] running `Command { std: "docker" "start" "-a" "a7322aa702285f8162c22e9d696bef4da62927433a190854ba7c1006271d208a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7322aa702285f8162c22e9d696bef4da62927433a190854ba7c1006271d208a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7322aa702285f8162c22e9d696bef4da62927433a190854ba7c1006271d208a", kill_on_drop: false }` [INFO] [stdout] a7322aa702285f8162c22e9d696bef4da62927433a190854ba7c1006271d208a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b788bb87e0e5027fa011dca0a14ae101a937ad975541b6e168ba06702c40c2c [INFO] running `Command { std: "docker" "start" "-a" "1b788bb87e0e5027fa011dca0a14ae101a937ad975541b6e168ba06702c40c2c", 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] Checking unicode-ident v1.0.13 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking syn v2.0.77 [INFO] [stderr] Checking try_convert v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (11 fixes) [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> impl ToTokens { [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/lib.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | ident: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] 148 | fields: &Option, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:14 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:33 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> impl ToTokens { [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/lib.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | ident: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] 148 | fields: &Option, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:14 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:33 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/tests.rs from 2021 edition to 2024 [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> impl ToTokens { [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/lib.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | ident: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] 148 | fields: &Option, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:14 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl ToTokens` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:462:33 [INFO] [stdout] | [INFO] [stdout] 462 | ) -> Result<(impl ToTokens, Vec), Error> { [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/lib.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | from_var_ident: Option<&Ident>, [INFO] [stdout] | ^ [INFO] [stdout] 460 | fields: &Fields, [INFO] [stdout] | ^ [INFO] [stdout] 461 | error_name: &Ident, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.04s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling try_convert v0.1.1 (/tmp/fixit) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:486:42 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:486:42 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:486:42 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `attrs` does not live long enough [INFO] [stdout] --> src/lib.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 475 | let mut attrs = get_attributes(attrs) [INFO] [stdout] | --------- binding `attrs` declared here [INFO] [stdout] ... [INFO] [stdout] 529 | for (i, field_attr) in attrs.iter().enumerate() { [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 540 | error_variants.push(generate_error_variant(error, &None, description.clone())); [INFO] [stdout] | --------------------------------------------------------- argument requires that `attrs` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `attrs` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `attrs` does not live long enough [INFO] [stdout] --> src/lib.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 475 | let mut attrs = get_attributes(attrs) [INFO] [stdout] | --------- binding `attrs` declared here [INFO] [stdout] ... [INFO] [stdout] 529 | for (i, field_attr) in attrs.iter().enumerate() { [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 540 | error_variants.push(generate_error_variant(error, &None, description.clone())); [INFO] [stdout] | --------------------------------------------------------- argument requires that `attrs` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `attrs` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `error` does not live long enough [INFO] [stdout] --> src/lib.rs:551:68 [INFO] [stdout] | [INFO] [stdout] 547 | let error = transform [INFO] [stdout] | ----- binding `error` declared here [INFO] [stdout] ... [INFO] [stdout] 551 | error_variants.push(generate_error_variant(&error, &None, None)); [INFO] [stdout] | -----------------------^^^^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `error` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 554 | } [INFO] [stdout] | - `error` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `error` does not live long enough [INFO] [stdout] --> src/lib.rs:551:68 [INFO] [stdout] | [INFO] [stdout] 547 | let error = transform [INFO] [stdout] | ----- binding `error` declared here [INFO] [stdout] ... [INFO] [stdout] 551 | error_variants.push(generate_error_variant(&error, &None, None)); [INFO] [stdout] | -----------------------^^^^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `error` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 554 | } [INFO] [stdout] | - `error` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `attrs` does not live long enough [INFO] [stdout] --> src/lib.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 475 | let mut attrs = get_attributes(attrs) [INFO] [stdout] | --------- binding `attrs` declared here [INFO] [stdout] ... [INFO] [stdout] 529 | for (i, field_attr) in attrs.iter().enumerate() { [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 540 | error_variants.push(generate_error_variant(error, &None, description.clone())); [INFO] [stdout] | --------------------------------------------------------- argument requires that `attrs` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `attrs` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `error` does not live long enough [INFO] [stdout] --> src/lib.rs:551:68 [INFO] [stdout] | [INFO] [stdout] 547 | let error = transform [INFO] [stdout] | ----- binding `error` declared here [INFO] [stdout] ... [INFO] [stdout] 551 | error_variants.push(generate_error_variant(&error, &None, None)); [INFO] [stdout] | -----------------------^^^^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `error` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 554 | } [INFO] [stdout] | - `error` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `title` because it is borrowed [INFO] [stdout] --> src/lib.rs:560:21 [INFO] [stdout] | [INFO] [stdout] 560 | title = format_ident!("{title}To{}", to_pascal_case(&to)); [INFO] [stdout] | ^^^^^ `title` is assigned to here but it was already borrowed [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ------ `title` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `title` because it is borrowed [INFO] [stdout] --> src/lib.rs:560:21 [INFO] [stdout] | [INFO] [stdout] 560 | title = format_ident!("{title}To{}", to_pascal_case(&to)); [INFO] [stdout] | ^^^^^ `title` is assigned to here but it was already borrowed [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ------ `title` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `title` because it is borrowed [INFO] [stdout] --> src/lib.rs:560:21 [INFO] [stdout] | [INFO] [stdout] 560 | title = format_ident!("{title}To{}", to_pascal_case(&to)); [INFO] [stdout] | ^^^^^ `title` is assigned to here but it was already borrowed [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ------ `title` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `title` does not live long enough [INFO] [stdout] --> src/lib.rs:561:68 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | --------- binding `title` declared here [INFO] [stdout] ... [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `title` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `title` does not live long enough [INFO] [stdout] --> src/lib.rs:561:68 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | --------- binding `title` declared here [INFO] [stdout] ... [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `title` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `title` does not live long enough [INFO] [stdout] --> src/lib.rs:561:68 [INFO] [stdout] | [INFO] [stdout] 486 | let (from_accessor, local_alias, mut title) = ident.clone().map_or_else( [INFO] [stdout] | --------- binding `title` declared here [INFO] [stdout] ... [INFO] [stdout] 561 | let error = transform.error.as_ref().unwrap_or(&title); [INFO] [stdout] | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | |_____________________- argument requires that `title` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] | - `title` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:577:26 [INFO] [stdout] | [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |_____________________| [INFO] [stdout] | argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:577:26 [INFO] [stdout] | [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |_____________________| [INFO] [stdout] | argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:577:26 [INFO] [stdout] | [INFO] [stdout] 575 | error_variants.push(generate_error_variant( [INFO] [stdout] | _________________________________________- [INFO] [stdout] 576 | | error, [INFO] [stdout] 577 | | &Some(quote! { (<#to as TryFrom<#from>>::Error) }), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 578 | | transform.description.clone(), [INFO] [stdout] 579 | | )); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |_____________________| [INFO] [stdout] | argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0506, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0506`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0506, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0506`. [INFO] [stdout] [INFO] [stderr] error: could not compile `try_convert` (lib test) due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `try_convert` (lib) due to 6 previous errors; 1 warning emitted [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0506, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0506`. [INFO] [stdout] [INFO] [stderr] error: could not compile `try_convert` (lib) due to 6 previous errors; 1 warning emitted [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" "1b788bb87e0e5027fa011dca0a14ae101a937ad975541b6e168ba06702c40c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b788bb87e0e5027fa011dca0a14ae101a937ad975541b6e168ba06702c40c2c", kill_on_drop: false }` [INFO] [stdout] 1b788bb87e0e5027fa011dca0a14ae101a937ad975541b6e168ba06702c40c2c