@@ -466,7 +466,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
466466 } ;
467467
468468 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) ;
470470 }
471471
472472 let current_item = match item. inner {
@@ -487,7 +487,10 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
487487 for_. def_id ( ) . map ( |did| self . cx . tcx . item_name ( did) . to_string ( ) )
488488 }
489489 // 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+ }
491494 ImportItem ( Import :: Simple ( ref name, ..) ) => Some ( name. clone ( ) ) ,
492495 MacroItem ( ..) => None ,
493496 _ => item. name . clone ( ) ,
@@ -499,6 +502,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
499502
500503 let cx = self . cx ;
501504 let dox = item. attrs . collapsed_doc_value ( ) . unwrap_or_else ( String :: new) ;
505+ trace ! ( "got documentation '{}'" , dox) ;
502506
503507 look_for_tests ( & cx, & dox, & item, true ) ;
504508
@@ -540,6 +544,8 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
540544 } ) ;
541545
542546 for ( ori_link, link_range) in markdown_links ( & dox) {
547+ trace ! ( "considering link '{}'" , ori_link) ;
548+
543549 // Bail early for real links.
544550 if ori_link. contains ( '/' ) {
545551 continue ;
@@ -866,6 +872,7 @@ fn build_diagnostic(
866872 Some ( hir_id) => hir_id,
867873 None => {
868874 // If non-local, no need to check anything.
875+ info ! ( "ignoring warning from parent crate: {}" , err_msg) ;
869876 return ;
870877 }
871878 } ;
0 commit comments