Skip to content

Commit

Permalink
Auto merge of rust-lang#73978 - Mark-Simulacrum:shrink-paramenv, r=nn…
Browse files Browse the repository at this point in the history
…ethercote

Shrink ParamEnv to 16 bytes

r? @nnethercote

x.py check passes but I haven't tried running perf or tests
  • Loading branch information
bors committed Jul 6, 2020
2 parents 30c046e + 3503247 commit 4705037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_pass_by_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {

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

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())
.filter(|p| !p.is_global())
.filter_map(|obligation| {
if let ty::PredicateKind::Trait(poly_trait_ref, _) = obligation.predicate.kind() {
Expand Down

0 comments on commit 4705037

Please sign in to comment.