Make PlaceRef lifetimes of monomorphized_place_ty be both 'tcx
This commit is contained in:
parent
1a1dcfad6f
commit
2af5e87b4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user