diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index 6fa0425c4956b..443ac2821342e 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -412,7 +412,7 @@ impl FromWithTcx for Type { .map(|t| { clean::GenericBound::TraitBound(t, rustc_hir::TraitBoundModifier::None) }) - .chain(lt.into_iter().map(clean::GenericBound::Outlives)) + .chain(lt.map(clean::GenericBound::Outlives)) .map(|bound| bound.into_tcx(tcx)) .collect(), }