bootstrap: fix minor comment typos in lib.rs
I noticed these while reading through the build system documentation. They're hardly worth fixing, but I'm also using this to get my feet wet with the rustc contribution system.
This commit is contained in:
parent
14f30da613
commit
558dd9ce90
@ -211,7 +211,7 @@ pub enum Mode {
|
|||||||
/// output in the "stageN-rustc" directory.
|
/// output in the "stageN-rustc" directory.
|
||||||
Librustc,
|
Librustc,
|
||||||
|
|
||||||
/// This cargo is going to some build tool, placing output in the
|
/// This cargo is going to build some tool, placing output in the
|
||||||
/// "stageN-tools" directory.
|
/// "stageN-tools" directory.
|
||||||
Tool,
|
Tool,
|
||||||
}
|
}
|
||||||
@ -424,7 +424,7 @@ impl Build {
|
|||||||
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
|
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
|
||||||
}
|
}
|
||||||
|
|
||||||
// There are two invariants we try must maintain:
|
// There are two invariants we must maintain:
|
||||||
// * stable crates cannot depend on unstable crates (general Rust rule),
|
// * stable crates cannot depend on unstable crates (general Rust rule),
|
||||||
// * crates that end up in the sysroot must be unstable (rustbuild rule).
|
// * crates that end up in the sysroot must be unstable (rustbuild rule).
|
||||||
//
|
//
|
||||||
@ -438,7 +438,7 @@ impl Build {
|
|||||||
// feature and opt-in to `rustc_private`.
|
// feature and opt-in to `rustc_private`.
|
||||||
//
|
//
|
||||||
// We can't always pass `rustbuild` because crates which are outside of
|
// We can't always pass `rustbuild` because crates which are outside of
|
||||||
// the comipiler, libs, and tests are stable and we don't want to make
|
// the compiler, libs, and tests are stable and we don't want to make
|
||||||
// their deps unstable (since this would break the first invariant
|
// their deps unstable (since this would break the first invariant
|
||||||
// above).
|
// above).
|
||||||
//
|
//
|
||||||
@ -448,7 +448,7 @@ impl Build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ignore incremental modes except for stage0, since we're
|
// Ignore incremental modes except for stage0, since we're
|
||||||
// not guaranteeing correctness acros builds if the compiler
|
// not guaranteeing correctness across builds if the compiler
|
||||||
// is changing under your feet.`
|
// is changing under your feet.`
|
||||||
if self.flags.incremental && compiler.stage == 0 {
|
if self.flags.incremental && compiler.stage == 0 {
|
||||||
let incr_dir = self.incremental_dir(compiler);
|
let incr_dir = self.incremental_dir(compiler);
|
||||||
@ -489,7 +489,7 @@ impl Build {
|
|||||||
cargo.env_remove("MAKEFLAGS");
|
cargo.env_remove("MAKEFLAGS");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Environment variables *required* needed throughout the build
|
// Environment variables *required* throughout the build
|
||||||
//
|
//
|
||||||
// FIXME: should update code to not require this env var
|
// FIXME: should update code to not require this env var
|
||||||
cargo.env("CFG_COMPILER_HOST_TRIPLE", target);
|
cargo.env("CFG_COMPILER_HOST_TRIPLE", target);
|
||||||
@ -647,7 +647,7 @@ impl Build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the root output directory for all Cargo output in a given stage,
|
/// Returns the root output directory for all Cargo output in a given stage,
|
||||||
/// running a particular comipler, wehther or not we're building the
|
/// running a particular compiler, wehther or not we're building the
|
||||||
/// standard library, and targeting the specified architecture.
|
/// standard library, and targeting the specified architecture.
|
||||||
fn cargo_out(&self,
|
fn cargo_out(&self,
|
||||||
compiler: &Compiler,
|
compiler: &Compiler,
|
||||||
|
Loading…
Reference in New Issue
Block a user