about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Huey <jack.huey@umassmed.edu>2020-12-23 16:36:23 -0500
committerJack Huey <jack.huey@umassmed.edu>2021-01-16 18:40:47 -0500
commit3436e21df5f728d9d784f48d0cc219737f9a222d (patch)
tree1edea033bbc8ab5c1c57ddb2dce437ee087e356d
parent38e293cf5d30a1609020c034d66e5aac3b844073 (diff)
downloadrust-3436e21df5f728d9d784f48d0cc219737f9a222d.tar.gz
rust-3436e21df5f728d9d784f48d0cc219737f9a222d.zip
Remove PredicateKind
-rw-r--r--clippy_lints/src/needless_pass_by_value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/needless_pass_by_value.rs b/clippy_lints/src/needless_pass_by_value.rs
index ad50a6a0405..d2a3bd3921d 100644
--- a/clippy_lints/src/needless_pass_by_value.rs
+++ b/clippy_lints/src/needless_pass_by_value.rs
@@ -115,7 +115,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
             .filter(|p| !p.is_global())
             .filter_map(|obligation| {
                 // Note that we do not want to deal with qualified predicates here.
-                let ty::PredicateKind::ForAll(binder) = obligation.predicate.kind();
+                let binder = obligation.predicate.kind();
                 match binder.skip_binder() {
                     ty::PredicateAtom::Trait(pred, _) if !binder.has_escaping_bound_vars() => {
                         if pred.def_id() == sized_trait {