File tree 3 files changed +3
-19
lines changed
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(
623
623
624
624
ctxt. sess ( ) . abort_if_errors ( ) ;
625
625
626
+ // The main crate doc comments are always collapsed.
627
+ krate. collapsed = true ;
628
+
626
629
( krate, ctxt. renderinfo . into_inner ( ) , ctxt. render_options )
627
630
}
628
631
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ crate use stripper::*;
14
14
mod non_autolinks;
15
15
crate use self :: non_autolinks:: CHECK_NON_AUTOLINKS ;
16
16
17
- mod collapse_docs;
18
- crate use self :: collapse_docs:: COLLAPSE_DOCS ;
19
-
20
17
mod strip_hidden;
21
18
crate use self :: strip_hidden:: STRIP_HIDDEN ;
22
19
@@ -84,7 +81,6 @@ crate const PASSES: &[Pass] = &[
84
81
CHECK_PRIVATE_ITEMS_DOC_TESTS ,
85
82
STRIP_HIDDEN ,
86
83
UNINDENT_COMMENTS ,
87
- COLLAPSE_DOCS ,
88
84
STRIP_PRIVATE ,
89
85
STRIP_PRIV_IMPORTS ,
90
86
PROPAGATE_DOC_CFG ,
@@ -99,7 +95,6 @@ crate const PASSES: &[Pass] = &[
99
95
/// The list of passes run by default.
100
96
crate const DEFAULT_PASSES : & [ ConditionalPass ] = & [
101
97
ConditionalPass :: always ( COLLECT_TRAIT_IMPLS ) ,
102
- ConditionalPass :: always ( COLLAPSE_DOCS ) ,
103
98
ConditionalPass :: always ( UNINDENT_COMMENTS ) ,
104
99
ConditionalPass :: always ( CHECK_PRIVATE_ITEMS_DOC_TESTS ) ,
105
100
ConditionalPass :: new ( STRIP_HIDDEN , WhenNotDocumentHidden ) ,
You can’t perform that action at this time.
0 commit comments