From 7b32c14c43e10a071935361ec3569b93ce3802eb Mon Sep 17 00:00:00 2001 From: crStiv Date: Fri, 20 Dec 2024 00:01:34 +0100 Subject: [PATCH 1/3] typo divided "isused" into "is used" --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 553ef676154bc..8f3ca341e21fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -239,7 +239,7 @@ jobs: npm ci python3 scripts/upload-build-metrics.py ../../build/cpu-usage.csv - # This job isused to tell bors the final status of the build, as there is no practical way to detect + # This job is used to tell bors the final status of the build, as there is no practical way to detect # when a workflow is successful listening to webhooks only in our current bors implementation (homu). outcome: name: bors build finished From 0ff733a10eeb8f66d5d3e9d96ebfb3a652870824 Mon Sep 17 00:00:00 2001 From: crStiv Date: Fri, 20 Dec 2024 00:03:12 +0100 Subject: [PATCH 2/3] typo "similarlty" to "similarity" --- compiler/rustc_arena/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_arena/src/lib.rs b/compiler/rustc_arena/src/lib.rs index 4d8525989cc59..891809befff79 100644 --- a/compiler/rustc_arena/src/lib.rs +++ b/compiler/rustc_arena/src/lib.rs @@ -201,7 +201,7 @@ impl TypedArena { /// storing the elements in the arena. #[inline] pub fn alloc_from_iter>(&self, iter: I) -> &mut [T] { - // Despite the similarlty with `DroplessArena`, we cannot reuse their fast case. The reason + // Despite the similarity with `DroplessArena`, we cannot reuse their fast case. The reason // is subtle: these arenas are reentrant. In other words, `iter` may very well be holding a // reference to `self` and adding elements to the arena during iteration. // From 40e4997ede11c73b6ee379345fefc88077751605 Mon Sep 17 00:00:00 2001 From: crStiv Date: Fri, 20 Dec 2024 00:04:30 +0100 Subject: [PATCH 3/3] typo "th eonly" to "the only" --- compiler/rustc_ast_passes/src/ast_validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_ast_passes/src/ast_validation.rs b/compiler/rustc_ast_passes/src/ast_validation.rs index d1cf9c53d66e7..f6aed02fa7bee 100644 --- a/compiler/rustc_ast_passes/src/ast_validation.rs +++ b/compiler/rustc_ast_passes/src/ast_validation.rs @@ -1578,7 +1578,7 @@ fn deny_equality_constraints( None => (format!("<{assoc} = {ty}>"), trait_segment.span().shrink_to_hi()), }; let removal_span = if generics.where_clause.predicates.len() == 1 { - // We're removing th eonly where bound left, remove the whole thing. + // We're removing the only where bound left, remove the whole thing. generics.where_clause.span } else { let mut span = predicate_span;