Skip to content

Commit 8c83d5f

Browse files
committed
Auto merge of #5830 - flip1995:rustup, r=flip1995
trait_sel: only test predicates w/ no substs r? @ghost changelog: none
2 parents 61e3d8a + b7c8b96 commit 8c83d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ pub fn fn_has_unsatisfiable_preds(cx: &LateContext<'_>, did: DefId) -> bool {
13461346
.predicates
13471347
.iter()
13481348
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None });
1349-
!traits::normalize_and_test_predicates(
1349+
traits::impossible_predicates(
13501350
cx.tcx,
13511351
traits::elaborate_predicates(cx.tcx, predicates)
13521352
.map(|o| o.predicate)

0 commit comments

Comments
 (0)