Simplify one more TraitRef::new
site
This commit is contained in:
parent
5316378e55
commit
a6c5212f13
@ -804,10 +804,9 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
|
|||||||
self.tcx,
|
self.tcx,
|
||||||
self.cause.clone(),
|
self.cause.clone(),
|
||||||
self.param_env,
|
self.param_env,
|
||||||
ty::Binder::dummy(ty::TraitRef::new(
|
ty::Binder::dummy(
|
||||||
self.tcx.require_lang_item(hir::LangItem::PointerSized, Some(self.cause.span)),
|
self.tcx.at(self.cause.span).mk_trait_ref(hir::LangItem::PointerSized, [a]),
|
||||||
self.tcx.mk_substs_trait(a, []),
|
)
|
||||||
))
|
|
||||||
.to_poly_trait_predicate(),
|
.to_poly_trait_predicate(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user