@@ -326,8 +326,8 @@ pub(crate) fn run_tests(
326326 let mut test_args = Vec :: with_capacity ( rustdoc_options. test_args . len ( ) + 1 ) ;
327327 test_args. insert ( 0 , "rustdoctest" . to_string ( ) ) ;
328328 test_args. extend_from_slice ( & rustdoc_options. test_args ) ;
329- if rustdoc_options. nocapture {
330- test_args. push ( "--nocapture " . to_string ( ) ) ;
329+ if rustdoc_options. no_capture {
330+ test_args. push ( "--no-capture " . to_string ( ) ) ;
331331 }
332332
333333 let mut nb_errors = 0 ;
@@ -644,8 +644,8 @@ fn run_test(
644644 // tested as standalone tests.
645645 return ( Duration :: default ( ) , Err ( TestFailure :: CompileError ) ) ;
646646 }
647- if !rustdoc_options. nocapture {
648- // If `nocapture ` is disabled, then we don't display rustc's output when compiling
647+ if !rustdoc_options. no_capture {
648+ // If `no_capture ` is disabled, then we don't display rustc's output when compiling
649649 // the merged doctests.
650650 compiler. stderr ( Stdio :: null ( ) ) ;
651651 }
@@ -721,8 +721,8 @@ fn run_test(
721721 // tested as standalone tests.
722722 return ( instant. elapsed ( ) , Err ( TestFailure :: CompileError ) ) ;
723723 }
724- if !rustdoc_options. nocapture {
725- // If `nocapture ` is disabled, then we don't display rustc's output when compiling
724+ if !rustdoc_options. no_capture {
725+ // If `no_capture ` is disabled, then we don't display rustc's output when compiling
726726 // the merged doctests.
727727 runner_compiler. stderr ( Stdio :: null ( ) ) ;
728728 }
@@ -821,7 +821,7 @@ fn run_test(
821821 cmd. current_dir ( run_directory) ;
822822 }
823823
824- let result = if doctest. is_multiple_tests ( ) || rustdoc_options. nocapture {
824+ let result = if doctest. is_multiple_tests ( ) || rustdoc_options. no_capture {
825825 cmd. status ( ) . map ( |status| process:: Output {
826826 status,
827827 stdout : Vec :: new ( ) ,
@@ -1016,7 +1016,7 @@ impl CreateRunnableDocTests {
10161016 . span ( scraped_test. span )
10171017 . build ( dcx) ;
10181018 let is_standalone = !doctest. can_be_merged
1019- || self . rustdoc_options . nocapture
1019+ || self . rustdoc_options . no_capture
10201020 || self . rustdoc_options . test_args . iter ( ) . any ( |arg| arg == "--show-output" ) ;
10211021 if is_standalone {
10221022 let test_desc = self . generate_test_desc_and_fn ( doctest, scraped_test) ;
0 commit comments