@@ -106,7 +106,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
106
106
}
107
107
108
108
let count =
109
- self . monomorphize ( & count) . eval_usize ( bx. cx ( ) . tcx ( ) , ty:: ParamEnv :: reveal_all ( ) ) ;
109
+ self . monomorphize ( count) . eval_usize ( bx. cx ( ) . tcx ( ) , ty:: ParamEnv :: reveal_all ( ) ) ;
110
110
111
111
bx. write_operand_repeatedly ( cg_elem, count, dest)
112
112
}
@@ -181,7 +181,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
181
181
mir:: Rvalue :: Cast ( ref kind, ref source, mir_cast_ty) => {
182
182
let operand = self . codegen_operand ( & mut bx, source) ;
183
183
debug ! ( "cast operand is {:?}" , operand) ;
184
- let cast = bx. cx ( ) . layout_of ( self . monomorphize ( & mir_cast_ty) ) ;
184
+ let cast = bx. cx ( ) . layout_of ( self . monomorphize ( mir_cast_ty) ) ;
185
185
186
186
let val = match * kind {
187
187
mir:: CastKind :: Pointer ( PointerCast :: ReifyFnPointer ) => {
@@ -502,7 +502,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
502
502
}
503
503
504
504
mir:: Rvalue :: NullaryOp ( mir:: NullOp :: SizeOf , ty) => {
505
- let ty = self . monomorphize ( & ty) ;
505
+ let ty = self . monomorphize ( ty) ;
506
506
assert ! ( bx. cx( ) . type_is_sized( ty) ) ;
507
507
let val = bx. cx ( ) . const_usize ( bx. cx ( ) . layout_of ( ty) . size . bytes ( ) ) ;
508
508
let tcx = self . cx . tcx ( ) ;
@@ -516,7 +516,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
516
516
}
517
517
518
518
mir:: Rvalue :: NullaryOp ( mir:: NullOp :: Box , content_ty) => {
519
- let content_ty = self . monomorphize ( & content_ty) ;
519
+ let content_ty = self . monomorphize ( content_ty) ;
520
520
let content_layout = bx. cx ( ) . layout_of ( content_ty) ;
521
521
let llsize = bx. cx ( ) . const_usize ( content_layout. size . bytes ( ) ) ;
522
522
let llalign = bx. cx ( ) . const_usize ( content_layout. align . abi . bytes ( ) ) ;
@@ -554,7 +554,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
554
554
// aggregate rvalues are allowed to be operands.
555
555
let ty = rvalue. ty ( self . mir , self . cx . tcx ( ) ) ;
556
556
let operand =
557
- OperandRef :: new_zst ( & mut bx, self . cx . layout_of ( self . monomorphize ( & ty) ) ) ;
557
+ OperandRef :: new_zst ( & mut bx, self . cx . layout_of ( self . monomorphize ( ty) ) ) ;
558
558
( bx, operand)
559
559
}
560
560
}
@@ -774,7 +774,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
774
774
mir:: Rvalue :: Repeat ( ..) |
775
775
mir:: Rvalue :: Aggregate ( ..) => {
776
776
let ty = rvalue. ty ( self . mir , self . cx . tcx ( ) ) ;
777
- let ty = self . monomorphize ( & ty) ;
777
+ let ty = self . monomorphize ( ty) ;
778
778
self . cx . spanned_layout_of ( ty, span) . is_zst ( )
779
779
}
780
780
}
0 commit comments