Skip to content

Commit 58f963f

Browse files
authored
Rollup merge of #113717 - cuishuang:master, r=Nilstrieb
remove repetitive words
2 parents d0ae0b3 + 88c7b16 commit 58f963f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ impl<B: WriteBackendMethods> WorkItem<B> {
708708
fn desc(short: &str, _long: &str, name: &str) -> String {
709709
// The short label is three bytes, and is followed by a space. That
710710
// leaves 11 bytes for the CGU name. How we obtain those 11 bytes
711-
// depends on the the CGU name form.
711+
// depends on the CGU name form.
712712
//
713713
// - Non-incremental, e.g. `regex.f10ba03eb5ec7975-cgu.0`: the part
714714
// before the `-cgu.0` is the same for every CGU, so use the

compiler/rustc_data_structures/src/sync/worker_local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub struct WorkerLocal<T> {
116116

117117
// This is safe because the `deref` call will return a reference to a `T` unique to each thread
118118
// or it will panic for threads without an associated local. So there isn't a need for `T` to do
119-
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the the id
119+
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the id
120120
// can be reused, but `WorkerLocal` has a reference to `Registry` which will prevent any reuse.
121121
#[cfg(parallel_compiler)]
122122
unsafe impl<T: Send> Sync for WorkerLocal<T> {}

library/portable-simd/crates/core_simd/examples/dot_product.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub fn dot_prod_simd_4(a: &[f32], b: &[f32]) -> f32 {
130130
}
131131

132132
// This version allocates a single `XMM` register for accumulation, and the folds don't allocate on top of that.
133-
// Notice the the use of `mul_add`, which can do a multiply and an add operation ber iteration.
133+
// Notice the use of `mul_add`, which can do a multiply and an add operation ber iteration.
134134
pub fn dot_prod_simd_5(a: &[f32], b: &[f32]) -> f32 {
135135
a.array_chunks::<4>()
136136
.map(|&a| f32x4::from_array(a))

library/test/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl TestDesc {
224224
}
225225
}
226226

227-
/// Returns None for ignored test or that that are just run, otherwise give a description of the type of test.
227+
/// Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.
228228
/// Descriptions include "should panic", "compile fail" and "compile".
229229
pub fn test_mode(&self) -> Option<&'static str> {
230230
if self.ignore {

src/tools/miri/src/mono_hash_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! otherwise mutated. We also box items in the map. This means we can safely provide
33
//! shared references into existing items in the `FxHashMap`, because they will not be dropped
44
//! (from being removed) or moved (because they are boxed).
5-
//! The API is is completely tailored to what `memory.rs` needs. It is still in
5+
//! The API is completely tailored to what `memory.rs` needs. It is still in
66
//! a separate file to minimize the amount of code that has to care about the unsafety.
77
88
use std::borrow::Borrow;

0 commit comments

Comments
 (0)