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.
2 parents 30c046e + 3503247 commit 4705037Copy full SHA for 4705037
clippy_lints/src/needless_pass_by_value.rs
@@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
111
112
let fn_def_id = cx.tcx.hir().local_def_id(hir_id);
113
114
- let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds.iter())
+ let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds().iter())
115
.filter(|p| !p.is_global())
116
.filter_map(|obligation| {
117
if let ty::PredicateKind::Trait(poly_trait_ref, _) = obligation.predicate.kind() {
0 commit comments