Remove many more cases of mk_substs_trait
that can now use the iterator scheme`
This commit is contained in:
parent
0fe86aa977
commit
1bf80249ae
7 changed files with 25 additions and 19 deletions
|
@ -425,13 +425,8 @@ pub fn fully_solve_bound<'tcx>(
|
|||
bound: DefId,
|
||||
) -> Vec<FulfillmentError<'tcx>> {
|
||||
let tcx = infcx.tcx;
|
||||
let trait_ref = ty::TraitRef { def_id: bound, substs: tcx.mk_substs_trait(ty, []) };
|
||||
let obligation = Obligation {
|
||||
cause,
|
||||
recursion_depth: 0,
|
||||
param_env,
|
||||
predicate: ty::Binder::dummy(trait_ref).without_const().to_predicate(tcx),
|
||||
};
|
||||
let trait_ref = tcx.mk_trait_ref(bound, [ty]);
|
||||
let obligation = Obligation::new(tcx, cause, param_env, ty::Binder::dummy(trait_ref));
|
||||
|
||||
fully_solve_obligation(infcx, obligation)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue