Skip to content

Commit 41976e2

Browse files
committed
Auto merge of #42140 - anderspapitto:doc-typo-fixes, r=Mark-Simulacrum
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.
2 parents f6cc40f + 558dd9c commit 41976e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bootstrap/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub enum Mode {
211211
/// output in the "stageN-rustc" directory.
212212
Librustc,
213213

214-
/// This cargo is going to some build tool, placing output in the
214+
/// This cargo is going to build some tool, placing output in the
215215
/// "stageN-tools" directory.
216216
Tool,
217217
}
@@ -424,7 +424,7 @@ impl Build {
424424
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
425425
}
426426

427-
// There are two invariants we try must maintain:
427+
// There are two invariants we must maintain:
428428
// * stable crates cannot depend on unstable crates (general Rust rule),
429429
// * crates that end up in the sysroot must be unstable (rustbuild rule).
430430
//
@@ -438,7 +438,7 @@ impl Build {
438438
// feature and opt-in to `rustc_private`.
439439
//
440440
// We can't always pass `rustbuild` because crates which are outside of
441-
// the comipiler, libs, and tests are stable and we don't want to make
441+
// the compiler, libs, and tests are stable and we don't want to make
442442
// their deps unstable (since this would break the first invariant
443443
// above).
444444
//
@@ -448,7 +448,7 @@ impl Build {
448448
}
449449

450450
// Ignore incremental modes except for stage0, since we're
451-
// not guaranteeing correctness acros builds if the compiler
451+
// not guaranteeing correctness across builds if the compiler
452452
// is changing under your feet.`
453453
if self.flags.incremental && compiler.stage == 0 {
454454
let incr_dir = self.incremental_dir(compiler);
@@ -489,7 +489,7 @@ impl Build {
489489
cargo.env_remove("MAKEFLAGS");
490490
}
491491

492-
// Environment variables *required* needed throughout the build
492+
// Environment variables *required* throughout the build
493493
//
494494
// FIXME: should update code to not require this env var
495495
cargo.env("CFG_COMPILER_HOST_TRIPLE", target);
@@ -647,7 +647,7 @@ impl Build {
647647
}
648648

649649
/// Returns the root output directory for all Cargo output in a given stage,
650-
/// running a particular comipler, wehther or not we're building the
650+
/// running a particular compiler, wehther or not we're building the
651651
/// standard library, and targeting the specified architecture.
652652
fn cargo_out(&self,
653653
compiler: &Compiler,

0 commit comments

Comments
 (0)