@@ -407,7 +407,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
407407 let ret_statement = self . make_statement (
408408 StatementKind :: Assign (
409409 Place :: Local ( RETURN_PLACE ) ,
410- Rvalue :: Use ( Operand :: Copy ( rcvr) )
410+ box Rvalue :: Use ( Operand :: Copy ( rcvr) )
411411 )
412412 ) ;
413413 self . block ( vec ! [ ret_statement] , TerminatorKind :: Return , false ) ;
@@ -458,7 +458,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
458458 let statement = self . make_statement (
459459 StatementKind :: Assign (
460460 ref_loc. clone ( ) ,
461- Rvalue :: Ref ( tcx. types . re_erased , BorrowKind :: Shared , src)
461+ box Rvalue :: Ref ( tcx. types . re_erased , BorrowKind :: Shared , src)
462462 )
463463 ) ;
464464
@@ -485,7 +485,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
485485 let compute_cond = self . make_statement (
486486 StatementKind :: Assign (
487487 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) )
489489 )
490490 ) ;
491491
@@ -521,13 +521,13 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
521521 self . make_statement(
522522 StatementKind :: Assign (
523523 Place :: Local ( beg) ,
524- Rvalue :: Use ( Operand :: Constant ( self . make_usize( 0 ) ) )
524+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize( 0 ) ) )
525525 )
526526 ) ,
527527 self . make_statement(
528528 StatementKind :: Assign (
529529 end. clone( ) ,
530- Rvalue :: Use ( Operand :: Constant ( self . make_usize( len) ) )
530+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize( len) ) )
531531 )
532532 )
533533 ] ;
@@ -555,7 +555,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
555555 self . make_statement(
556556 StatementKind :: Assign (
557557 Place :: Local ( beg) ,
558- Rvalue :: BinaryOp (
558+ box Rvalue :: BinaryOp (
559559 BinOp :: Add ,
560560 Operand :: Copy ( Place :: Local ( beg) ) ,
561561 Operand :: Constant ( self . make_usize( 1 ) )
@@ -578,7 +578,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
578578 let init = self . make_statement (
579579 StatementKind :: Assign (
580580 Place :: Local ( beg) ,
581- Rvalue :: Use ( Operand :: Constant ( self . make_usize ( 0 ) ) )
581+ box Rvalue :: Use ( Operand :: Constant ( self . make_usize ( 0 ) ) )
582582 )
583583 ) ;
584584 self . block ( vec ! [ init] , TerminatorKind :: Goto { target : BasicBlock :: new ( 6 ) } , true ) ;
@@ -605,7 +605,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
605605 let statement = self . make_statement (
606606 StatementKind :: Assign (
607607 Place :: Local ( beg) ,
608- Rvalue :: BinaryOp (
608+ box Rvalue :: BinaryOp (
609609 BinOp :: Add ,
610610 Operand :: Copy ( Place :: Local ( beg) ) ,
611611 Operand :: Constant ( self . make_usize ( 1 ) )
@@ -715,7 +715,7 @@ fn build_call_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
715715 source_info,
716716 kind : StatementKind :: Assign (
717717 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)
719719 )
720720 } ) ;
721721 Operand :: Move ( Place :: Local ( ref_rcvr) )
@@ -851,7 +851,7 @@ pub fn build_adt_ctor<'a, 'gcx, 'tcx>(infcx: &infer::InferCtxt<'a, 'gcx, 'tcx>,
851851 source_info,
852852 kind: StatementKind :: Assign (
853853 Place :: Local ( RETURN_PLACE ) ,
854- Rvalue :: Aggregate (
854+ box Rvalue :: Aggregate (
855855 box AggregateKind :: Adt ( adt_def, variant_no, substs, None , None ) ,
856856 ( 1 ..sig. inputs( ) . len( ) +1 ) . map( |i| {
857857 Operand :: Move ( Place :: Local ( Local :: new( i) ) )
0 commit comments