File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,9 @@ pub(crate) struct Options {
163
163
/// the compiler will scrape examples and not generate documentation.
164
164
pub ( crate ) scrape_examples_options : Option < ScrapeExamplesOptions > ,
165
165
166
+ /// Whether to generate documentation for tests.
167
+ pub ( crate ) document_tests : bool ,
168
+
166
169
/// Note: this field is duplicated in `RenderOptions` because it's useful
167
170
/// to have it in both places.
168
171
pub ( crate ) unstable_features : rustc_feature:: UnstableFeatures ,
@@ -216,6 +219,7 @@ impl fmt::Debug for Options {
216
219
. field ( "remap-file-prefix" , & self . remap_path_prefix )
217
220
. field ( "nocapture" , & self . nocapture )
218
221
. field ( "scrape_examples_options" , & self . scrape_examples_options )
222
+ . field ( "document_tests" , & self . document_tests )
219
223
. field ( "unstable_features" , & self . unstable_features )
220
224
. finish ( )
221
225
}
@@ -820,6 +824,7 @@ impl Options {
820
824
output_format,
821
825
json_unused_externs,
822
826
scrape_examples_options,
827
+ document_tests,
823
828
unstable_features,
824
829
expanded_args : args,
825
830
} ;
You can’t perform that action at this time.
0 commit comments