@@ -243,7 +243,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
243243 let mut target = place. local_or_deref_local ( ) ;
244244 for stmt in & self . body [ location. block ] . statements [ location. statement_index ..] {
245245 debug ! ( "add_moved_or_invoked_closure_note: stmt={:?} target={:?}" , stmt, target) ;
246- if let StatementKind :: Assign ( box ( into, Rvalue :: Use ( from, _) ) ) = & stmt. kind {
246+ if let StatementKind :: Assign ( ( into, Rvalue :: Use ( from, _) ) ) = & stmt. kind {
247247 debug ! ( "add_fnonce_closure_note: into={:?} from={:?}" , into, from) ;
248248 match from {
249249 Operand :: Copy ( place) | Operand :: Move ( place)
@@ -260,7 +260,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
260260 let terminator = self . body [ location. block ] . terminator ( ) ;
261261 debug ! ( "add_moved_or_invoked_closure_note: terminator={:?}" , terminator) ;
262262 if let TerminatorKind :: Call {
263- func : Operand :: Constant ( box ConstOperand { const_, .. } ) ,
263+ func : Operand :: Constant ( ConstOperand { const_, .. } ) ,
264264 args,
265265 ..
266266 } = & terminator. kind
@@ -1030,7 +1030,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
10301030 } ;
10311031
10321032 debug ! ( "move_spans: moved_place={:?} location={:?} stmt={:?}" , moved_place, location, stmt) ;
1033- if let StatementKind :: Assign ( box ( _, Rvalue :: Aggregate ( kind, places) ) ) = & stmt. kind
1033+ if let StatementKind :: Assign ( ( _, Rvalue :: Aggregate ( kind, places) ) ) = & stmt. kind
10341034 && let AggregateKind :: Closure ( def_id, _) | AggregateKind :: Coroutine ( def_id, _) = * * kind
10351035 {
10361036 debug ! ( "move_spans: def_id={:?} places={:?}" , def_id, places) ;
@@ -1044,7 +1044,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
10441044
10451045 // StatementKind::FakeRead only contains a def_id if they are introduced as a result
10461046 // of pattern matching within a closure.
1047- if let StatementKind :: FakeRead ( box ( cause, place) ) = stmt. kind {
1047+ if let StatementKind :: FakeRead ( ( cause, place) ) = stmt. kind {
10481048 match cause {
10491049 FakeReadCause :: ForMatchedPlace ( Some ( closure_def_id) )
10501050 | FakeReadCause :: ForLet ( Some ( closure_def_id) ) => {
@@ -1084,7 +1084,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
10841084 // that has a `self` parameter.
10851085
10861086 let target_temp = match stmt. kind {
1087- StatementKind :: Assign ( box ( temp, _) ) if temp. as_local ( ) . is_some ( ) => {
1087+ StatementKind :: Assign ( ( temp, _) ) if temp. as_local ( ) . is_some ( ) => {
10881088 temp. as_local ( ) . unwrap ( )
10891089 }
10901090 _ => return normal_ret,
@@ -1131,7 +1131,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
11311131 use self :: UseSpans :: * ;
11321132 debug ! ( "borrow_spans: use_span={:?} location={:?}" , use_span, location) ;
11331133
1134- let Some ( Statement { kind : StatementKind :: Assign ( box ( place, _) ) , .. } ) =
1134+ let Some ( Statement { kind : StatementKind :: Assign ( ( place, _) ) , .. } ) =
11351135 self . body [ location. block ] . statements . get ( location. statement_index )
11361136 else {
11371137 return OtherUse ( use_span) ;
@@ -1157,10 +1157,10 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
11571157 self . body [ location. block ] . statements [ location. statement_index + 1 ..] . iter ( ) ;
11581158
11591159 for stmt in statements. chain ( maybe_additional_statement) {
1160- if let StatementKind :: Assign ( box ( _, Rvalue :: Aggregate ( kind, places) ) ) = & stmt. kind {
1160+ if let StatementKind :: Assign ( ( _, Rvalue :: Aggregate ( kind, places) ) ) = & stmt. kind {
11611161 let ( & def_id, is_coroutine) = match kind {
1162- box AggregateKind :: Closure ( def_id, _) => ( def_id, false ) ,
1163- box AggregateKind :: Coroutine ( def_id, _) => ( def_id, true ) ,
1162+ AggregateKind :: Closure ( def_id, _) => ( def_id, false ) ,
1163+ AggregateKind :: Coroutine ( def_id, _) => ( def_id, true ) ,
11641164 _ => continue ,
11651165 } ;
11661166 let def_id = def_id. expect_local ( ) ;
0 commit comments