@@ -80,8 +80,8 @@ struct DxrVisitor<'l, 'tcx: 'l> {
80
80
}
81
81
82
82
impl < ' l , ' tcx > DxrVisitor < ' l , ' tcx > {
83
- fn nest < F > ( & mut self , scope_id : NodeId , f : F ) where
84
- F : FnOnce ( & mut DxrVisitor < ' l , ' tcx > ) ,
83
+ fn nest < F > ( & mut self , scope_id : NodeId , f : F )
84
+ where F : FnOnce ( & mut DxrVisitor < ' l , ' tcx > )
85
85
{
86
86
let parent_scope = self . cur_scope ;
87
87
self . cur_scope = scope_id;
@@ -287,9 +287,11 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
287
287
}
288
288
}
289
289
290
- fn process_method ( & mut self , sig : & ast:: MethodSig ,
290
+ fn process_method ( & mut self ,
291
+ sig : & ast:: MethodSig ,
291
292
body : Option < & ast:: Block > ,
292
- id : ast:: NodeId , name : ast:: Name ,
293
+ id : ast:: NodeId ,
294
+ name : ast:: Name ,
293
295
span : Span ) {
294
296
if generated_code ( span) {
295
297
return ;
@@ -406,8 +408,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
406
408
id) ;
407
409
}
408
410
409
- fn process_trait_ref ( & mut self ,
410
- trait_ref : & ast:: TraitRef ) {
411
+ fn process_trait_ref ( & mut self , trait_ref : & ast:: TraitRef ) {
411
412
match self . lookup_type_ref ( trait_ref. ref_id ) {
412
413
Some ( id) => {
413
414
let sub_span = self . span . sub_span_for_type_name ( trait_ref. path . span ) ;
@@ -453,7 +454,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
453
454
454
455
// Dump generic params bindings, then visit_generics
455
456
fn process_generic_params ( & mut self ,
456
- generics : & ast:: Generics ,
457
+ generics : & ast:: Generics ,
457
458
full_span : Span ,
458
459
prefix : & str ,
459
460
id : NodeId ) {
@@ -513,8 +514,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
513
514
item : & ast:: Item ,
514
515
typ : & ast:: Ty ,
515
516
mt : ast:: Mutability ,
516
- expr : & ast:: Expr )
517
- {
517
+ expr : & ast:: Expr ) {
518
518
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( item. id) ) ;
519
519
520
520
// If the variable is immutable, save the initialising expression.
@@ -543,8 +543,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
543
543
ident : & ast:: Ident ,
544
544
span : Span ,
545
545
typ : & ast:: Ty ,
546
- expr : & ast:: Expr )
547
- {
546
+ expr : & ast:: Expr ) {
548
547
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( id) ) ;
549
548
550
549
let sub_span = self . span . sub_span_after_keyword ( span,
@@ -760,7 +759,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
760
759
}
761
760
762
761
fn process_mod ( & mut self ,
763
- item : & ast:: Item , // The module in question, represented as an item.
762
+ item : & ast:: Item , // The module in question, represented as an item.
764
763
m : & ast:: Mod ) {
765
764
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( item. id) ) ;
766
765
@@ -943,9 +942,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
943
942
visit:: walk_expr_opt ( self , base)
944
943
}
945
944
946
- fn process_method_call ( & mut self ,
947
- ex : & ast:: Expr ,
948
- args : & Vec < P < ast:: Expr > > ) {
945
+ fn process_method_call ( & mut self , ex : & ast:: Expr , args : & Vec < P < ast:: Expr > > ) {
949
946
let method_map = self . analysis . ty_cx . method_map . borrow ( ) ;
950
947
let method_callee = method_map. get ( & ty:: MethodCall :: expr ( ex. id ) ) . unwrap ( ) ;
951
948
let ( def_id, decl_id) = match method_callee. origin {
@@ -1000,7 +997,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
1000
997
visit:: walk_exprs ( self , & args[ ..] ) ;
1001
998
}
1002
999
1003
- fn process_pat ( & mut self , p : & ast:: Pat ) {
1000
+ fn process_pat ( & mut self , p : & ast:: Pat ) {
1004
1001
if generated_code ( p. span ) {
1005
1002
return
1006
1003
}
0 commit comments