Replace tcx.mk_trait_ref with ty::TraitRef::new
This commit is contained in:
@@ -18,7 +18,7 @@ pub trait TraitEngine<'tcx>: 'tcx {
|
||||
def_id: DefId,
|
||||
cause: ObligationCause<'tcx>,
|
||||
) {
|
||||
let trait_ref = infcx.tcx.mk_trait_ref(def_id, [ty]);
|
||||
let trait_ref = ty::TraitRef::new(infcx.tcx, def_id, [ty]);
|
||||
self.register_predicate_obligation(
|
||||
infcx,
|
||||
Obligation {
|
||||
|
||||
Reference in New Issue
Block a user