This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-19
lines changed Expand file tree Collapse file tree 3 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -623,6 +623,9 @@ crate fn run_global_ctxt(
623623
624624 ctxt. sess ( ) . abort_if_errors ( ) ;
625625
626+ // The main crate doc comments are always collapsed.
627+ krate. collapsed = true ;
628+
626629 ( krate, ctxt. renderinfo . into_inner ( ) , ctxt. render_options )
627630}
628631
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ crate use stripper::*;
1414mod non_autolinks;
1515crate use self :: non_autolinks:: CHECK_NON_AUTOLINKS ;
1616
17- mod collapse_docs;
18- crate use self :: collapse_docs:: COLLAPSE_DOCS ;
19-
2017mod strip_hidden;
2118crate use self :: strip_hidden:: STRIP_HIDDEN ;
2219
@@ -84,7 +81,6 @@ crate const PASSES: &[Pass] = &[
8481 CHECK_PRIVATE_ITEMS_DOC_TESTS ,
8582 STRIP_HIDDEN ,
8683 UNINDENT_COMMENTS ,
87- COLLAPSE_DOCS ,
8884 STRIP_PRIVATE ,
8985 STRIP_PRIV_IMPORTS ,
9086 PROPAGATE_DOC_CFG ,
@@ -99,7 +95,6 @@ crate const PASSES: &[Pass] = &[
9995/// The list of passes run by default.
10096crate const DEFAULT_PASSES : & [ ConditionalPass ] = & [
10197 ConditionalPass :: always ( COLLECT_TRAIT_IMPLS ) ,
102- ConditionalPass :: always ( COLLAPSE_DOCS ) ,
10398 ConditionalPass :: always ( UNINDENT_COMMENTS ) ,
10499 ConditionalPass :: always ( CHECK_PRIVATE_ITEMS_DOC_TESTS ) ,
105100 ConditionalPass :: new ( STRIP_HIDDEN , WhenNotDocumentHidden ) ,
You can’t perform that action at this time.
0 commit comments