@@ -466,7 +466,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
466
466
} ;
467
467
468
468
if parent_node. is_some ( ) {
469
- debug ! ( "got parent node for {:?} {:?}, id {:?}" , item. type_( ) , item. name, item. def_id) ;
469
+ trace ! ( "got parent node for {:?} {:?}, id {:?}" , item. type_( ) , item. name, item. def_id) ;
470
470
}
471
471
472
472
let current_item = match item. inner {
@@ -487,7 +487,10 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
487
487
for_. def_id ( ) . map ( |did| self . cx . tcx . item_name ( did) . to_string ( ) )
488
488
}
489
489
// we don't display docs on `extern crate` items anyway, so don't process them.
490
- ExternCrateItem ( ..) => return self . fold_item_recur ( item) ,
490
+ ExternCrateItem ( ..) => {
491
+ debug ! ( "ignoring extern crate item {:?}" , item. def_id) ;
492
+ return self . fold_item_recur ( item) ;
493
+ }
491
494
ImportItem ( Import :: Simple ( ref name, ..) ) => Some ( name. clone ( ) ) ,
492
495
MacroItem ( ..) => None ,
493
496
_ => item. name . clone ( ) ,
@@ -499,6 +502,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
499
502
500
503
let cx = self . cx ;
501
504
let dox = item. attrs . collapsed_doc_value ( ) . unwrap_or_else ( String :: new) ;
505
+ trace ! ( "got documentation '{}'" , dox) ;
502
506
503
507
look_for_tests ( & cx, & dox, & item, true ) ;
504
508
@@ -540,6 +544,8 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
540
544
} ) ;
541
545
542
546
for ( ori_link, link_range) in markdown_links ( & dox) {
547
+ trace ! ( "considering link '{}'" , ori_link) ;
548
+
543
549
// Bail early for real links.
544
550
if ori_link. contains ( '/' ) {
545
551
continue ;
@@ -866,6 +872,7 @@ fn build_diagnostic(
866
872
Some ( hir_id) => hir_id,
867
873
None => {
868
874
// If non-local, no need to check anything.
875
+ info ! ( "ignoring warning from parent crate: {}" , err_msg) ;
869
876
return ;
870
877
}
871
878
} ;
0 commit comments