@@ -1319,7 +1319,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
13191319 ) ;
13201320 if let StatementKind :: Assign (
13211321 Place :: Local ( assigned_to) ,
1322- rvalue,
1322+ box rvalue,
13231323 ) = & stmt. kind {
13241324 debug ! ( "annotate_argument_and_return_for_borrow: assigned_to={:?} \
13251325 rvalue={:?}", assigned_to, rvalue) ;
@@ -1823,7 +1823,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
18231823 None => return OtherUse ( self . mir . source_info ( location) . span ) ,
18241824 } ;
18251825
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 {
18271827 if let AggregateKind :: Closure ( def_id, _) = * * kind {
18281828 debug ! ( "find_closure_move_span: found closure {:?}" , places) ;
18291829
@@ -1886,7 +1886,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
18861886 }
18871887
18881888 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 {
18901891 if let AggregateKind :: Closure ( def_id, _) = * * kind {
18911892 debug ! ( "find_closure_borrow_span: found closure {:?}" , places) ;
18921893
0 commit comments