Skip to content

Commit 53f78ae

Browse files
oli-obkspastorino
authored andcommitted
Simplify a bunch of trait ref obligation creations
1 parent 2ad5e48 commit 53f78ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/ptr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,8 @@ fn matches_preds<'tcx>(
698698
cx.tcx,
699699
ObligationCause::dummy(),
700700
cx.param_env,
701-
cx.tcx.mk_predicate(Binder::bind_with_vars(
701+
cx.tcx.mk_predicate(Binder::dummy(
702702
PredicateKind::Projection(p.with_self_ty(cx.tcx, ty)),
703-
List::empty(),
704703
)),
705704
)),
706705
ExistentialPredicate::AutoTrait(p) => infcx

0 commit comments

Comments
 (0)