Skip to content

Commit 8f84aca

Browse files
committed
chore: remove repetitive words
Signed-off-by: cuishuang <imcusg@gmail.com>
1 parent 9b82580 commit 8f84aca

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

compiler/rustc_const_eval/src/interpret/operand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
602602
})
603603
}
604604

605-
/// Read an immediate from a place, asserting that that is possible with the given layout.
605+
/// Read an immediate from a place, asserting that is possible with the given layout.
606606
///
607607
/// If this succeeds, the `ImmTy` is never `Uninit`.
608608
#[inline(always)]

compiler/rustc_infer/src/infer/outlives/for_liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ where
5757
//
5858
// We search through the item bounds and where clauses for
5959
// either `'static` or a unique outlives region, and if one is
60-
// found, we just need to prove that that region is still live.
60+
// found, we just need to prove that region is still live.
6161
// If one is not found, then we continue to walk through the alias.
6262
ty::Alias(kind, ty::AliasTy { def_id, args, .. }) => {
6363
let tcx = self.tcx;

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4303,7 +4303,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
43034303
// Make sure `A::B` in `<T as A>::B::C` is a trait item.
43044304
//
43054305
// Currently, `path` names the full item (`A::B::C`, in
4306-
// our example). so we extract the prefix of that that is
4306+
// our example). so we extract the prefix of that is
43074307
// the trait (the slice upto and including
43084308
// `qself.position`). And then we recursively resolve that,
43094309
// but with `qself` set to `None`.

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
351351

352352
// Given a transmutation from `&'a (mut) Src` and `&'dst (mut) Dst`,
353353
// it is always the case that `Src` must be transmutable into `Dst`,
354-
// and that that `'src` must outlive `'dst`.
354+
// and that `'src` must outlive `'dst`.
355355
let mut obls = vec![make_transmute_obl(src_ty, dst_ty)];
356356
if !assume.lifetimes {
357357
obls.push(make_outlives_obl(src_lifetime, dst_lifetime));

library/core/src/mem/transmutability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ where
149149
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
150150
pub struct Assume {
151151
/// When `false`, [`TransmuteFrom`] is not implemented for transmutations
152-
/// that might violate the the alignment requirements of references; e.g.:
152+
/// that might violate the alignment requirements of references; e.g.:
153153
///
154154
#[cfg_attr(bootstrap, doc = "```rust,ignore not runnable on bootstrap")]
155155
#[cfg_attr(not(bootstrap), doc = "```compile_fail,E0277")]

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@
733733
//! sensitivity, it will need to be structurally pinned.
734734
//!
735735
//! A useful test is if [`unsafe`] code that consumes <code>[Pin]\<[&mut Struct][&mut]></code>
736-
//! also needs to take note of the address of the field itself, it may be evidence that that field
736+
//! also needs to take note of the address of the field itself, it may be evidence that field
737737
//! is structurally pinned. Unfortunately, there are no hard-and-fast rules.
738738
//!
739739
//! ### Choosing pinning *not to be* structural for `field`...

library/std/src/sync/reentrant_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ cfg_if!(
136136
// match do we read out the actual TID.
137137
// Note also that we can use relaxed atomic operations here, because
138138
// we only ever read from the tid if `tls_addr` matches the current
139-
// TLS address. In that case, either the the tid has been set by
139+
// TLS address. In that case, either the tid has been set by
140140
// the current thread, or by a thread that has terminated before
141141
// the current thread was created. In either case, no further
142142
// synchronization is needed (as per <https://github.com/rust-lang/miri/issues/3450>)

tests/incremental/hashes/enum_constructors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn change_field_order_struct_like() -> Enum {
6666
#[rustc_clean(cfg="cfail3")]
6767
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
6868
#[rustc_clean(cfg="cfail6")]
69-
// FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it
69+
// FIXME(michaelwoerister):Interesting. I would have thought that changes the MIR. And it
7070
// would if it were not all constants
7171
pub fn change_field_order_struct_like() -> Enum {
7272
Enum::Struct {

tests/mir-opt/copy-prop/dead_stores_better.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// skip-filecheck
22
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
33
// This is a copy of the `dead_stores_79191` test, except that we turn on DSE. This demonstrates
4-
// that that pass enables this one to do more optimizations.
4+
// that pass enables this one to do more optimizations.
55

66
//@ test-mir-pass: CopyProp
77
//@ compile-flags: -Zmir-enable-passes=+DeadStoreElimination

tests/mir-opt/dest-prop/dead_stores_better.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// This is a copy of the `dead_stores_79191` test, except that we turn on DSE. This demonstrates
3-
// that that pass enables this one to do more optimizations.
3+
// that pass enables this one to do more optimizations.
44

55
//@ test-mir-pass: DestinationPropagation
66
//@ compile-flags: -Zmir-enable-passes=+DeadStoreElimination

tests/run-make/remap-path-prefix-dwarf/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn main() {
6969
dwarf_test: DwarfDump::AvoidSrcPath,
7070
});
7171
// The compiler is called with a *RELATIVE PATH* as input. We are remapping a *SUB-DIRECTORY*
72-
// of the compiler's working directory. This test makes sure that that directory is remapped
72+
// of the compiler's working directory. This test makes sure that directory is remapped
7373
// even though it won't actually show up in this form in the compiler's SourceMap and instead
7474
// is only constructed on demand during debuginfo generation.
7575
check_dwarf(DwarfTest {

0 commit comments

Comments
 (0)