@@ -794,12 +794,12 @@ impl<'a> Builder<'a> {
794
794
}
795
795
796
796
cargo. arg ( "-j" ) . arg ( self . jobs ( ) . to_string ( ) ) ;
797
- // Remove make-related flags to ensure Cargo can correctly set things up
797
+ // Remove make-related flags to ensure Cargo can correctly set things up.
798
798
cargo. env_remove ( "MAKEFLAGS" ) ;
799
799
cargo. env_remove ( "MFLAGS" ) ;
800
800
801
- // FIXME: Temporary fix for https://github.com/rust-lang/cargo/issues/ 3005
802
- // Force cargo to output binaries with disambiguating hashes in the name
801
+ // FIXME: temporary fix for Cargo issue # 3005.
802
+ // Force cargo to output binaries with disambiguating hashes in the name.
803
803
let metadata = if compiler. stage == 0 {
804
804
// Treat stage0 like special channel, whether it's a normal prior-
805
805
// release rustc or a local rebuild with the same version, so we
@@ -901,7 +901,7 @@ impl<'a> Builder<'a> {
901
901
902
902
if mode. is_tool ( ) {
903
903
// Tools like cargo and rls don't get debuginfo by default right now, but this can be
904
- // enabled in the config. Adding debuginfo makes them several times larger.
904
+ // enabled in the config. Adding debuginfo makes them several times larger.
905
905
if self . config . rust_debuginfo_tools {
906
906
cargo. env ( "RUSTC_DEBUGINFO" , self . config . rust_debuginfo . to_string ( ) ) ;
907
907
cargo. env (
@@ -1007,7 +1007,7 @@ impl<'a> Builder<'a> {
1007
1007
// Build scripts use either the `cc` crate or `configure/make` so we pass
1008
1008
// the options through environment variables that are fetched and understood by both.
1009
1009
//
1010
- // FIXME: the guard against msvc shouldn't need to be here
1010
+ // FIXME: the guard against ` msvc` shouldn't need to be here.
1011
1011
if target. contains ( "msvc" ) {
1012
1012
if let Some ( ref cl) = self . config . llvm_clang_cl {
1013
1013
cargo. env ( "CC" , cl) . env ( "CXX" , cl) ;
@@ -1019,7 +1019,7 @@ impl<'a> Builder<'a> {
1019
1019
Some ( ref s) => s,
1020
1020
None => return s. display ( ) . to_string ( ) ,
1021
1021
} ;
1022
- // FIXME: the cc-rs crate only recognizes the literal strings
1022
+ // FIXME: the cc-rs crate only recognizes the literal strings.
1023
1023
// `ccache` and `sccache` when doing caching compilations, so we
1024
1024
// mirror that here. It should probably be fixed upstream to
1025
1025
// accept a new env var or otherwise work with custom ccache
@@ -1064,12 +1064,12 @@ impl<'a> Builder<'a> {
1064
1064
cargo. env ( "RUSTC_SAVE_ANALYSIS" , "api" . to_string ( ) ) ;
1065
1065
}
1066
1066
1067
- // For `cargo doc` invocations, make rustdoc print the Rust version into the docs
1067
+ // For `cargo doc` invocations, make rustdoc print the Rust version into the docs.
1068
1068
cargo. env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) ) ;
1069
1069
1070
- // Environment variables *required* throughout the build
1070
+ // Environment variables *required* throughout the build.
1071
1071
//
1072
- // FIXME: should update code to not require this env var
1072
+ // FIXME: should update code to not require this env var.
1073
1073
cargo. env ( "CFG_COMPILER_HOST_TRIPLE" , target) ;
1074
1074
1075
1075
// Set this for all builds to make sure doc builds also get it.
@@ -1460,7 +1460,7 @@ mod __test {
1460
1460
#[ test]
1461
1461
fn dist_with_target_flag ( ) {
1462
1462
let mut config = configure ( & [ "B" ] , & [ "C" ] ) ;
1463
- config. run_host_only = false ; // as- if --target=C was passed
1463
+ config. run_host_only = false ; // as if ` --target=C` were passed
1464
1464
let build = Build :: new ( config) ;
1465
1465
let mut builder = Builder :: new ( & build) ;
1466
1466
builder. run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Dist ) , & [ ] ) ;
0 commit comments