@@ -26,13 +26,21 @@ use std::fmt::Write;
2626use std:: mem;
2727use std:: ops:: Range ;
2828
29- use crate :: { clean:: { self , utils:: find_nearest_parent_module} , html:: { format:: HrefError , markdown:: { MarkdownLink , markdown_links} } , lint:: { PRIVATE_INTRA_DOC_LINKS , BROKEN_INTRA_DOC_LINKS } , visit:: DocVisitor } ;
3029use crate :: clean:: { Crate , Item , ItemId , ItemLink , PrimitiveType } ;
3130use crate :: core:: DocContext ;
31+ use crate :: {
32+ clean:: { self , utils:: find_nearest_parent_module} ,
33+ html:: {
34+ format:: HrefError ,
35+ markdown:: { markdown_links, MarkdownLink } ,
36+ } ,
37+ lint:: { BROKEN_INTRA_DOC_LINKS , PRIVATE_INTRA_DOC_LINKS } ,
38+ visit:: DocVisitor ,
39+ } ;
3240
3341mod early;
34- crate use early:: early_resolve_intra_doc_links;
3542use super :: Pass ;
43+ crate use early:: early_resolve_intra_doc_links;
3644
3745crate const COLLECT_INTRA_DOC_LINKS : Pass = Pass {
3846 name : "collect-intra-doc-links" ,
@@ -1436,7 +1444,9 @@ impl LinkCollector<'_, '_> {
14361444 return Some ( ( ) ) ;
14371445 }
14381446 // `relative_to` is only used for the actual path of the link, not whether it's resolved or not.
1439- if let Err ( missing) = crate :: html:: format:: href_inner ( id, self . cx . tcx , & self . cx . cache , None , & [ ] ) {
1447+ if let Err ( missing) =
1448+ crate :: html:: format:: href_inner ( id, self . cx . tcx , & self . cx . cache , None , & [ ] )
1449+ {
14401450 missing_docs_for_link ( self . cx , & item, id, missing, & path_str, & diag_info) ;
14411451 }
14421452
0 commit comments