@@ -156,6 +156,8 @@ crate struct Options {
156
156
crate run_check : bool ,
157
157
/// Whether doctests should emit unused externs
158
158
crate json_unused_externs : bool ,
159
+ /// Whether to skip capturing stdout and stderr of tests.
160
+ crate nocapture : bool ,
159
161
}
160
162
161
163
impl fmt:: Debug for Options {
@@ -199,6 +201,7 @@ impl fmt::Debug for Options {
199
201
. field ( "enable-per-target-ignores" , & self . enable_per_target_ignores )
200
202
. field ( "run_check" , & self . run_check )
201
203
. field ( "no_run" , & self . no_run )
204
+ . field ( "nocapture" , & self . nocapture )
202
205
. finish ( )
203
206
}
204
207
}
@@ -627,6 +630,7 @@ impl Options {
627
630
let run_check = matches. opt_present ( "check" ) ;
628
631
let generate_redirect_map = matches. opt_present ( "generate-redirect-map" ) ;
629
632
let show_type_layout = matches. opt_present ( "show-type-layout" ) ;
633
+ let nocapture = matches. opt_present ( "nocapture" ) ;
630
634
631
635
let ( lint_opts, describe_lints, lint_cap, _) =
632
636
get_cmd_lint_options ( matches, error_format, & debugging_opts) ;
@@ -665,6 +669,7 @@ impl Options {
665
669
test_builder,
666
670
run_check,
667
671
no_run,
672
+ nocapture,
668
673
render_options : RenderOptions {
669
674
output,
670
675
external_html,
0 commit comments