pub fn rustc(build: &Build, stage: u32, target: &str, out: &Path) {
    println!("Documenting stage{} compiler ({})", stage, target);
    t!(fs::create_dir_all(out));
    let compiler = Compiler::new(stage, &build.config.build);
    let out_dir = build.stage_out(&compiler, Mode::Librustc)
                       .join(target).join("doc");
    let rustdoc = build.rustdoc(&compiler);
    if !up_to_date(&rustdoc, &out_dir.join("rustc/index.html")) && out_dir.exists() {
        t!(fs::remove_dir_all(&out_dir));
    }
    let mut cargo = build.cargo(&compiler, Mode::Librustc, target, "doc");
    cargo.arg("--manifest-path")
         .arg(build.src.join("src/rustc/Cargo.toml"))
         .arg("--features").arg(build.rustc_features());
    build.run(&mut cargo);
    cp_r(&out_dir, out)
}
/// Generate all compiler documentation.
///
/// This will generate all documentation for the compiler libraries and their
/// dependencies. This is largely just a wrapper around `cargo doc`.
Generate all compiler documentation.
This will generate all documentation for the compiler libraries and their
dependencies. This is largely just a wrapper around `cargo doc`.
Generate all compiler documentation . This will generate all documentation for the compiler libraries and their dependencies . This is largely just a wrapper around ` cargo doc ` .
pub fn rustc(build: &Build, stage: u32, target: &str, out: &Path) {
    println!("Documenting stage{} compiler ({})", stage, target);
    t!(fs::create_dir_all(out));
    let compiler = Compiler::new(stage, &build.config.build);
    let out_dir = build.stage_out(&compiler, Mode::Librustc)
                       .join(target).join("doc");
    let rustdoc = build.rustdoc(&compiler);
    if !up_to_date(&rustdoc, &out_dir.join("rustc/index.html")) && out_dir.exists() {
        t!(fs::remove_dir_all(&out_dir));
    }
    let mut cargo = build.cargo(&compiler, Mode::Librustc, target, "doc");
    cargo.arg("--manifest-path")
         .arg(build.src.join("src/rustc/Cargo.toml"))
         .arg("--features").arg(build.rustc_features());
    build.run(&mut cargo);
    cp_r(&out_dir, out)
}
pub fn rustc ( build : & Build , stage : u32 , target : & str , out : & Path ) { println ! ( " " stage target ) ; t ! ( fs create_dir_all ( out ) ) ; let compiler = Compiler :: new ( stage , & build . config . build ) ; let out_dir = build . stage_out ( & compiler , Mode :: Librustc ) . join ( target ) . join ( " " ) ; let rustdoc = build . rustdoc ( & compiler ) ; if ! up_to_date ( & rustdoc , & out_dir . join ( " " ) ) && out_dir . exists ( ) { t ! ( fs remove_dir_all ( out_dir ) ) ; } let mut cargo = build . cargo ( & compiler , Mode :: Librustc , target , " " ) ; cargo . arg ( " " ) . arg ( build . src . join ( " " ) ) . arg ( " " ) . arg ( build . rustc_features ( ) ) ; build . run ( & mut cargo ) ; cp_r ( & out_dir , out ) }
Generate all compiler documentation.
Generate all compiler documentation .
build
&Build
stage
u32
target
&str
out
&Path
build
&Build
stage
u32
target
&str
out
&Path