Skip to content

Commit 3503247

Browse files
Shrink ParamEnv to 16 bytes
1 parent 590e07b commit 3503247

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<'a, 'tcx> LateLintPass<'a, '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)