@@ -1282,7 +1282,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1282
1282
}
1283
1283
1284
1284
fn propagate_closure_used_mut_upvar ( & mut self , operand : & Operand < ' tcx > ) {
1285
- let propagate_closure_used_mut_place = |this : & mut Self , place : & Place < ' tcx > | {
1285
+ let propagate_closure_used_mut_place = |this : & mut Self , place : Place < ' tcx > | {
1286
1286
if !place. projection . is_empty ( ) {
1287
1287
if let Some ( field) = this. is_upvar_field_projection ( place. as_ref ( ) ) {
1288
1288
this. used_mut_upvars . push ( field) ;
@@ -1296,7 +1296,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1296
1296
// captures of a closure are copied/moved directly
1297
1297
// when generating MIR.
1298
1298
match * operand {
1299
- Operand :: Move ( ref place) | Operand :: Copy ( ref place) => {
1299
+ Operand :: Move ( place) | Operand :: Copy ( place) => {
1300
1300
match place. as_local ( ) {
1301
1301
Some ( local) if !self . body . local_decls [ local] . is_user_variable ( ) => {
1302
1302
if self . body . local_decls [ local] . ty . is_mutable_ptr ( ) {
@@ -1335,8 +1335,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1335
1335
let stmt = & bbd. statements [ loc. statement_index ] ;
1336
1336
debug ! ( "temporary assigned in: stmt={:?}" , stmt) ;
1337
1337
1338
- if let StatementKind :: Assign ( box ( _, Rvalue :: Ref ( _, _, ref source) ) ) =
1339
- stmt. kind
1338
+ if let StatementKind :: Assign ( box ( _, Rvalue :: Ref ( _, _, source) ) ) = stmt. kind
1340
1339
{
1341
1340
propagate_closure_used_mut_place ( self , source) ;
1342
1341
} else {
0 commit comments