Skip to content

Commit 4705037

Browse files
committed
Auto merge of #73978 - Mark-Simulacrum:shrink-paramenv, r=nnethercote
Shrink ParamEnv to 16 bytes r? @nnethercote x.py check passes but I haven't tried running perf or tests
2 parents 30c046e + 3503247 commit 4705037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
111111

112112
let fn_def_id = cx.tcx.hir().local_def_id(hir_id);
113113

114-
let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds.iter())
114+
let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds().iter())
115115
.filter(|p| !p.is_global())
116116
.filter_map(|obligation| {
117117
if let ty::PredicateKind::Trait(poly_trait_ref, _) = obligation.predicate.kind() {

0 commit comments

Comments
 (0)