[INFO] fetching crate disjoint_impls 0.8.0... [INFO] checking disjoint_impls-0.8.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate disjoint_impls 0.8.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate disjoint_impls 0.8.0 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 disjoint_impls 0.8.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate disjoint_impls 0.8.0 [INFO] tweaked toml for crates.io crate disjoint_impls 0.8.0 written to /workspace/builds/worker-6-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 13 packages to latest compatible versions [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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 24d6d028bf778859dbba2dad5569a5c1dcc917835c952537c9c885deac4c9e0d [INFO] running `Command { std: "docker" "start" "-a" "24d6d028bf778859dbba2dad5569a5c1dcc917835c952537c9c885deac4c9e0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24d6d028bf778859dbba2dad5569a5c1dcc917835c952537c9c885deac4c9e0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24d6d028bf778859dbba2dad5569a5c1dcc917835c952537c9c885deac4c9e0d", kill_on_drop: false }` [INFO] [stdout] 24d6d028bf778859dbba2dad5569a5c1dcc917835c952537c9c885deac4c9e0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 46f598a213a7900e87d29aff124bc8833d1641740c61a1bf00c01b1a53987b3d [INFO] running `Command { std: "docker" "start" "-a" "46f598a213a7900e87d29aff124bc8833d1641740c61a1bf00c01b1a53987b3d", 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] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-ident v1.0.14 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking syn v2.0.89 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking disjoint_impls v0.8.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/superset/path.rs (3 fixes) [INFO] [stderr] Fixed src/disjoint.rs (2 fixes) [INFO] [stderr] Fixed src/superset/expr.rs (1 fix) [INFO] [stderr] Fixed src/validate.rs (5 fixes) [INFO] [stderr] Fixed src/lib.rs (9 fixes) [INFO] [stderr] Fixed src/helper_trait.rs (2 fixes) [INFO] [stderr] Fixed src/param.rs (7 fixes) [INFO] [stderr] Fixed src/main_trait.rs (3 fixes) [INFO] [stderr] Fixed src/superset.rs (1 fix) [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/helper_trait.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | ) -> 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, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/helper_trait.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | generics: &syn::Generics, [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/helper_trait.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | assoc_param_bounds: impl IntoIterator, [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] 73 ~ fn combine_generic_args>( [INFO] [stdout] 74 ~ assoc_param_bounds: T, [INFO] [stdout] 75 | generics: &syn::Generics, [INFO] [stdout] 76 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/main_trait.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> 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/main_trait.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | fn combine_generic_args<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] 186 | path: &syn::Path, [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/helper_trait.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | ) -> 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, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/helper_trait.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | generics: &syn::Generics, [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/helper_trait.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | assoc_param_bounds: impl IntoIterator, [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] 73 ~ fn combine_generic_args>( [INFO] [stdout] 74 ~ assoc_param_bounds: T, [INFO] [stdout] 75 | generics: &syn::Generics, [INFO] [stdout] 76 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/main_trait.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> 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/main_trait.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | fn combine_generic_args<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] 186 | path: &syn::Path, [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/lib.rs:716:34 [INFO] [stdout] | [INFO] [stdout] 716 | while let Ok(mut item) = input.parse::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 726 | / impl_groups [INFO] [stdout] 727 | | .entry(impl_group_id) [INFO] [stdout] 728 | | .or_default() [INFO] [stdout] 729 | | .insert(item, param_bounds); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |___________________________________________this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 730 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/helper_trait.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | ) -> 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, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/helper_trait.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | generics: &syn::Generics, [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/helper_trait.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | assoc_param_bounds: impl IntoIterator, [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] 73 ~ fn combine_generic_args>( [INFO] [stdout] 74 ~ assoc_param_bounds: T, [INFO] [stdout] 75 | generics: &syn::Generics, [INFO] [stdout] 76 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/main_trait.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> 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/main_trait.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | fn combine_generic_args<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] 186 | path: &syn::Path, [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/disjoint_inherent_impl.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/concrete_assoc_type.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/supersets_2.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/composite_where_clause.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/extra_param_bounds.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/unsized_type.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/disparate_trait_generics.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/overlapping_trait_and_param_idents.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/multiple_dispatch_traits.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/multiple_associated_types.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/dispatch_on_generic.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/basic.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/trait_with_lifetime.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/extra_parameter.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/trait_param_with_extra_bound.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/blanket_for_derivative_type.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/ignored_assoc_bound.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/multiple_blanket_impls.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/dispatch_on_different_parameters.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/dispatch_with_same_param.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/supersets_1.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.89s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling disjoint_impls v0.8.0 (/tmp/fixit) [INFO] [stdout] error[E0597]: `self_ty.path` does not live long enough [INFO] [stdout] --> src/main_trait.rs:220:50 [INFO] [stdout] | [INFO] [stdout] 216 | let generic_args = match &example_impl.trait_ { Some((_, impl_trait, _)) => { [INFO] [stdout] | ------------ borrow later stored here [INFO] [stdout] 217 | combine_generic_args(assoc_bound_idents, impl_trait) [INFO] [stdout] 218 | } _ => { match (*example_impl.self_ty).clone() { syn::Type::Path(mut self_ty) => { [INFO] [stdout] | ----------- binding `self_ty` declared here [INFO] [stdout] 219 | gen_inherent_self_ty_args(&mut self_ty, &example_impl.generics); [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [INFO] [stdout] | ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 221 | } _ => { [INFO] [stdout] | - `self_ty.path` dropped here while still borrowed [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/main_trait.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `self_ty.path` does not live long enough [INFO] [stdout] --> src/main_trait.rs:220:50 [INFO] [stdout] | [INFO] [stdout] 216 | let generic_args = match &example_impl.trait_ { Some((_, impl_trait, _)) => { [INFO] [stdout] | ------------ borrow later stored here [INFO] [stdout] 217 | combine_generic_args(assoc_bound_idents, impl_trait) [INFO] [stdout] 218 | } _ => { match (*example_impl.self_ty).clone() { syn::Type::Path(mut self_ty) => { [INFO] [stdout] | ----------- binding `self_ty` declared here [INFO] [stdout] 219 | gen_inherent_self_ty_args(&mut self_ty, &example_impl.generics); [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [INFO] [stdout] | ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 221 | } _ => { [INFO] [stdout] | - `self_ty.path` dropped here while still borrowed [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/main_trait.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `self_ty.path` does not live long enough [INFO] [stdout] --> src/main_trait.rs:220:50 [INFO] [stdout] | [INFO] [stdout] 216 | let generic_args = match &example_impl.trait_ { Some((_, impl_trait, _)) => { [INFO] [stdout] | ------------ borrow later stored here [INFO] [stdout] 217 | combine_generic_args(assoc_bound_idents, impl_trait) [INFO] [stdout] 218 | } _ => { match (*example_impl.self_ty).clone() { syn::Type::Path(mut self_ty) => { [INFO] [stdout] | ----------- binding `self_ty` declared here [INFO] [stdout] 219 | gen_inherent_self_ty_args(&mut self_ty, &example_impl.generics); [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [INFO] [stdout] | ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 221 | } _ => { [INFO] [stdout] | - `self_ty.path` dropped here while still borrowed [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/main_trait.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | combine_generic_args(assoc_bound_idents, &self_ty.path) [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/main_trait.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | assoc_bound_idents: impl IntoIterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 184 ~ fn combine_generic_args<'a, T: IntoIterator>>( [INFO] [stdout] 185 ~ assoc_bound_idents: T, [INFO] [stdout] 186 | path: &syn::Path, [INFO] [stdout] 187 ~ ) -> impl Iterator + use { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `disjoint_impls` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `disjoint_impls` (lib test) due to 1 previous error [INFO] [stderr] error: could not compile `disjoint_impls` (lib) due to 1 previous error [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" "46f598a213a7900e87d29aff124bc8833d1641740c61a1bf00c01b1a53987b3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46f598a213a7900e87d29aff124bc8833d1641740c61a1bf00c01b1a53987b3d", kill_on_drop: false }` [INFO] [stdout] 46f598a213a7900e87d29aff124bc8833d1641740c61a1bf00c01b1a53987b3d