Replace tcx.mk_trait_ref
with ty::TraitRef::new
This commit is contained in:
parent
2d8c905e15
commit
46b01abbcd
41 changed files with 193 additions and 125 deletions
|
@ -2412,7 +2412,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
self.tcx(),
|
||||
cause.clone(),
|
||||
param_env,
|
||||
self.tcx().mk_trait_ref(trait_def_id, [normalized_ty]),
|
||||
ty::TraitRef::new(self.tcx(), trait_def_id, [normalized_ty]),
|
||||
);
|
||||
obligations.push(obligation);
|
||||
obligations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue