@@ -222,7 +222,7 @@ impl Step for TheBook {
222222 let shared_assets = builder. ensure ( SharedAssets { target } ) ;
223223
224224 // build the redirect pages
225- builder. msg_doc ( compiler, "book redirect pages" , target) ;
225+ let _guard = builder. msg_doc ( compiler, "book redirect pages" , target) ;
226226 for file in t ! ( fs:: read_dir( builder. src. join( & relative_path) . join( "redirects" ) ) ) {
227227 let file = t ! ( file) ;
228228 let path = file. path ( ) ;
@@ -306,7 +306,7 @@ impl Step for Standalone {
306306 fn run ( self , builder : & Builder < ' _ > ) {
307307 let target = self . target ;
308308 let compiler = self . compiler ;
309- builder. msg_doc ( compiler, "standalone" , target) ;
309+ let _guard = builder. msg_doc ( compiler, "standalone" , target) ;
310310 let out = builder. doc_out ( target) ;
311311 t ! ( fs:: create_dir_all( & out) ) ;
312312
@@ -812,8 +812,6 @@ macro_rules! tool_doc {
812812 SourceType :: Submodule
813813 } ;
814814
815- builder. msg_doc( compiler, stringify!( $tool) . to_lowercase( ) , target) ;
816-
817815 // Symlink compiler docs to the output directory of rustdoc documentation.
818816 let out_dirs = [
819817 builder. stage_out( compiler, Mode :: ToolRustc ) . join( target. triple) . join( "doc" ) ,
@@ -852,6 +850,8 @@ macro_rules! tool_doc {
852850 cargo. rustdocflag( "--show-type-layout" ) ;
853851 cargo. rustdocflag( "--generate-link-to-definition" ) ;
854852 cargo. rustdocflag( "-Zunstable-options" ) ;
853+
854+ let _guard = builder. msg_doc( compiler, stringify!( $tool) . to_lowercase( ) , target) ;
855855 builder. run( & mut cargo. into( ) ) ;
856856 }
857857 }
@@ -1073,7 +1073,16 @@ impl Step for RustcBook {
10731073 // config.toml), then this needs to explicitly update the dylib search
10741074 // path.
10751075 builder. add_rustc_lib_path ( self . compiler , & mut cmd) ;
1076+ let doc_generator_guard = builder. msg (
1077+ Kind :: Run ,
1078+ self . compiler . stage ,
1079+ "lint-docs" ,
1080+ self . compiler . host ,
1081+ self . target ,
1082+ ) ;
10761083 builder. run ( & mut cmd) ;
1084+ drop ( doc_generator_guard) ;
1085+
10771086 // Run rustbook/mdbook to generate the HTML pages.
10781087 builder. ensure ( RustbookSrc {
10791088 target : self . target ,
0 commit comments