69
69
//! ## Copying stage0 {std,test,rustc}
70
70
//!
71
71
//! 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
73
73
//! documentation should be expanded -- the information already here may be
74
74
//! incorrect.
75
75
//!
@@ -504,7 +504,7 @@ impl Build {
504
504
cleared
505
505
}
506
506
507
- /// Get the space-separated set of activated features for the standard
507
+ /// Gets the space-separated set of activated features for the standard
508
508
/// library.
509
509
fn std_features ( & self ) -> String {
510
510
let mut features = "panic-unwind" . to_string ( ) ;
@@ -521,7 +521,7 @@ impl Build {
521
521
features
522
522
}
523
523
524
- /// Get the space-separated set of activated features for the compiler.
524
+ /// Gets the space-separated set of activated features for the compiler.
525
525
fn rustc_features ( & self ) -> String {
526
526
let mut features = String :: new ( ) ;
527
527
if self . config . jemalloc {
@@ -609,7 +609,7 @@ impl Build {
609
609
self . out . join ( & * target) . join ( "crate-docs" )
610
610
}
611
611
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.
613
613
///
614
614
/// If no custom `llvm-config` was specified then Rust's llvm will be used.
615
615
fn is_rust_llvm ( & self , target : Interned < String > ) -> bool {
@@ -857,13 +857,13 @@ impl Build {
857
857
. map ( |p| & * * p)
858
858
}
859
859
860
- /// Returns true if this is a no-std `target`, if defined
860
+ /// Returns ` true` if this is a no-std `target`, if defined
861
861
fn no_std ( & self , target : Interned < String > ) -> Option < bool > {
862
862
self . config . target_config . get ( & target)
863
863
. map ( |t| t. no_std )
864
864
}
865
865
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`
867
867
/// and `remote-test-server` binaries.
868
868
fn remote_tested ( & self , target : Interned < String > ) -> bool {
869
869
self . qemu_rootfs ( target) . is_some ( ) || target. contains ( "android" ) ||
@@ -1059,7 +1059,7 @@ impl Build {
1059
1059
self . rust_info . version ( self , channel:: CFG_RELEASE_NUM )
1060
1060
}
1061
1061
1062
- /// Return the full commit hash
1062
+ /// Returns the full commit hash.
1063
1063
fn rust_sha ( & self ) -> Option < & str > {
1064
1064
self . rust_info . sha ( )
1065
1065
}
@@ -1079,7 +1079,7 @@ impl Build {
1079
1079
panic ! ( "failed to find version in {}'s Cargo.toml" , package)
1080
1080
}
1081
1081
1082
- /// Returns whether unstable features should be enabled for the compiler
1082
+ /// Returns `true` if unstable features should be enabled for the compiler
1083
1083
/// we're building.
1084
1084
fn unstable_features ( & self ) -> bool {
1085
1085
match & self . config . channel [ ..] {
@@ -1327,7 +1327,7 @@ impl<'a> Compiler {
1327
1327
self
1328
1328
}
1329
1329
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
1331
1331
pub fn is_snapshot ( & self , build : & Build ) -> bool {
1332
1332
self . stage == 0 && self . host == build. build
1333
1333
}
0 commit comments