Make PlaceRef lifetimes of monomorphized_place_ty be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-03 17:00:57 -03:00
parent 1a1dcfad6f
commit 2af5e87b4b
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -497,7 +497,7 @@ pub fn codegen_place(
result
}
pub fn monomorphized_place_ty(&self, place_ref: mir::PlaceRef<'_, 'tcx>) -> Ty<'tcx> {
pub fn monomorphized_place_ty(&self, place_ref: mir::PlaceRef<'tcx, 'tcx>) -> Ty<'tcx> {
let tcx = self.cx.tcx();
let place_ty = mir::Place::ty_from(place_ref.local, place_ref.projection, *self.mir, tcx);
self.monomorphize(&place_ty.ty)