Skip to content

Commit 8c1a670

Browse files
chore: fix typos
1 parent 8cdc67e commit 8c1a670

File tree

36 files changed

+41
-41
lines changed

36 files changed

+41
-41
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ fn prepare_cargo_test(
26372637
) -> BootstrapCommand {
26382638
let mut cargo = cargo.into();
26392639

2640-
// Propegate `--bless` if it has not already been set/unset
2640+
// Propagate `--bless` if it has not already been set/unset
26412641
// Any tools that want to use this should bless if `RUSTC_BLESS` is set to
26422642
// anything other than `0`.
26432643
if builder.config.cmd.bless() && !cargo.get_envs().any(|v| v.0 == "RUSTC_BLESS") {

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ Executed at: {executed_at}"#,
16911691
}
16921692
}
16931693
if let Ok(()) = fs::hard_link(&src, dst) {
1694-
// Attempt to "easy copy" by creating a hard link (symlinks are priviledged on windows),
1694+
// Attempt to "easy copy" by creating a hard link (symlinks are privileged on windows),
16951695
// but if that fails just fall back to a slow `copy` operation.
16961696
} else {
16971697
if let Err(e) = fs::copy(&src, dst) {

src/bootstrap/src/utils/tarball.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Facilitates the management and generation of tarballs.
22
//!
33
//! Tarballs efficiently hold Rust compiler build artifacts and
4-
//! capture a snapshot of each boostrap stage.
4+
//! capture a snapshot of each bootstrap stage.
55
//! In uplifting, a tarball from Stage N captures essential components
66
//! to assemble Stage N + 1 compiler.
77

src/ci/scripts/install-clang.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LLVM_VERSION="18.1.4"
1515

1616
if isMacOS; then
1717
# FIXME: This is the latest pre-built version of LLVM that's available for
18-
# x86_64 MacOS. We may want to consider bulding our own LLVM binaries
18+
# x86_64 MacOS. We may want to consider building our own LLVM binaries
1919
# instead, or set `USE_XCODE_CLANG` like AArch64 does.
2020
LLVM_VERSION="15.0.7"
2121

src/tools/linkchecker/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//!
99
//! Currently uses a combination of HTML parsing to
1010
//! extract the `href` and `id` attributes,
11-
//! and regex search on the orignal markdown to handle intra-doc links.
11+
//! and regex search on the original markdown to handle intra-doc links.
1212
//!
1313
//! These values are then translated to file URLs if possible and then the
1414
//! destination is asserted to exist.

src/tools/miri/cargo-miri/src/phases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
283283
fn is_runnable_crate() -> bool {
284284
// Determine whether this is cargo invoking rustc to get some infos. Ideally we'd check "is
285285
// there a filename passed to rustc", but that's very hard as we would have to know whether
286-
// e.g. `--print foo` is a booolean flag `--print` followed by filename `foo` or equivalent
286+
// e.g. `--print foo` is a boolean flag `--print` followed by filename `foo` or equivalent
287287
// to `--print=foo`. So instead we use this more fragile approach of detecting the presence
288288
// of a "query" flag rather than the absence of a filename.
289289
let info_query = get_arg_flag_value("--print").is_some() || has_arg_flag("-vV");

src/tools/miri/miri-script/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl Command {
493493
// Compare results (inspired by hyperfine)
494494
let ratio = new_result.mean / baseline_result.mean;
495495
// https://en.wikipedia.org/wiki/Propagation_of_uncertainty#Example_formulae
496-
// Covariance asssumed to be 0, i.e. variables are assumed to be independent
496+
// Covariance assumed to be 0, i.e. variables are assumed to be independent
497497
let ratio_stddev = ratio
498498
* f64::sqrt(
499499
(new_result.stddev / new_result.mean).powi(2)

src/tools/miri/miri-script/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub enum Command {
107107
},
108108
/// Update and activate the rustup toolchain 'miri'.
109109
///
110-
/// The `rust-version` file is used to determine the commit that will be intsalled.
110+
/// The `rust-version` file is used to determine the commit that will be installed.
111111
/// `rustup-toolchain-install-master` must be installed for this to work.
112112
Toolchain {
113113
/// Flags that are passed through to `rustup-toolchain-install-master`.

src/tools/miri/src/borrow_tracker/tree_borrows/perms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ pub mod diagnostics {
530530
// - created as Reserved { conflicted: false },
531531
// then Active -> Disabled is forbidden
532532
// A potential `Reserved { conflicted: false }
533-
// -> Reserved { conflicted: true }` is inexistant or irrelevant,
533+
// -> Reserved { conflicted: true }` is inexistent or irrelevant,
534534
// and so is the `Reserved { conflicted: false } -> Active`
535535
(Active, Frozen) => false,
536536
(ReservedFrz { conflicted: true }, _) => false,

src/tools/miri/src/borrow_tracker/tree_borrows/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl LocationState {
201201

202202
/// Records a new access, so that future access can potentially be skipped
203203
/// by `skip_if_known_noop`. This must be called on child accesses, and otherwise
204-
/// shoud be called on foreign accesses for increased performance. It should not be called
204+
/// should be called on foreign accesses for increased performance. It should not be called
205205
/// when `skip_if_known_noop` indicated skipping, since it then is a no-op.
206206
/// See `foreign_access_skipping.rs`
207207
fn record_new_access(&mut self, access_kind: AccessKind, rel_pos: AccessRelatedness) {

0 commit comments

Comments
 (0)