6969//! ## Copying stage0 {std,test,rustc}
7070//!
7171//! This copies the build output from Cargo into
72- //! `build/$HOST/stage0-sysroot/lib/rustlib/$ARCH/lib`. FIXME: This step's
72+ //! `build/$HOST/stage0-sysroot/lib/rustlib/$ARCH/lib`. FIXME: this step's
7373//! documentation should be expanded -- the information already here may be
7474//! incorrect.
7575//!
@@ -504,7 +504,7 @@ impl Build {
504504 cleared
505505 }
506506
507- /// Get the space-separated set of activated features for the standard
507+ /// Gets the space-separated set of activated features for the standard
508508 /// library.
509509 fn std_features ( & self ) -> String {
510510 let mut features = "panic-unwind" . to_string ( ) ;
@@ -521,7 +521,7 @@ impl Build {
521521 features
522522 }
523523
524- /// Get the space-separated set of activated features for the compiler.
524+ /// Gets the space-separated set of activated features for the compiler.
525525 fn rustc_features ( & self ) -> String {
526526 let mut features = String :: new ( ) ;
527527 if self . config . jemalloc {
@@ -609,7 +609,7 @@ impl Build {
609609 self . out . join ( & * target) . join ( "crate-docs" )
610610 }
611611
612- /// Returns true if no custom `llvm-config` is set for the specified target.
612+ /// Returns ` true` if no custom `llvm-config` is set for the specified target.
613613 ///
614614 /// If no custom `llvm-config` was specified then Rust's llvm will be used.
615615 fn is_rust_llvm ( & self , target : Interned < String > ) -> bool {
@@ -857,13 +857,13 @@ impl Build {
857857 . map ( |p| & * * p)
858858 }
859859
860- /// Returns true if this is a no-std `target`, if defined
860+ /// Returns ` true` if this is a no-std `target`, if defined
861861 fn no_std ( & self , target : Interned < String > ) -> Option < bool > {
862862 self . config . target_config . get ( & target)
863863 . map ( |t| t. no_std )
864864 }
865865
866- /// Returns whether the target will be tested using the `remote-test-client`
866+ /// Returns `true` if the target will be tested using the `remote-test-client`
867867 /// and `remote-test-server` binaries.
868868 fn remote_tested ( & self , target : Interned < String > ) -> bool {
869869 self . qemu_rootfs ( target) . is_some ( ) || target. contains ( "android" ) ||
@@ -1059,7 +1059,7 @@ impl Build {
10591059 self . rust_info . version ( self , channel:: CFG_RELEASE_NUM )
10601060 }
10611061
1062- /// Return the full commit hash
1062+ /// Returns the full commit hash.
10631063 fn rust_sha ( & self ) -> Option < & str > {
10641064 self . rust_info . sha ( )
10651065 }
@@ -1079,7 +1079,7 @@ impl Build {
10791079 panic ! ( "failed to find version in {}'s Cargo.toml" , package)
10801080 }
10811081
1082- /// Returns whether unstable features should be enabled for the compiler
1082+ /// Returns `true` if unstable features should be enabled for the compiler
10831083 /// we're building.
10841084 fn unstable_features ( & self ) -> bool {
10851085 match & self . config . channel [ ..] {
@@ -1327,7 +1327,7 @@ impl<'a> Compiler {
13271327 self
13281328 }
13291329
1330- /// Returns whether this is a snapshot compiler for `build`'s configuration
1330+ /// Returns `true` if this is a snapshot compiler for `build`'s configuration
13311331 pub fn is_snapshot ( & self , build : & Build ) -> bool {
13321332 self . stage == 0 && self . host == build. build
13331333 }
0 commit comments