get rid of to_poly_trait_predicate
This commit is contained in:
parent
65a6e22668
commit
08afabddac
12 changed files with 40 additions and 49 deletions
|
@ -477,7 +477,7 @@ fn subst_and_check_impossible_predicates<'tcx>(
|
|||
// associated items.
|
||||
if let Some(trait_def_id) = tcx.trait_of_item(key.0) {
|
||||
let trait_ref = ty::TraitRef::from_method(tcx, trait_def_id, key.1);
|
||||
predicates.push(ty::Binder::dummy(trait_ref).to_poly_trait_predicate().to_predicate(tcx));
|
||||
predicates.push(ty::Binder::dummy(trait_ref).to_predicate(tcx));
|
||||
}
|
||||
|
||||
predicates.retain(|predicate| !predicate.needs_subst());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue