Skip to content

Commit dd7411d

Browse files
committed
rustdoc: Process extern impls in all loaded crates
including those loaded through hacks.
1 parent c65f3db commit dd7411d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/passes/collect_intra_doc_links/early.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub(crate) fn early_resolve_intra_doc_links(
4848
link_resolver.resolve_doc_links_local(&krate.attrs);
4949
link_resolver.process_module_children_or_reexports(CRATE_DEF_ID.to_def_id());
5050
visit::walk_crate(&mut link_resolver, krate);
51-
link_resolver.process_extern_impls();
5251

5352
// FIXME: somehow rustdoc is still missing crates even though we loaded all
5453
// the known necessary crates. Load them all unconditionally until we find a way to fix this.
@@ -58,6 +57,8 @@ pub(crate) fn early_resolve_intra_doc_links(
5857
link_resolver.resolver.resolve_rustdoc_path(extern_name, TypeNS, parent_scope);
5958
}
6059

60+
link_resolver.process_extern_impls();
61+
6162
ResolverCaches {
6263
markdown_links: Some(link_resolver.markdown_links),
6364
doc_link_resolutions: link_resolver.doc_link_resolutions,

0 commit comments

Comments
 (0)