@@ -636,7 +636,7 @@ impl <'l, 'tcx> DxrVisitor<'l, 'tcx> {
636
636
item. id ) ;
637
637
638
638
for field in struct_def. fields . iter ( ) {
639
- self . process_struct_field_def ( field, enum_name [ ] , variant. node . id ) ;
639
+ self . process_struct_field_def ( field, qualname [ ] , variant. node . id ) ;
640
640
self . visit_ty ( & * field. node . ty ) ;
641
641
}
642
642
}
@@ -1422,8 +1422,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DxrVisitor<'l, 'tcx> {
1422
1422
let def_map = self . analysis . ty_cx . def_map . borrow ( ) ;
1423
1423
if !def_map. contains_key ( & id) {
1424
1424
self . sess . span_bug ( p. span ,
1425
- format ! ( "def_map has no key for {} in visit_arm" ,
1426
- id) [ ] ) ;
1425
+ format ! ( "def_map has no key for {} in visit_arm" , id) [ ] ) ;
1427
1426
}
1428
1427
let def = & ( * def_map) [ id] ;
1429
1428
match * def {
@@ -1433,16 +1432,15 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DxrVisitor<'l, 'tcx> {
1433
1432
path_to_string ( p) [ ] ,
1434
1433
value[ ] ,
1435
1434
"" ) ,
1436
- def:: DefVariant ( _, id , _) => self . fmt . ref_str ( ref_kind,
1437
- p. span ,
1438
- sub_span,
1439
- id,
1440
- self . cur_scope ) ,
1435
+ def:: DefVariant ( _, id , _) => self . fmt . ref_str ( ref_kind,
1436
+ p. span ,
1437
+ sub_span,
1438
+ id,
1439
+ self . cur_scope ) ,
1441
1440
// FIXME(nrc) what is this doing here?
1442
1441
def:: DefStatic ( _, _) => { }
1443
1442
def:: DefConst ( ..) => { }
1444
- _ => error ! ( "unexpected definition kind when processing collected paths: {}" ,
1445
- * def)
1443
+ _ => error ! ( "unexpected definition kind when processing collected paths: {}" , * def)
1446
1444
}
1447
1445
}
1448
1446
self . collected_paths . clear ( ) ;
0 commit comments