Make PlaceRef lifetimes of codegen_place be both 'tcx
This commit is contained in:
@@ -364,7 +364,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||||||
fn maybe_codegen_consume_direct(
|
fn maybe_codegen_consume_direct(
|
||||||
&mut self,
|
&mut self,
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
place_ref: mir::PlaceRef<'_, 'tcx>,
|
place_ref: mir::PlaceRef<'tcx, 'tcx>,
|
||||||
) -> Option<OperandRef<'tcx, Bx::Value>> {
|
) -> Option<OperandRef<'tcx, Bx::Value>> {
|
||||||
debug!("maybe_codegen_consume_direct(place_ref={:?})", place_ref);
|
debug!("maybe_codegen_consume_direct(place_ref={:?})", place_ref);
|
||||||
|
|
||||||
@@ -408,7 +408,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||||||
pub fn codegen_consume(
|
pub fn codegen_consume(
|
||||||
&mut self,
|
&mut self,
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
place_ref: mir::PlaceRef<'_, 'tcx>,
|
place_ref: mir::PlaceRef<'tcx, 'tcx>,
|
||||||
) -> OperandRef<'tcx, Bx::Value> {
|
) -> OperandRef<'tcx, Bx::Value> {
|
||||||
debug!("codegen_consume(place_ref={:?})", place_ref);
|
debug!("codegen_consume(place_ref={:?})", place_ref);
|
||||||
|
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||||||
pub fn codegen_place(
|
pub fn codegen_place(
|
||||||
&mut self,
|
&mut self,
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
place_ref: mir::PlaceRef<'_, 'tcx>,
|
place_ref: mir::PlaceRef<'tcx, 'tcx>,
|
||||||
) -> PlaceRef<'tcx, Bx::Value> {
|
) -> PlaceRef<'tcx, Bx::Value> {
|
||||||
debug!("codegen_place(place_ref={:?})", place_ref);
|
debug!("codegen_place(place_ref={:?})", place_ref);
|
||||||
let cx = self.cx;
|
let cx = self.cx;
|
||||||
|
|||||||
Reference in New Issue
Block a user