Skip to content

Commit 7f24c21

Browse files
committed
Use pred not binder
1 parent e76476a commit 7f24c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
117117
// Note that we do not want to deal with qualified predicates here.
118118
let binder = obligation.predicate.bound_atom();
119119
match binder.skip_binder() {
120-
ty::PredicateAtom::Trait(pred, _) if !binder.has_escaping_bound_vars() => {
120+
ty::PredicateAtom::Trait(pred, _) if !pred.has_escaping_bound_vars() => {
121121
if pred.def_id() == sized_trait {
122122
return None;
123123
}

0 commit comments

Comments
 (0)