@@ -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 ;
@@ -408,8 +410,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
408
410
id) ;
409
411
}
410
412
411
- fn process_trait_ref ( & mut self ,
412
- trait_ref : & ast:: TraitRef ) {
413
+ fn process_trait_ref ( & mut self , trait_ref : & ast:: TraitRef ) {
413
414
match self . lookup_type_ref ( trait_ref. ref_id ) {
414
415
Some ( id) => {
415
416
let sub_span = self . span . sub_span_for_type_name ( trait_ref. path . span ) ;
@@ -455,7 +456,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
455
456
456
457
// Dump generic params bindings, then visit_generics
457
458
fn process_generic_params ( & mut self ,
458
- generics : & ast:: Generics ,
459
+ generics : & ast:: Generics ,
459
460
full_span : Span ,
460
461
prefix : & str ,
461
462
id : NodeId ) {
@@ -515,8 +516,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
515
516
item : & ast:: Item ,
516
517
typ : & ast:: Ty ,
517
518
mt : ast:: Mutability ,
518
- expr : & ast:: Expr )
519
- {
519
+ expr : & ast:: Expr ) {
520
520
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( item. id) ) ;
521
521
522
522
// If the variable is immutable, save the initialising expression.
@@ -545,8 +545,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
545
545
ident : & ast:: Ident ,
546
546
span : Span ,
547
547
typ : & ast:: Ty ,
548
- expr : & ast:: Expr )
549
- {
548
+ expr : & ast:: Expr ) {
550
549
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( id) ) ;
551
550
552
551
let sub_span = self . span . sub_span_after_keyword ( span,
@@ -762,7 +761,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
762
761
}
763
762
764
763
fn process_mod ( & mut self ,
765
- item : & ast:: Item , // The module in question, represented as an item.
764
+ item : & ast:: Item , // The module in question, represented as an item.
766
765
m : & ast:: Mod ) {
767
766
let qualname = format ! ( "::{}" , self . analysis. ty_cx. map. path_to_string( item. id) ) ;
768
767
@@ -945,9 +944,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
945
944
visit:: walk_expr_opt ( self , base)
946
945
}
947
946
948
- fn process_method_call ( & mut self ,
949
- ex : & ast:: Expr ,
950
- args : & Vec < P < ast:: Expr > > ) {
947
+ fn process_method_call ( & mut self , ex : & ast:: Expr , args : & Vec < P < ast:: Expr > > ) {
951
948
let method_map = self . analysis . ty_cx . method_map . borrow ( ) ;
952
949
let method_callee = method_map. get ( & ty:: MethodCall :: expr ( ex. id ) ) . unwrap ( ) ;
953
950
let ( def_id, decl_id) = match method_callee. origin {
@@ -1002,7 +999,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
1002
999
visit:: walk_exprs ( self , & args[ ..] ) ;
1003
1000
}
1004
1001
1005
- fn process_pat ( & mut self , p : & ast:: Pat ) {
1002
+ fn process_pat ( & mut self , p : & ast:: Pat ) {
1006
1003
if generated_code ( p. span ) {
1007
1004
return
1008
1005
}
0 commit comments