Merge pull request #5584 from Mark-Simulacrum/beta-next

Add hint for collect type
This commit is contained in:
Philipp Krones 2020-05-11 19:14:38 +02:00 committed by GitHub
commit d4092ace00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)