fn run(self, builder: &Builder<'_>) {
        let compiler = self.compiler;

        let dir = testdir(builder, compiler.host);
        t!(fs::create_dir_all(&dir));
        let output = dir.join("error-index.md");

        let mut tool = tool::ErrorIndex::command(builder, compiler);
        tool.arg("markdown").arg(&output);

        // Use the rustdoc that was built by self.compiler. This copy of
        // rustdoc is shared with other tests (like compiletest tests in
        // src/test/rustdoc). This helps avoid building rustdoc multiple
        // times.
        let rustdoc_compiler = builder.compiler(builder.top_stage, builder.config.build);
        builder.info(&format!("Testing error-index stage{}", rustdoc_compiler.stage));
        let _time = util::timeit(&builder);
        builder.run_quiet(&mut tool);
        builder.ensure(compile::Std { compiler: rustdoc_compiler, target: rustdoc_compiler.host });
        markdown_test(builder, rustdoc_compiler, &output);
    }
/// Runs the error index generator tool to execute the tests located in the error
/// index.
///
/// The `error_index_generator` tool lives in `src/tools` and is used to
/// generate a markdown file from the error indexes of the code base which is
/// then passed to `rustdoc --test`.
Runs the error index generator tool to execute the tests located in the error
index.


Runs the error index generator tool to execute the tests located in the error index .
fn run(self, builder: &Builder<'_>) {
        let compiler = self.compiler;
        let dir = testdir(builder, compiler.host);
        t!(fs::create_dir_all(&dir));
        let output = dir.join("error-index.md");
        let mut tool = tool::ErrorIndex::command(builder, compiler);
        tool.arg("markdown").arg(&output);
        // Use the rustdoc that was built by self.compiler. This copy of
        // rustdoc is shared with other tests (like compiletest tests in
        // src/test/rustdoc). This helps avoid building rustdoc multiple
        // times.
        let rustdoc_compiler = builder.compiler(builder.top_stage, builder.config.build);
        builder.info(&format!("Testing error-index stage{}", rustdoc_compiler.stage));
        let _time = util::timeit(&builder);
        builder.run_quiet(&mut tool);
        builder.ensure(compile::Std { compiler: rustdoc_compiler, target: rustdoc_compiler.host });
        markdown_test(builder, rustdoc_compiler, &output);
    }
fn run ( self , builder : & Builder < ' _ > ) { let compiler = self . compiler ; let dir = testdir ( builder , compiler . host ) ; t ! ( fs create_dir_all ( dir ) ) ; let output = dir . join ( " " ) ; let mut tool = tool :: ErrorIndex :: command ( builder , compiler ) ; tool . arg ( " " ) . arg ( & output ) ; // Use the rustdoc that was built by self.compiler. This copy of // rustdoc is shared with other tests (like compiletest tests in // src/test/rustdoc). This helps avoid building rustdoc multiple // times. let rustdoc_compiler = builder . compiler ( builder . top_stage , builder . config . build ) ; builder . info ( & format ! ( " " rustdoc_compiler stage ) ) ; let _time = util :: timeit ( & builder ) ; builder . run_quiet ( & mut tool ) ; builder . ensure ( compile :: Std { compiler : rustdoc_compiler , target : rustdoc_compiler . host } ) ; markdown_test ( builder , rustdoc_compiler , & output ) ; }
Runs the error index generator tool to execute the tests located in the error
index.
Runs the error index generator tool to execute the tests located in the error index .
self
builder
&Builder<'_>
self
builder
&Builder<'_>