diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-03-03 17:00:57 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-03-03 17:00:57 -0300 |
| commit | 2af5e87b4b3ef9c7210e4b40ad86a14ff32932f1 (patch) | |
| tree | 9a5b3e72ddfe8cd4b06f04c8a65d9156b0ffbba1 /src/librustc_codegen_ssa/mir | |
| parent | 1a1dcfad6fa13f1b2b69b0e111dcad10326d36ea (diff) | |
| download | rust-2af5e87b4b3ef9c7210e4b40ad86a14ff32932f1.tar.gz rust-2af5e87b4b3ef9c7210e4b40ad86a14ff32932f1.zip | |
Make PlaceRef lifetimes of monomorphized_place_ty be both 'tcx
Diffstat (limited to 'src/librustc_codegen_ssa/mir')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/place.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/place.rs b/src/librustc_codegen_ssa/mir/place.rs index 0d2749d3f5f..3ff0c8dd2aa 100644 --- a/src/librustc_codegen_ssa/mir/place.rs +++ b/src/librustc_codegen_ssa/mir/place.rs @@ -497,7 +497,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { 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) |
