@@ -407,7 +407,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
407
407
let ret_statement = self . make_statement (
408
408
StatementKind :: Assign (
409
409
Place :: Local ( RETURN_PLACE ) ,
410
- Rvalue :: Use ( Operand :: Copy ( rcvr) )
410
+ box Rvalue :: Use ( Operand :: Copy ( rcvr) )
411
411
)
412
412
) ;
413
413
self . block ( vec ! [ ret_statement] , TerminatorKind :: Return , false ) ;
@@ -458,7 +458,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
458
458
let statement = self . make_statement (
459
459
StatementKind :: Assign (
460
460
ref_loc. clone ( ) ,
461
- Rvalue :: Ref ( tcx. types . re_erased , BorrowKind :: Shared , src)
461
+ box Rvalue :: Ref ( tcx. types . re_erased , BorrowKind :: Shared , src)
462
462
)
463
463
) ;
464
464
@@ -485,7 +485,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
485
485
let compute_cond = self . make_statement (
486
486
StatementKind :: Assign (
487
487
cond. clone ( ) ,
488
- Rvalue :: BinaryOp ( BinOp :: Ne , Operand :: Copy ( end) , Operand :: Copy ( beg) )
488
+ box Rvalue :: BinaryOp ( BinOp :: Ne , Operand :: Copy ( end) , Operand :: Copy ( beg) )
489
489
)
490
490
) ;
491
491
@@ -521,13 +521,13 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
521
521
self . make_statement(
522
522
StatementKind :: Assign (
523
523
Place :: Local ( beg) ,
524
- Rvalue :: Use ( Operand :: Constant ( self . make_usize( 0 ) ) )
524
+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize( 0 ) ) )
525
525
)
526
526
) ,
527
527
self . make_statement(
528
528
StatementKind :: Assign (
529
529
end. clone( ) ,
530
- Rvalue :: Use ( Operand :: Constant ( self . make_usize( len) ) )
530
+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize( len) ) )
531
531
)
532
532
)
533
533
] ;
@@ -555,7 +555,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
555
555
self . make_statement(
556
556
StatementKind :: Assign (
557
557
Place :: Local ( beg) ,
558
- Rvalue :: BinaryOp (
558
+ box Rvalue :: BinaryOp (
559
559
BinOp :: Add ,
560
560
Operand :: Copy ( Place :: Local ( beg) ) ,
561
561
Operand :: Constant ( self . make_usize( 1 ) )
@@ -578,7 +578,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
578
578
let init = self . make_statement (
579
579
StatementKind :: Assign (
580
580
Place :: Local ( beg) ,
581
- Rvalue :: Use ( Operand :: Constant ( self . make_usize ( 0 ) ) )
581
+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize ( 0 ) ) )
582
582
)
583
583
) ;
584
584
self . block ( vec ! [ init] , TerminatorKind :: Goto { target : BasicBlock :: new ( 6 ) } , true ) ;
@@ -605,7 +605,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
605
605
let statement = self . make_statement (
606
606
StatementKind :: Assign (
607
607
Place :: Local ( beg) ,
608
- Rvalue :: BinaryOp (
608
+ box Rvalue :: BinaryOp (
609
609
BinOp :: Add ,
610
610
Operand :: Copy ( Place :: Local ( beg) ) ,
611
611
Operand :: Constant ( self . make_usize ( 1 ) )
@@ -715,7 +715,7 @@ fn build_call_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
715
715
source_info,
716
716
kind : StatementKind :: Assign (
717
717
Place :: Local ( ref_rcvr) ,
718
- Rvalue :: Ref ( tcx. types . re_erased , borrow_kind, rcvr_l)
718
+ box Rvalue :: Ref ( tcx. types . re_erased , borrow_kind, rcvr_l)
719
719
)
720
720
} ) ;
721
721
Operand :: Move ( Place :: Local ( ref_rcvr) )
@@ -851,7 +851,7 @@ pub fn build_adt_ctor<'a, 'gcx, 'tcx>(infcx: &infer::InferCtxt<'a, 'gcx, 'tcx>,
851
851
source_info,
852
852
kind: StatementKind :: Assign (
853
853
Place :: Local ( RETURN_PLACE ) ,
854
- Rvalue :: Aggregate (
854
+ box Rvalue :: Aggregate (
855
855
box AggregateKind :: Adt ( adt_def, variant_no, substs, None , None ) ,
856
856
( 1 ..sig. inputs( ) . len( ) +1 ) . map( |i| {
857
857
Operand :: Move ( Place :: Local ( Local :: new( i) ) )
0 commit comments