@@ -321,7 +321,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
321
321
region:: Scope {
322
322
id : body. value . hir_id . local_id ,
323
323
data : region:: ScopeData :: Node
324
- } ) ) ;
324
+ } ) ) ;
325
325
let arg_cmt = Rc :: new ( self . mc . cat_rvalue (
326
326
arg. hir_id ,
327
327
arg. pat . span ,
@@ -402,20 +402,20 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
402
402
self . walk_expr ( & subexpr)
403
403
}
404
404
405
- hir:: ExprKind :: Unary ( hir:: UnDeref , ref base) => { // *base
405
+ hir:: ExprKind :: Unary ( hir:: UnDeref , ref base) => { // *base
406
406
self . select_from_expr ( & base) ;
407
407
}
408
408
409
- hir:: ExprKind :: Field ( ref base, _) => { // base.f
409
+ hir:: ExprKind :: Field ( ref base, _) => { // base.f
410
410
self . select_from_expr ( & base) ;
411
411
}
412
412
413
- hir:: ExprKind :: Index ( ref lhs, ref rhs) => { // lhs[rhs]
413
+ hir:: ExprKind :: Index ( ref lhs, ref rhs) => { // lhs[rhs]
414
414
self . select_from_expr ( & lhs) ;
415
415
self . consume_expr ( & rhs) ;
416
416
}
417
417
418
- hir:: ExprKind :: Call ( ref callee, ref args) => { // callee(args)
418
+ hir:: ExprKind :: Call ( ref callee, ref args) => { // callee(args)
419
419
self . walk_callee ( expr, & callee) ;
420
420
self . consume_exprs ( args) ;
421
421
}
@@ -824,12 +824,13 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
824
824
cmt_discr : mc:: cmt < ' tcx > ,
825
825
pat : & hir:: Pat ,
826
826
mode : & mut TrackMatchMode ) {
827
- debug ! ( "determine_pat_move_mode cmt_discr={:?} pat={:?}" , cmt_discr,
828
- pat ) ;
827
+ debug ! ( "determine_pat_move_mode cmt_discr={:?} pat={:?}" , cmt_discr, pat ) ;
828
+
829
829
return_if_err ! ( self . mc. cat_pattern( cmt_discr, pat, |cmt_pat, pat| {
830
830
if let PatKind :: Binding ( ..) = pat. node {
831
- let bm = * self . mc. tables. pat_binding_modes( ) . get( pat. hir_id)
832
- . expect( "missing binding mode" ) ;
831
+ let bm = * self . mc. tables. pat_binding_modes( )
832
+ . get( pat. hir_id)
833
+ . expect( "missing binding mode" ) ;
833
834
match bm {
834
835
ty:: BindByReference ( ..) =>
835
836
mode. lub( BorrowingMatch ) ,
0 commit comments