From 880213054b63db96b2eaebc3a31bb3100d7ecd66 Mon Sep 17 00:00:00 2001 From: Kian <158495867+kianjib7@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:46:21 +0200 Subject: [PATCH 1/4] Update issue-139553.rs --- src/tools/miri/tests/pass/issues/issue-139553.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/tests/pass/issues/issue-139553.rs b/src/tools/miri/tests/pass/issues/issue-139553.rs index 119d589d1eada..99ac00d339717 100644 --- a/src/tools/miri/tests/pass/issues/issue-139553.rs +++ b/src/tools/miri/tests/pass/issues/issue-139553.rs @@ -11,7 +11,7 @@ fn main() { let t1 = thread::spawn(move || { // 1. The first action executed is an attempt to send the first value in the channel. This - // will begin to initialize the channel but will stop at a critical momement as + // will begin to initialize the channel but will stop at a critical moment as // indicated by the `yield_now()` call in the `start_send` method of the implementation. let _ = s1.send(42); // 4. The sender is re-scheduled and it finishes the initialization of the channel by From a6a76c514715a3f353352927a7d69260d99e59a0 Mon Sep 17 00:00:00 2001 From: Kian <158495867+kianjib7@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:47:42 +0200 Subject: [PATCH 2/4] Update phases.rs --- src/tools/miri/cargo-miri/src/phases.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/cargo-miri/src/phases.rs b/src/tools/miri/cargo-miri/src/phases.rs index b72b974bdbdd6..1fe3765ac9647 100644 --- a/src/tools/miri/cargo-miri/src/phases.rs +++ b/src/tools/miri/cargo-miri/src/phases.rs @@ -283,7 +283,7 @@ pub fn phase_rustc(mut args: impl Iterator, phase: RustcPhase) { fn is_runnable_crate() -> bool { // Determine whether this is cargo invoking rustc to get some infos. Ideally we'd check "is // there a filename passed to rustc", but that's very hard as we would have to know whether - // e.g. `--print foo` is a booolean flag `--print` followed by filename `foo` or equivalent + // e.g. `--print foo` is a boolean flag `--print` followed by filename `foo` or equivalent // to `--print=foo`. So instead we use this more fragile approach of detecting the presence // of a "query" flag rather than the absence of a filename. let info_query = get_arg_flag_value("--print").is_some() || has_arg_flag("-vV"); From 4826b45ab423a2813b89fe69c2c4e038967a5968 Mon Sep 17 00:00:00 2001 From: Kian <158495867+kianjib7@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:48:11 +0200 Subject: [PATCH 3/4] Update commands.rs --- src/tools/miri/miri-script/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs index 9aaad9ca04a9a..3853df1619a2c 100644 --- a/src/tools/miri/miri-script/src/commands.rs +++ b/src/tools/miri/miri-script/src/commands.rs @@ -584,7 +584,7 @@ impl Command { // Compare results (inspired by hyperfine) let ratio = new_result.mean / baseline_result.mean; // https://en.wikipedia.org/wiki/Propagation_of_uncertainty#Example_formulae - // Covariance asssumed to be 0, i.e. variables are assumed to be independent + // Covariance assumed to be 0, i.e. variables are assumed to be independent let ratio_stddev = ratio * f64::sqrt( (new_result.stddev / new_result.mean).powi(2) From 617c59947a33c97b398a6735f7e666a80eeeb4d7 Mon Sep 17 00:00:00 2001 From: Kian <158495867+kianjib7@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:48:35 +0200 Subject: [PATCH 4/4] Update main.rs --- src/tools/miri/miri-script/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/miri-script/src/main.rs b/src/tools/miri/miri-script/src/main.rs index e41df662ca28f..564e92017ded9 100644 --- a/src/tools/miri/miri-script/src/main.rs +++ b/src/tools/miri/miri-script/src/main.rs @@ -135,7 +135,7 @@ pub enum Command { }, /// Update and activate the rustup toolchain 'miri'. /// - /// The `rust-version` file is used to determine the commit that will be intsalled. + /// The `rust-version` file is used to determine the commit that will be installed. /// `rustup-toolchain-install-master` must be installed for this to work. Toolchain { /// Flags that are passed through to `rustup-toolchain-install-master`.