@@ -222,7 +222,7 @@ impl Step for TheBook {
222
222
let shared_assets = builder. ensure ( SharedAssets { target } ) ;
223
223
224
224
// build the redirect pages
225
- builder. msg_doc ( compiler, "book redirect pages" , target) ;
225
+ let _guard = builder. msg_doc ( compiler, "book redirect pages" , target) ;
226
226
for file in t ! ( fs:: read_dir( builder. src. join( & relative_path) . join( "redirects" ) ) ) {
227
227
let file = t ! ( file) ;
228
228
let path = file. path ( ) ;
@@ -306,7 +306,7 @@ impl Step for Standalone {
306
306
fn run ( self , builder : & Builder < ' _ > ) {
307
307
let target = self . target ;
308
308
let compiler = self . compiler ;
309
- builder. msg_doc ( compiler, "standalone" , target) ;
309
+ let _guard = builder. msg_doc ( compiler, "standalone" , target) ;
310
310
let out = builder. doc_out ( target) ;
311
311
t ! ( fs:: create_dir_all( & out) ) ;
312
312
@@ -812,8 +812,6 @@ macro_rules! tool_doc {
812
812
SourceType :: Submodule
813
813
} ;
814
814
815
- builder. msg_doc( compiler, stringify!( $tool) . to_lowercase( ) , target) ;
816
-
817
815
// Symlink compiler docs to the output directory of rustdoc documentation.
818
816
let out_dirs = [
819
817
builder. stage_out( compiler, Mode :: ToolRustc ) . join( target. triple) . join( "doc" ) ,
@@ -852,6 +850,8 @@ macro_rules! tool_doc {
852
850
cargo. rustdocflag( "--show-type-layout" ) ;
853
851
cargo. rustdocflag( "--generate-link-to-definition" ) ;
854
852
cargo. rustdocflag( "-Zunstable-options" ) ;
853
+
854
+ let _guard = builder. msg_doc( compiler, stringify!( $tool) . to_lowercase( ) , target) ;
855
855
builder. run( & mut cargo. into( ) ) ;
856
856
}
857
857
}
@@ -1073,7 +1073,16 @@ impl Step for RustcBook {
1073
1073
// config.toml), then this needs to explicitly update the dylib search
1074
1074
// path.
1075
1075
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
+ ) ;
1076
1083
builder. run ( & mut cmd) ;
1084
+ drop ( doc_generator_guard) ;
1085
+
1077
1086
// Run rustbook/mdbook to generate the HTML pages.
1078
1087
builder. ensure ( RustbookSrc {
1079
1088
target : self . target ,
0 commit comments