From da553df04a13d78431d845312342bdf71fb1f1d4 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:39:12 +0200 Subject: [PATCH 1/9] Update validate.rs --- src/etc/test-float-parse/src/validate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/test-float-parse/src/validate.rs b/src/etc/test-float-parse/src/validate.rs index 1eb3699cfb9f7..75638f0275a38 100644 --- a/src/etc/test-float-parse/src/validate.rs +++ b/src/etc/test-float-parse/src/validate.rs @@ -279,7 +279,7 @@ fn decode(f: F) -> FloatRes { let mut exponent = i32::try_from(exponent_biased).unwrap(); - // Adjust for bias and the rnage of the mantissa + // Adjust for bias and the range of the mantissa exponent -= i32::try_from(F::EXP_BIAS + F::MAN_BITS).unwrap(); if f.is_sign_negative() { From 6ca118520fbde8821bfc91ed8a36de661e2729ec Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:41:37 +0200 Subject: [PATCH 2/9] Update validate.rs --- src/etc/test-float-parse/src/validate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/test-float-parse/src/validate.rs b/src/etc/test-float-parse/src/validate.rs index 75638f0275a38..5861c61f935ce 100644 --- a/src/etc/test-float-parse/src/validate.rs +++ b/src/etc/test-float-parse/src/validate.rs @@ -317,7 +317,7 @@ impl Rational { return Rational::NegInf; } - // Fast path; no decimals or exponents ot parse + // Fast path; no decimals or exponents to parse if s.bytes().all(|b| b.is_ascii_digit() || b == b'-') { return Rational::Finite(BigRational::from_str(s).unwrap()); } From 3360977f1fc9cb71271545726020f93d3621bed1 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:43:17 +0200 Subject: [PATCH 3/9] Update integers.rs --- src/etc/test-float-parse/src/gen/integers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/test-float-parse/src/gen/integers.rs b/src/etc/test-float-parse/src/gen/integers.rs index 070d188e88c4a..90288261cde1e 100644 --- a/src/etc/test-float-parse/src/gen/integers.rs +++ b/src/etc/test-float-parse/src/gen/integers.rs @@ -15,7 +15,7 @@ const SMALL_VALUES: RangeInclusive = { /// Large values only get tested around powers of two const LARGE_POWERS: Range = SMALL_MAX_POW2..128; -/// We perturbe each large value around these ranges +/// We perturb each large value around these ranges const LARGE_PERTURBATIONS: RangeInclusive = -256..=256; /// Test all integers up to `2 ^ MAX_POW2` From 07533a3c7d6e17185312fc5d6638dd02d83e7638 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:46:12 +0200 Subject: [PATCH 4/9] Update rustdoc.d.ts --- src/librustdoc/html/static/js/rustdoc.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/static/js/rustdoc.d.ts b/src/librustdoc/html/static/js/rustdoc.d.ts index 18a3e22113b8b..a49ec03ec1e9b 100644 --- a/src/librustdoc/html/static/js/rustdoc.d.ts +++ b/src/librustdoc/html/static/js/rustdoc.d.ts @@ -211,7 +211,7 @@ declare namespace rustdoc { * * fn something() -> Result * - * If output was allowed to be any RawFunctionType, it would look like thi + * If output was allowed to be any RawFunctionType, it would look like this * * [[], [50, [3, 3]]] * @@ -221,7 +221,7 @@ declare namespace rustdoc { * in favor of the pair of types interpretation. This is why the `(number|Array)` * is used instead of `(RawFunctionType|Array)`. * - * The output can be skipped if it's actually unit and there's no type constraints. If thi + * The output can be skipped if it's actually unit and there's no type constraints. If this * function accepts constrained generics, then the output will be unconditionally emitted, and * after it will come a list of trait constraints. The position of the item in the list will * determine which type parameter it is. For example: From 828463b4054ce8806fdd4f8e4aa1ed65532f1a77 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:47:55 +0200 Subject: [PATCH 5/9] Update footnotes.rs --- src/librustdoc/html/markdown/footnotes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/markdown/footnotes.rs b/src/librustdoc/html/markdown/footnotes.rs index ded0585ddccda..94d3027c38797 100644 --- a/src/librustdoc/html/markdown/footnotes.rs +++ b/src/librustdoc/html/markdown/footnotes.rs @@ -38,7 +38,7 @@ impl<'a, I: Iterator>> Footnotes<'a, I> { let key = key.to_owned(); let FootnoteDef { content, id } = self.footnotes.entry(key).or_insert(FootnoteDef { content: Vec::new(), id: new_id }); - // Don't allow changing the ID of existing entrys, but allow changing the contents. + // Don't allow changing the ID of existing entries, but allow changing the contents. (content, *id) } From ff06ec5c924797bc91077021039c9e66d90ddaf0 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:51:18 +0200 Subject: [PATCH 6/9] Update if_let_rescope.rs --- compiler/rustc_lint/src/if_let_rescope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/if_let_rescope.rs b/compiler/rustc_lint/src/if_let_rescope.rs index b5a6159bd0aa4..d58050d19e746 100644 --- a/compiler/rustc_lint/src/if_let_rescope.rs +++ b/compiler/rustc_lint/src/if_let_rescope.rs @@ -211,7 +211,7 @@ impl IfLetRescope { } } } - // At this point, any `if let` fragment in the cascade is definitely preceeded by `else`, + // At this point, any `if let` fragment in the cascade is definitely preceded by `else`, // so a opening bracket is mandatory before each `match`. add_bracket_to_match_head = true; if let Some(alt) = alt { From 4a449d387158b2cdb0648267c9f270427b1a394a Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 15:13:09 +0200 Subject: [PATCH 7/9] Update collector.rs --- compiler/rustc_monomorphize/src/collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 246faed50e369..82a566d5112d6 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -529,7 +529,7 @@ fn collect_items_rec<'tcx>( }); } // Only updating `usage_map` for used items as otherwise we may be inserting the same item - // multiple times (if it is first 'mentioned' and then later actuall used), and the usage map + // multiple times (if it is first 'mentioned' and then later actually used), and the usage map // logic does not like that. // This is part of the output of collection and hence only relevant for "used" items. // ("Mentioned" items are only considered internally during collection.) From 45ac16ec6f7d301ea4d199f4450197094d96c5c5 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 15:17:37 +0200 Subject: [PATCH 8/9] Update builtin.rs --- compiler/rustc_lint_defs/src/builtin.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 5b4a1f174cbbe..4b101e02dd5c5 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3155,17 +3155,17 @@ declare_lint! { /// ``` /// /// ```rust,ignore (needs command line option) - /// #[cfg(widnows)] + /// #[cfg(windows)] /// fn foo() {} /// ``` /// /// This will produce: /// /// ```text - /// warning: unexpected `cfg` condition name: `widnows` + /// warning: unexpected `cfg` condition name: `windows` /// --> lint_example.rs:1:7 /// | - /// 1 | #[cfg(widnows)] + /// 1 | #[cfg(windows)] /// | ^^^^^^^ /// | /// = note: `#[warn(unexpected_cfgs)]` on by default From 0b7052e08e66e4d2cd3814ca7a8be71b670fc1d7 Mon Sep 17 00:00:00 2001 From: Marson Kotovi4 <137284002+MarsonKotovi4@users.noreply.github.com> Date: Sat, 1 Feb 2025 15:20:09 +0200 Subject: [PATCH 9/9] Update intrinsics-x86-sse42.rs --- src/tools/miri/tests/pass/shims/x86/intrinsics-x86-sse42.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/tests/pass/shims/x86/intrinsics-x86-sse42.rs b/src/tools/miri/tests/pass/shims/x86/intrinsics-x86-sse42.rs index 30908baa6c15e..84b3d4ff908f3 100644 --- a/src/tools/miri/tests/pass/shims/x86/intrinsics-x86-sse42.rs +++ b/src/tools/miri/tests/pass/shims/x86/intrinsics-x86-sse42.rs @@ -375,7 +375,7 @@ unsafe fn test_str() { } test_ranges(); - // Confirm that the polarity bits work as indended. + // Confirm that the polarity bits work as intended. #[target_feature(enable = "sse4.2")] unsafe fn test_polarity() { let a = str_to_m128i(b"Hello!");