mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Simplify a bunch of trait ref obligation creations
This commit is contained in:
committed by
Santiago Pastorino
parent
2ad5e486f6
commit
53f78ae0f3
@@ -698,9 +698,8 @@ fn matches_preds<'tcx>(
|
||||
cx.tcx,
|
||||
ObligationCause::dummy(),
|
||||
cx.param_env,
|
||||
cx.tcx.mk_predicate(Binder::bind_with_vars(
|
||||
cx.tcx.mk_predicate(Binder::dummy(
|
||||
PredicateKind::Projection(p.with_self_ty(cx.tcx, ty)),
|
||||
List::empty(),
|
||||
)),
|
||||
)),
|
||||
ExistentialPredicate::AutoTrait(p) => infcx
|
||||
|
||||
Reference in New Issue
Block a user