@@ -383,7 +383,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
383
383
( bx, OperandRef { val, layout : cast } )
384
384
}
385
385
386
- mir:: Rvalue :: Ref ( _, bk, ref place) => {
386
+ mir:: Rvalue :: Ref ( _, bk, place) => {
387
387
let mk_ref = move |tcx : TyCtxt < ' tcx > , ty : Ty < ' tcx > | {
388
388
tcx. mk_ref (
389
389
tcx. lifetimes . re_erased ,
@@ -393,7 +393,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
393
393
self . codegen_place_to_pointer ( bx, place, mk_ref)
394
394
}
395
395
396
- mir:: Rvalue :: AddressOf ( mutability, ref place) => {
396
+ mir:: Rvalue :: AddressOf ( mutability, place) => {
397
397
let mk_ptr = move |tcx : TyCtxt < ' tcx > , ty : Ty < ' tcx > | {
398
398
tcx. mk_ptr ( ty:: TypeAndMut { ty, mutbl : mutability } )
399
399
} ;
@@ -557,7 +557,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
557
557
fn codegen_place_to_pointer (
558
558
& mut self ,
559
559
mut bx : Bx ,
560
- place : & mir:: Place < ' tcx > ,
560
+ place : mir:: Place < ' tcx > ,
561
561
mk_ptr_ty : impl FnOnce ( TyCtxt < ' tcx > , Ty < ' tcx > ) -> Ty < ' tcx > ,
562
562
) -> ( Bx , OperandRef < ' tcx , Bx :: Value > ) {
563
563
let cg_place = self . codegen_place ( & mut bx, place. as_ref ( ) ) ;
0 commit comments