diff options
| author | bors <bors@rust-lang.org> | 2020-07-21 22:10:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-07-21 22:10:04 +0000 |
| commit | 8c83d5f484950d86630f467d32efcd585de2d775 (patch) | |
| tree | d1812ebcbcbc3fbc0a93fff7cfac2162100a5b21 | |
| parent | 61e3d8a55c760a543659d270940c25c8180dc637 (diff) | |
| parent | b7c8b96e668a1e3c84cf559de1426c6eebd7d1c1 (diff) | |
| download | rust-8c83d5f484950d86630f467d32efcd585de2d775.tar.gz rust-8c83d5f484950d86630f467d32efcd585de2d775.zip | |
Auto merge of #5830 - flip1995:rustup, r=flip1995
trait_sel: only test predicates w/ no substs r? @ghost changelog: none
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index 4b163fba528..a4bee1c2780 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -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) |
