Switch ty::TraitRef::from_lang_item
from using TyCtxtAt
to TyCtxt
and a Span
This commit is contained in:
parent
071f737a57
commit
4f2532fb53
10 changed files with 33 additions and 24 deletions
|
@ -1683,7 +1683,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
|
|||
&obligation.with(
|
||||
selcx.tcx(),
|
||||
ty::Binder::dummy(
|
||||
ty::TraitRef::from_lang_item(selcx.tcx().at(obligation.cause.span()), LangItem::Sized, [self_ty]),
|
||||
ty::TraitRef::from_lang_item(selcx.tcx(), LangItem::Sized, obligation.cause.span(),[self_ty]),
|
||||
)
|
||||
.without_const(),
|
||||
),
|
||||
|
@ -1949,8 +1949,9 @@ fn confirm_builtin_candidate<'cx, 'tcx>(
|
|||
});
|
||||
if check_is_sized {
|
||||
let sized_predicate = ty::Binder::dummy(ty::TraitRef::from_lang_item(
|
||||
tcx.at(obligation.cause.span()),
|
||||
tcx,
|
||||
LangItem::Sized,
|
||||
obligation.cause.span(),
|
||||
[self_ty],
|
||||
))
|
||||
.without_const();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue