@@ -156,6 +156,8 @@ crate struct Options {
156156 crate run_check : bool ,
157157 /// Whether doctests should emit unused externs
158158 crate json_unused_externs : bool ,
159+ /// Whether to skip capturing stdout and stderr of tests.
160+ crate nocapture : bool ,
159161}
160162
161163impl fmt:: Debug for Options {
@@ -199,6 +201,7 @@ impl fmt::Debug for Options {
199201 . field ( "enable-per-target-ignores" , & self . enable_per_target_ignores )
200202 . field ( "run_check" , & self . run_check )
201203 . field ( "no_run" , & self . no_run )
204+ . field ( "nocapture" , & self . nocapture )
202205 . finish ( )
203206 }
204207}
@@ -627,6 +630,7 @@ impl Options {
627630 let run_check = matches. opt_present ( "check" ) ;
628631 let generate_redirect_map = matches. opt_present ( "generate-redirect-map" ) ;
629632 let show_type_layout = matches. opt_present ( "show-type-layout" ) ;
633+ let nocapture = matches. opt_present ( "nocapture" ) ;
630634
631635 let ( lint_opts, describe_lints, lint_cap, _) =
632636 get_cmd_lint_options ( matches, error_format, & debugging_opts) ;
@@ -665,6 +669,7 @@ impl Options {
665669 test_builder,
666670 run_check,
667671 no_run,
672+ nocapture,
668673 render_options : RenderOptions {
669674 output,
670675 external_html,
0 commit comments