Shrink ParamEnv to 16 bytes

This commit is contained in:
Mark Rousskov 2020-07-02 20:52:40 -04:00
parent 590e07bbc2
commit 3503247c11

View File

@ -111,7 +111,7 @@ fn check_fn(
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() {