@@ -121,6 +121,8 @@ crate struct Options {
121121 /// For example, using ignore-foo to ignore running the doctest on any target that
122122 /// contains "foo" as a substring
123123 crate enable_per_target_ignores : bool ,
124+ /// Compile test but do not run them.
125+ crate no_run : bool ,
124126
125127 /// The path to a rustc-like binary to build tests with. If not set, we
126128 /// default to loading from `$sysroot/bin/rustc`.
@@ -196,6 +198,7 @@ impl fmt::Debug for Options {
196198 . field ( "runtool_args" , & self . runtool_args )
197199 . field ( "enable-per-target-ignores" , & self . enable_per_target_ignores )
198200 . field ( "run_check" , & self . run_check )
201+ . field ( "no_run" , & self . no_run )
199202 . finish ( )
200203 }
201204}
@@ -622,6 +625,7 @@ impl Options {
622625 let document_hidden = matches. opt_present ( "document-hidden-items" ) ;
623626 let run_check = matches. opt_present ( "check" ) ;
624627 let generate_redirect_map = matches. opt_present ( "generate-redirect-map" ) ;
628+ let no_run = matches. opt_present ( "no-run" ) ;
625629
626630 let ( lint_opts, describe_lints, lint_cap) = get_cmd_lint_options ( matches, error_format) ;
627631
@@ -658,6 +662,7 @@ impl Options {
658662 enable_per_target_ignores,
659663 test_builder,
660664 run_check,
665+ no_run,
661666 render_options : RenderOptions {
662667 output,
663668 external_html,
0 commit comments