@@ -57,8 +57,9 @@ pub struct Pass {
5757 pub description : & ' static str ,
5858}
5959
60+
6061/// The full list of passes.
61- pub const PASSES : & ' static [ Pass ] = & [
62+ pub const PASSES : & [ Pass ] = & [
6263 CHECK_PRIVATE_ITEMS_DOC_TESTS ,
6364 STRIP_HIDDEN ,
6465 UNINDENT_COMMENTS ,
@@ -73,43 +74,43 @@ pub const PASSES: &'static [Pass] = &[
7374] ;
7475
7576/// The list of passes run by default.
76- pub const DEFAULT_PASSES : & [ & str ] = & [
77- "collect-trait-impls" ,
78- "collapse-docs" ,
79- "unindent-comments" ,
80- "check-private-items-doc-tests" ,
81- "strip-hidden" ,
82- "strip-private" ,
83- "collect-intra-doc-links" ,
84- "check-code-block-syntax" ,
85- "propagate-doc-cfg" ,
77+ pub const DEFAULT_PASSES : & [ Pass ] = & [
78+ COLLECT_TRAIT_IMPLS ,
79+ COLLAPSE_DOCS ,
80+ UNINDENT_COMMENTS ,
81+ CHECK_PRIVATE_ITEMS_DOC_TESTS ,
82+ STRIP_HIDDEN ,
83+ STRIP_PRIVATE ,
84+ COLLECT_INTRA_DOC_LINKS ,
85+ CHECK_CODE_BLOCK_SYNTAX ,
86+ PROPAGATE_DOC_CFG ,
8687] ;
8788
8889/// The list of default passes run with `--document-private-items` is passed to rustdoc.
89- pub const DEFAULT_PRIVATE_PASSES : & [ & str ] = & [
90- "collect-trait-impls" ,
91- "collapse-docs" ,
92- "unindent-comments" ,
93- "check-private-items-doc-tests" ,
94- "strip-priv-imports" ,
95- "collect-intra-doc-links" ,
96- "check-code-block-syntax" ,
97- "propagate-doc-cfg" ,
90+ pub const DEFAULT_PRIVATE_PASSES : & [ Pass ] = & [
91+ COLLECT_TRAIT_IMPLS ,
92+ COLLAPSE_DOCS ,
93+ UNINDENT_COMMENTS ,
94+ CHECK_PRIVATE_ITEMS_DOC_TESTS ,
95+ STRIP_PRIV_IMPORTS ,
96+ COLLECT_INTRA_DOC_LINKS ,
97+ CHECK_CODE_BLOCK_SYNTAX ,
98+ PROPAGATE_DOC_CFG ,
9899] ;
99100
100101/// The list of default passes run when `--doc-coverage` is passed to rustdoc.
101- pub const DEFAULT_COVERAGE_PASSES : & ' static [ & ' static str ] = & [
102- "collect-trait-impls" ,
103- "strip-hidden" ,
104- "strip-private" ,
105- "calculate-doc-coverage" ,
102+ pub const DEFAULT_COVERAGE_PASSES : & [ Pass ] = & [
103+ COLLECT_TRAIT_IMPLS ,
104+ STRIP_HIDDEN ,
105+ STRIP_PRIVATE ,
106+ CALCULATE_DOC_COVERAGE ,
106107] ;
107108
108109/// The list of default passes run when `--doc-coverage --document-private-items` is passed to
109110/// rustdoc.
110- pub const PRIVATE_COVERAGE_PASSES : & ' static [ & ' static str ] = & [
111- "collect-trait-impls" ,
112- "calculate-doc-coverage" ,
111+ pub const PRIVATE_COVERAGE_PASSES : & [ Pass ] = & [
112+ COLLECT_TRAIT_IMPLS ,
113+ CALCULATE_DOC_COVERAGE ,
113114] ;
114115
115116/// A shorthand way to refer to which set of passes to use, based on the presence of
@@ -124,7 +125,7 @@ pub enum DefaultPassOption {
124125}
125126
126127/// Returns the given default set of passes.
127- pub fn defaults ( default_set : DefaultPassOption ) -> & ' static [ & ' static str ] {
128+ pub fn defaults ( default_set : DefaultPassOption ) -> & ' static [ Pass ] {
128129 match default_set {
129130 DefaultPassOption :: Default => DEFAULT_PASSES ,
130131 DefaultPassOption :: Private => DEFAULT_PRIVATE_PASSES ,
0 commit comments