@@ -1221,7 +1221,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
12211221 ) ;
12221222 if let StatementKind :: Assign (
12231223 Place :: Local ( assigned_to) ,
1224- rvalue,
1224+ box rvalue,
12251225 ) = & stmt. kind {
12261226 debug ! ( "annotate_argument_and_return_for_borrow: assigned_to={:?} \
12271227 rvalue={:?}", assigned_to, rvalue) ;
@@ -1725,7 +1725,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
17251725 None => return OtherUse ( self . mir . source_info ( location) . span ) ,
17261726 } ;
17271727
1728- if let StatementKind :: Assign ( _, Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
1728+ if let StatementKind :: Assign ( _, box Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
17291729 if let AggregateKind :: Closure ( def_id, _) = * * kind {
17301730 debug ! ( "find_closure_move_span: found closure {:?}" , places) ;
17311731
@@ -1788,7 +1788,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
17881788 }
17891789
17901790 for stmt in & self . mir [ location. block ] . statements [ location. statement_index + 1 ..] {
1791- if let StatementKind :: Assign ( _, Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
1791+ if let StatementKind :: Assign ( _, box Rvalue :: Aggregate ( ref kind, ref places) )
1792+ = stmt. kind {
17921793 if let AggregateKind :: Closure ( def_id, _) = * * kind {
17931794 debug ! ( "find_closure_borrow_span: found closure {:?}" , places) ;
17941795
0 commit comments