From e4526a33876c9f3651f8bbb539414f20ab1afa80 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 9 Jan 2025 13:34:17 -0800 Subject: [PATCH] Fix build on 1.82.0 --- crates/cranelift/src/debug/transform/expression.rs | 2 +- crates/environ/src/fact/trampoline.rs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/cranelift/src/debug/transform/expression.rs b/crates/cranelift/src/debug/transform/expression.rs index a24353748fd2..873a76240f6b 100644 --- a/crates/cranelift/src/debug/transform/expression.rs +++ b/crates/cranelift/src/debug/transform/expression.rs @@ -244,7 +244,7 @@ impl CompiledExpression { addr_tr: &'a AddressTransform, frame_info: Option<&'a FunctionFrameInfo>, isa: &'a dyn TargetIsa, - ) -> impl Iterator> + 'a { + ) -> impl Iterator> + use<'a> { enum BuildWithLocalsResult<'a> { Empty, Simple( diff --git a/crates/environ/src/fact/trampoline.rs b/crates/environ/src/fact/trampoline.rs index 8af700de421b..3a5c0f4ce78b 100644 --- a/crates/environ/src/fact/trampoline.rs +++ b/crates/environ/src/fact/trampoline.rs @@ -3069,13 +3069,14 @@ impl<'a> Source<'a> { impl<'a> Destination<'a> { /// Same as `Source::record_field_srcs` but for destinations. - fn record_field_dsts<'b>( + fn record_field_dsts<'b, I>( &'b self, types: &'b ComponentTypesBuilder, - fields: impl IntoIterator + 'b, - ) -> impl Iterator> + 'b + fields: I, + ) -> impl Iterator> + use<'b, I> where 'a: 'b, + I: IntoIterator + 'b, { let mut offset = 0; fields.into_iter().map(move |ty| match self {