We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76476a commit 7f24c21Copy full SHA for 7f24c21
src/tools/clippy/clippy_lints/src/needless_pass_by_value.rs
@@ -117,7 +117,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
117
// Note that we do not want to deal with qualified predicates here.
118
let binder = obligation.predicate.bound_atom();
119
match binder.skip_binder() {
120
- ty::PredicateAtom::Trait(pred, _) if !binder.has_escaping_bound_vars() => {
+ ty::PredicateAtom::Trait(pred, _) if !pred.has_escaping_bound_vars() => {
121
if pred.def_id() == sized_trait {
122
return None;
123
}
0 commit comments