@@ -1319,7 +1319,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1319
1319
) ;
1320
1320
if let StatementKind :: Assign (
1321
1321
Place :: Local ( assigned_to) ,
1322
- rvalue,
1322
+ box rvalue,
1323
1323
) = & stmt. kind {
1324
1324
debug ! ( "annotate_argument_and_return_for_borrow: assigned_to={:?} \
1325
1325
rvalue={:?}", assigned_to, rvalue) ;
@@ -1823,7 +1823,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1823
1823
None => return OtherUse ( self . mir . source_info ( location) . span ) ,
1824
1824
} ;
1825
1825
1826
- if let StatementKind :: Assign ( _, Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
1826
+ if let StatementKind :: Assign ( _, box Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
1827
1827
if let AggregateKind :: Closure ( def_id, _) = * * kind {
1828
1828
debug ! ( "find_closure_move_span: found closure {:?}" , places) ;
1829
1829
@@ -1886,7 +1886,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1886
1886
}
1887
1887
1888
1888
for stmt in & self . mir [ location. block ] . statements [ location. statement_index + 1 ..] {
1889
- if let StatementKind :: Assign ( _, Rvalue :: Aggregate ( ref kind, ref places) ) = stmt. kind {
1889
+ if let StatementKind :: Assign ( _, box Rvalue :: Aggregate ( ref kind, ref places) )
1890
+ = stmt. kind {
1890
1891
if let AggregateKind :: Closure ( def_id, _) = * * kind {
1891
1892
debug ! ( "find_closure_borrow_span: found closure {:?}" , places) ;
1892
1893
0 commit comments