@@ -790,6 +790,7 @@ fn doc_std(
790
790
791
791
/// Prepare a compiler that will be able to document something for `target` at `stage`.
792
792
fn prepare_doc_compiler ( builder : & Builder < ' _ > , target : TargetSelection , stage : u32 ) -> Compiler {
793
+ assert ! ( stage > 0 , "Cannot document anything in stage 0" ) ;
793
794
let build_compiler = builder. compiler ( stage - 1 , builder. host_target ) ;
794
795
builder. std ( build_compiler, target) ;
795
796
build_compiler
@@ -1226,10 +1227,13 @@ fn symlink_dir_force(config: &Config, original: &Path, link: &Path) {
1226
1227
) ;
1227
1228
}
1228
1229
1230
+ /// Builds the Rust compiler book.
1229
1231
#[ derive( Ord , PartialOrd , Debug , Clone , Hash , PartialEq , Eq ) ]
1230
1232
pub struct RustcBook {
1231
1233
build_compiler : Compiler ,
1232
1234
target : TargetSelection ,
1235
+ /// Test that the examples of lints in the book produce the correct lints in the expected
1236
+ /// format.
1233
1237
validate : bool ,
1234
1238
}
1235
1239
@@ -1331,8 +1335,8 @@ impl Step for RustcBook {
1331
1335
}
1332
1336
1333
1337
/// Documents the reference.
1334
- /// It is always done using a stage 1+ compiler, because it references in-tree compiler/stdlib
1335
- /// concepts.
1338
+ /// It has to always be done using a stage 1+ compiler, because it references in-tree
1339
+ /// compiler/stdlib concepts.
1336
1340
#[ derive( Ord , PartialOrd , Debug , Clone , Hash , PartialEq , Eq ) ]
1337
1341
pub struct Reference {
1338
1342
build_compiler : Compiler ,
0 commit comments