Skip to content

Commit

Permalink
Merge pull request rust-lang#5584 from Mark-Simulacrum/beta-next
Browse files Browse the repository at this point in the history
Add hint for collect type
  • Loading branch information
flip1995 authored May 11, 2020
2 parents 891e1a8 + 318b8b6 commit d4092ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d4092ac

Please sign in to comment.