Skip to content

Commit 5811057

Browse files
committed
fix dupe word typos
1 parent b9341bf commit 5811057

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl<'mir, 'tcx: 'mir> CompileTimeEvalContext<'mir, 'tcx> {
240240
let align = ImmTy::from_uint(target_align, args[1].layout).into();
241241
let fn_abi = self.fn_abi_of_instance(instance, ty::List::empty())?;
242242

243-
// We replace the entire entire function call with a "tail call".
243+
// We replace the entire function call with a "tail call".
244244
// Note that this happens before the frame of the original function
245245
// is pushed on the stack.
246246
self.eval_fn_call(

compiler/rustc_mir_dataflow/src/value_analysis.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl<V: Clone> Clone for StateData<V> {
406406
/// The dataflow state for an instance of [`ValueAnalysis`].
407407
///
408408
/// Every instance specifies a lattice that represents the possible values of a single tracked
409-
/// place. If we call this lattice `V` and set set of tracked places `P`, then a [`State`] is an
409+
/// place. If we call this lattice `V` and set of tracked places `P`, then a [`State`] is an
410410
/// element of `{unreachable} ∪ (P -> V)`. This again forms a lattice, where the bottom element is
411411
/// `unreachable` and the top element is the mapping `p ↦ ⊤`. Note that the mapping `p ↦ ⊥` is not
412412
/// the bottom element (because joining an unreachable and any other reachable state yields a

compiler/rustc_resolve/src/late.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
19271927
// We have a single lifetime => success.
19281928
elision_lifetime = Elision::Param(res)
19291929
} else {
1930-
// We have have multiple lifetimes => error.
1930+
// We have multiple lifetimes => error.
19311931
elision_lifetime = Elision::Err;
19321932
}
19331933
}

library/core/src/iter/sources/repeat_n.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::mem::ManuallyDrop;
2020
/// #![feature(iter_repeat_n)]
2121
/// use std::iter;
2222
///
23-
/// // four of the the number four:
23+
/// // four of the number four:
2424
/// let mut four_fours = iter::repeat_n(4, 4);
2525
///
2626
/// assert_eq!(Some(4), four_fours.next());

library/core/src/str/pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ unsafe fn small_slice_eq(x: &[u8], y: &[u8]) -> bool {
18941894
// Thus, derefencing both `px` and `py` in the loop below is safe.
18951895
//
18961896
// Moreover, we set `pxend` and `pyend` to be 4 bytes before the actual
1897-
// end of of `px` and `py`. Thus, the final dereference outside of the
1897+
// end of `px` and `py`. Thus, the final dereference outside of the
18981898
// loop is guaranteed to be valid. (The final comparison will overlap with
18991899
// the last comparison done in the loop for lengths that aren't multiples
19001900
// of four.)

library/std/src/sync/mpmc/array.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl<T> Channel<T> {
225225
let slot = unsafe { self.buffer.get_unchecked(index) };
226226
let stamp = slot.stamp.load(Ordering::Acquire);
227227

228-
// If the the stamp is ahead of the head by 1, we may attempt to pop.
228+
// If the stamp is ahead of the head by 1, we may attempt to pop.
229229
if head + 1 == stamp {
230230
let new = if index + 1 < self.cap {
231231
// Same lap, incremented index.

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl ScopeData {
4646
// We check for 'overflow' with usize::MAX / 2, to make sure there's no
4747
// chance it overflows to 0, which would result in unsoundness.
4848
if self.num_running_threads.fetch_add(1, Ordering::Relaxed) > usize::MAX / 2 {
49-
// This can only reasonably happen by mem::forget()'ing many many ScopedJoinHandles.
49+
// This can only reasonably happen by mem::forget()'ing a lot of ScopedJoinHandles.
5050
self.decrement_num_running_threads(false);
5151
panic!("too many running threads in thread scope");
5252
}

src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct Foo {
55

66
impl PartialEq for Foo {
77
fn eq(&self, _: &Foo) -> bool {
8-
false // ha ha sucker!
8+
false // ha ha!
99
}
1010
}
1111

0 commit comments

Comments
 (0)