Add hint for collect type

This commit is contained in:
Mark Rousskov 2020-05-10 22:15:04 -04:00
parent 891e1a859b
commit 318b8b6aab

View file

@ -1390,7 +1390,7 @@ pub fn fn_has_unsatisfiable_preds(cx: &LateContext<'_, '_>, did: DefId) -> bool
.predicates
.iter()
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None })
.collect();
.collect::<Vec<_>>();
!traits::normalize_and_test_predicates(
cx.tcx,
traits::elaborate_predicates(cx.tcx, predicates)