Skip to content

Commit

Permalink
Auto merge of rust-lang#5830 - flip1995:rustup, r=flip1995
Browse files Browse the repository at this point in the history
trait_sel: only test predicates w/ no substs

r? @ghost
changelog: none
  • Loading branch information
bors committed Jul 21, 2020
2 parents 61e3d8a + b7c8b96 commit 8c83d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/mod.rs
Expand Up @@ -1346,7 +1346,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 });
!traits::normalize_and_test_predicates(
traits::impossible_predicates(
cx.tcx,
traits::elaborate_predicates(cx.tcx, predicates)
.map(|o| o.predicate)
Expand Down

0 comments on commit 8c83d5f

Please sign in to comment.