@@ -1221,7 +1221,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1221
1221
) ;
1222
1222
if let StatementKind :: Assign (
1223
1223
Place :: Local ( assigned_to) ,
1224
- rvalue,
1224
+ box rvalue,
1225
1225
) = & stmt. kind {
1226
1226
debug ! ( "annotate_argument_and_return_for_borrow: assigned_to={:?} \
1227
1227
rvalue={:?}", assigned_to, rvalue) ;
@@ -1725,7 +1725,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1725
1725
None => return OtherUse ( self . mir . source_info ( location) . span ) ,
1726
1726
} ;
1727
1727
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 {
1729
1729
if let AggregateKind :: Closure ( def_id, _) = * * kind {
1730
1730
debug ! ( "find_closure_move_span: found closure {:?}" , places) ;
1731
1731
@@ -1788,7 +1788,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1788
1788
}
1789
1789
1790
1790
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 {
1792
1793
if let AggregateKind :: Closure ( def_id, _) = * * kind {
1793
1794
debug ! ( "find_closure_borrow_span: found closure {:?}" , places) ;
1794
1795
0 commit comments