@@ -165,12 +165,12 @@ pub fn std_cargo(builder: &Builder,
165165        let  features = builder. std_features ( ) ; 
166166
167167        if  compiler. stage  != 0  && builder. config . sanitizers  { 
168-             // This variable is used by the sanitizer runtime crates, e.g. 
169-             // rustc_lsan, to build the sanitizer runtime from C code 
168+             // This variable is used by the sanitizer runtime crates, e.g.,  
169+             // ` rustc_lsan` , to build the sanitizer runtime from C code 
170170            // When this variable is missing, those crates won't compile the C code, 
171171            // so we don't set this variable during stage0 where llvm-config is 
172172            // missing 
173-             // We also only build the runtimes when --enable-sanitizers (or its 
173+             // We also only build the runtimes when ` --enable-sanitizers`  (or its 
174174            // config.toml equivalent) is used 
175175            let  llvm_config = builder. ensure ( native:: Llvm  { 
176176                target :  builder. config . build , 
@@ -895,7 +895,7 @@ impl Step for Assemble {
895895        run. never ( ) 
896896    } 
897897
898-     /// Prepare  a new compiler from the artifacts in `stage` 
898+     /// Prepares  a new compiler from the artifacts in `stage` 
899899/// 
900900/// This will assemble a compiler in `build/$host/stage$stage`. The compiler 
901901/// must have been previously produced by the `stage - 1` builder.build 
@@ -921,17 +921,17 @@ impl Step for Assemble {
921921        // produce some other architecture compiler we need to start from 
922922        // `build` to get there. 
923923        // 
924-         // FIXME: Perhaps  we should download those libraries? 
925-         //         It would make builds faster.. . 
924+         // FIXME: perhaps  we should download those libraries? 
925+         // It would certainly  make builds faster. 
926926        // 
927-         // FIXME: It  may be faster if we build just a stage 1 compiler and then 
928-         //         use that to bootstrap this compiler forward. 
927+         // FIXME: it  may be faster if we build just a stage 1 compiler and then 
928+         // use that to bootstrap this compiler forward. 
929929        let  build_compiler =
930930            builder. compiler ( target_compiler. stage  - 1 ,  builder. config . build ) ; 
931931
932932        // Build the libraries for this compiler to link to (i.e., the libraries 
933933        // it uses at runtime). NOTE: Crates the target compiler compiles don't 
934-         // link to these. (FIXME: Is  that correct? It seems to be correct most 
934+         // link to these. (FIXME: is  that correct? It seems to be correct most 
935935        // of the time but I think we do link to these for stage2/bin compilers 
936936        // when not performing a full bootstrap). 
937937        builder. ensure ( Rustc  { 
@@ -958,7 +958,7 @@ impl Step for Assemble {
958958        let  host = target_compiler. host ; 
959959        builder. info ( & format ! ( "Assembling stage{} compiler ({})" ,  stage,  host) ) ; 
960960
961-         // Link in all dylibs to the libdir 
961+         // Link in all dylibs to the libdir.  
962962        let  sysroot = builder. sysroot ( target_compiler) ; 
963963        let  sysroot_libdir = sysroot. join ( libdir ( & * host) ) ; 
964964        t ! ( fs:: create_dir_all( & sysroot_libdir) ) ; 
@@ -979,7 +979,7 @@ impl Step for Assemble {
979979
980980        dist:: maybe_install_llvm_dylib ( builder,  target_compiler. host ,  & sysroot) ; 
981981
982-         // Link the compiler binary itself into place 
982+         // Link the compiler binary itself into place.  
983983        let  out_dir = builder. cargo_out ( build_compiler,  Mode :: Rustc ,  host) ; 
984984        let  rustc = out_dir. join ( exe ( "rustc_binary" ,  & * host) ) ; 
985985        let  bindir = sysroot. join ( "bin" ) ; 
@@ -992,7 +992,7 @@ impl Step for Assemble {
992992    } 
993993} 
994994
995- /// Link  some files into a rustc sysroot. 
995+ /// Links  some files into a rustc sysroot. 
996996/// 
997997/// For a particular stage this will link the file listed in `stamp` into the 
998998/// `sysroot_dst` provided. 
@@ -1013,16 +1013,16 @@ pub fn run_cargo(builder: &Builder,
10131013        return  Vec :: new ( ) ; 
10141014    } 
10151015
1016-     // `target_root_dir` looks like $dir/$target/release 
1016+     // `target_root_dir` looks like ` $dir/$target/release`.  
10171017    let  target_root_dir = stamp. parent ( ) . unwrap ( ) ; 
1018-     // `target_deps_dir` looks like $dir/$target/release/deps 
1018+     // `target_deps_dir` looks like ` $dir/$target/release/deps`.  
10191019    let  target_deps_dir = target_root_dir. join ( "deps" ) ; 
1020-     // `host_root_dir` looks like $dir/release 
1020+     // `host_root_dir` looks like ` $dir/release`.  
10211021    let  host_root_dir = target_root_dir. parent ( ) . unwrap ( )  // chop off `release` 
10221022                                       . parent ( ) . unwrap ( )  // chop off `$target` 
10231023                                       . join ( target_root_dir. file_name ( ) . unwrap ( ) ) ; 
10241024
1025-     // Spawn Cargo slurping up  its JSON output. We'll start building up the 
1025+     // Spawn Cargo, collecting  its JSON output. We'll start building up the 
10261026    // `deps` array of all files it generated along with a `toplevel` array of 
10271027    // files we need to probe for later. 
10281028    let  mut  deps = Vec :: new ( ) ; 
@@ -1033,7 +1033,7 @@ pub fn run_cargo(builder: &Builder,
10331033            _ => return , 
10341034        } ; 
10351035        for  filename in  filenames { 
1036-             // Skip files like executables 
1036+             // Skip files like executables.  
10371037            if  !filename. ends_with ( ".rlib" )  &&
10381038               !filename. ends_with ( ".lib" )  &&
10391039               !is_dylib ( & filename)  &&
@@ -1056,7 +1056,7 @@ pub fn run_cargo(builder: &Builder,
10561056                continue ; 
10571057            } 
10581058
1059-             // Otherwise this was a "top level artifact" which right now doesn't 
1059+             // Otherwise,  this was a "top level artifact" which right now doesn't 
10601060            // have a hash in the name, but there's a version of this file in 
10611061            // the `deps` folder which *does* have a hash in the name. That's 
10621062            // the one we'll want to we'll probe for it later. 
@@ -1080,7 +1080,7 @@ pub fn run_cargo(builder: &Builder,
10801080        exit ( 1 ) ; 
10811081    } 
10821082
1083-     // Ok now  we need to actually find all the files listed in `toplevel`. We've 
1083+     // Now  we need to actually find all the files listed in `toplevel`. We've 
10841084    // got a list of prefix/extensions and we basically just need to find the 
10851085    // most recent file in the `deps` folder corresponding to each one. 
10861086    let  contents = t ! ( target_deps_dir. read_dir( ) ) 
@@ -1168,15 +1168,15 @@ pub fn stream_cargo(
11681168        Err ( e)  => panic ! ( "failed to execute command: {:?}\n error: {}" ,  cargo,  e) , 
11691169    } ; 
11701170
1171-     // Spawn Cargo slurping up  its JSON output. We'll start building up the 
1171+     // Spawn Cargo, collecting  its JSON output. We'll start building up the 
11721172    // `deps` array of all files it generated along with a `toplevel` array of 
11731173    // files we need to probe for later. 
11741174    let  stdout = BufReader :: new ( child. stdout . take ( ) . unwrap ( ) ) ; 
11751175    for  line in  stdout. lines ( )  { 
11761176        let  line = t ! ( line) ; 
11771177        match  serde_json:: from_str :: < CargoMessage > ( & line)  { 
11781178            Ok ( msg)  => cb ( msg) , 
1179-             // If this was informational, just print it out and continue 
1179+             // If this was informational, just print it out and continue.  
11801180            Err ( _)  => println ! ( "{}" ,  line) 
11811181        } 
11821182    } 
0 commit comments