@@ -264,7 +264,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
264
264
}
265
265
266
266
PassMode :: Direct ( _) | PassMode :: Pair ( ..) => {
267
- let op = self . codegen_consume ( & mut bx, & mir:: Place :: return_place ( ) . as_ref ( ) ) ;
267
+ let op = self . codegen_consume ( & mut bx, mir:: Place :: return_place ( ) . as_ref ( ) ) ;
268
268
if let Ref ( llval, _, align) = op. val {
269
269
bx. load ( llval, align)
270
270
} else {
@@ -319,7 +319,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
319
319
return ;
320
320
}
321
321
322
- let place = self . codegen_place ( & mut bx, & location. as_ref ( ) ) ;
322
+ let place = self . codegen_place ( & mut bx, location. as_ref ( ) ) ;
323
323
let ( args1, args2) ;
324
324
let mut args = if let Some ( llextra) = place. llextra {
325
325
args2 = [ place. llval , llextra] ;
@@ -1111,7 +1111,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1111
1111
} else {
1112
1112
self . codegen_place (
1113
1113
bx,
1114
- & mir:: PlaceRef { local : & dest. local , projection : & dest. projection } ,
1114
+ mir:: PlaceRef { local : & dest. local , projection : & dest. projection } ,
1115
1115
)
1116
1116
} ;
1117
1117
if fn_ret. is_indirect ( ) {
@@ -1137,7 +1137,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1137
1137
LocalRef :: Place ( place) => self . codegen_transmute_into ( bx, src, place) ,
1138
1138
LocalRef :: UnsizedPlace ( _) => bug ! ( "transmute must not involve unsized locals" ) ,
1139
1139
LocalRef :: Operand ( None ) => {
1140
- let dst_layout = bx. layout_of ( self . monomorphized_place_ty ( & dst. as_ref ( ) ) ) ;
1140
+ let dst_layout = bx. layout_of ( self . monomorphized_place_ty ( dst. as_ref ( ) ) ) ;
1141
1141
assert ! ( !dst_layout. ty. has_erasable_regions( ) ) ;
1142
1142
let place = PlaceRef :: alloca ( bx, dst_layout) ;
1143
1143
place. storage_live ( bx) ;
@@ -1151,7 +1151,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1151
1151
}
1152
1152
}
1153
1153
} else {
1154
- let dst = self . codegen_place ( bx, & dst. as_ref ( ) ) ;
1154
+ let dst = self . codegen_place ( bx, dst. as_ref ( ) ) ;
1155
1155
self . codegen_transmute_into ( bx, src, dst) ;
1156
1156
}
1157
1157
}
0 commit comments