@@ -790,6 +790,7 @@ fn doc_std(
790790
791791/// Prepare a compiler that will be able to document something for `target` at `stage`.
792792fn prepare_doc_compiler ( builder : & Builder < ' _ > , target : TargetSelection , stage : u32 ) -> Compiler {
793+ assert ! ( stage > 0 , "Cannot document anything in stage 0" ) ;
793794 let build_compiler = builder. compiler ( stage - 1 , builder. host_target ) ;
794795 builder. std ( build_compiler, target) ;
795796 build_compiler
@@ -1226,10 +1227,13 @@ fn symlink_dir_force(config: &Config, original: &Path, link: &Path) {
12261227 ) ;
12271228}
12281229
1230+ /// Builds the Rust compiler book.
12291231#[ derive( Ord , PartialOrd , Debug , Clone , Hash , PartialEq , Eq ) ]
12301232pub struct RustcBook {
12311233 build_compiler : Compiler ,
12321234 target : TargetSelection ,
1235+ /// Test that the examples of lints in the book produce the correct lints in the expected
1236+ /// format.
12331237 validate : bool ,
12341238}
12351239
@@ -1331,8 +1335,8 @@ impl Step for RustcBook {
13311335}
13321336
13331337/// 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.
13361340#[ derive( Ord , PartialOrd , Debug , Clone , Hash , PartialEq , Eq ) ]
13371341pub struct Reference {
13381342 build_compiler : Compiler ,
0 commit comments