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 {