Skip to content

Commit fcc47d0

Browse files
rustdoc: Fix passes order so intra-doc links are collected after stripping passes
1 parent a41214f commit fcc47d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/passes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ pub(crate) const DEFAULT_PASSES: &[ConditionalPass] = &[
9494
ConditionalPass::always(COLLECT_TRAIT_IMPLS),
9595
ConditionalPass::always(CHECK_DOC_TEST_VISIBILITY),
9696
ConditionalPass::always(CHECK_DOC_CFG),
97-
ConditionalPass::always(COLLECT_INTRA_DOC_LINKS),
9897
ConditionalPass::always(STRIP_ALIASED_NON_LOCAL),
9998
ConditionalPass::new(STRIP_HIDDEN, WhenNotDocumentHidden),
10099
ConditionalPass::new(STRIP_PRIVATE, WhenNotDocumentPrivate),
101100
ConditionalPass::new(STRIP_PRIV_IMPORTS, WhenDocumentPrivate),
101+
ConditionalPass::always(COLLECT_INTRA_DOC_LINKS),
102102
ConditionalPass::always(PROPAGATE_DOC_CFG),
103103
ConditionalPass::always(PROPAGATE_STABILITY),
104104
ConditionalPass::always(RUN_LINTS),

0 commit comments

Comments
 (0)