提交 37fa6f8b 编写于 作者: M Manish Goregaokar

rustdoc: Don't use into_iter() when cleaning impl Trait

上级 31ae4f9f
......@@ -2756,7 +2756,7 @@ fn clean(&self, cx: &DocContext) -> Type {
let predicates_of = cx.tcx.predicates_of(def_id);
let substs = cx.tcx.lift(&substs).unwrap();
let bounds = predicates_of.instantiate(cx.tcx, substs);
ImplTrait(bounds.predicates.into_iter().filter_map(|predicate| {
ImplTrait(bounds.predicates.iter().filter_map(|predicate| {
predicate.to_opt_poly_trait_ref().clean(cx)
}).collect())
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册