File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 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 {
163163 /// the compiler will scrape examples and not generate documentation.
164164 pub ( crate ) scrape_examples_options : Option < ScrapeExamplesOptions > ,
165165
166+ /// Whether to generate documentation for tests.
167+ pub ( crate ) document_tests : bool ,
168+
166169 /// Note: this field is duplicated in `RenderOptions` because it's useful
167170 /// to have it in both places.
168171 pub ( crate ) unstable_features : rustc_feature:: UnstableFeatures ,
@@ -216,6 +219,7 @@ impl fmt::Debug for Options {
216219 . field ( "remap-file-prefix" , & self . remap_path_prefix )
217220 . field ( "nocapture" , & self . nocapture )
218221 . field ( "scrape_examples_options" , & self . scrape_examples_options )
222+ . field ( "document_tests" , & self . document_tests )
219223 . field ( "unstable_features" , & self . unstable_features )
220224 . finish ( )
221225 }
@@ -820,6 +824,7 @@ impl Options {
820824 output_format,
821825 json_unused_externs,
822826 scrape_examples_options,
827+ document_tests,
823828 unstable_features,
824829 expanded_args : args,
825830 } ;
You can’t perform that action at this time.
0 commit comments