Skip to content

Commit 94b4fcf

Browse files
committed
chore: Remove repeated words (extension of #124924)
1 parent e6e262f commit 94b4fcf

File tree

23 files changed

+23
-23
lines changed

23 files changed

+23
-23
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
651651
}
652652

653653
// FIXME: We make sure that this is a normal top-level binding,
654-
// but we could suggest `todo!()` for all uninitialized bindings in the pattern pattern
654+
// but we could suggest `todo!()` for all uninitialized bindings in the pattern
655655
if let hir::StmtKind::Let(hir::LetStmt { span, ty, init: None, pat, .. }) =
656656
&ex.kind
657657
&& let hir::PatKind::Binding(..) = pat.kind

compiler/rustc_hir_typeck/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
31093109

31103110
let true_errors = ocx.select_where_possible();
31113111

3112-
// Do a leak check -- we can't really report report a useful error here,
3112+
// Do a leak check -- we can't really report a useful error here,
31133113
// but it at least avoids an ICE when the error has to do with higher-ranked
31143114
// lifetimes.
31153115
self.leak_check(outer_universe, Some(snapshot))?;

compiler/rustc_lint/src/non_local_def.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare_lint! {
3939
///
4040
/// Creating non-local definitions go against expectation and can create discrepancies
4141
/// in tooling. It should be avoided. It may become deny-by-default in edition 2024
42-
/// and higher, see see the tracking issue <https://github.com/rust-lang/rust/issues/120363>.
42+
/// and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>.
4343
///
4444
/// An `impl` definition is non-local if it is nested inside an item and neither
4545
/// the type nor the trait are at the same nesting level as the `impl` block.

compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ fn trait_object_ty<'tcx>(tcx: TyCtxt<'tcx>, poly_trait_ref: ty::PolyTraitRef<'tc
268268
/// if a function is member of the group derived from this type id. Therefore, in the first call to
269269
/// typeid_for_fnabi (when type ids are attached to functions and methods), it can only include at
270270
/// most as much information that would be available in the second call (i.e., during code
271-
/// generation at call sites); otherwise, the type ids would not not match.
271+
/// generation at call sites); otherwise, the type ids would not match.
272272
///
273273
/// For this, it:
274274
///

library/core/src/ptr/mut_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<T: ?Sized> *mut T {
187187
///
188188
/// This is similar to `self as usize`, which semantically discards *provenance* and
189189
/// *address-space* information. However, unlike `self as usize`, casting the returned address
190-
/// back to a pointer yields yields a [pointer without provenance][without_provenance_mut], which is undefined
190+
/// back to a pointer yields a [pointer without provenance][without_provenance_mut], which is undefined
191191
/// behavior to dereference. To properly restore the lost information and obtain a
192192
/// dereferenceable pointer, use [`with_addr`][pointer::with_addr] or
193193
/// [`map_addr`][pointer::map_addr].

library/portable-simd/crates/core_simd/src/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ macro_rules! for_base_types {
122122
#[inline]
123123
#[must_use = "operator returns a new vector without mutating the inputs"]
124124
// TODO: only useful for int Div::div, but we hope that this
125-
// will essentially always always get inlined anyway.
125+
// will essentially always get inlined anyway.
126126
#[track_caller]
127127
fn $call(self, rhs: Self) -> Self::Output {
128128
$macro_impl!(self, rhs, $inner, $scalar)

src/tools/clippy/clippy_lints/src/methods/needless_collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub(super) fn check<'tcx>(
127127
}
128128
}
129129

130-
/// checks for for collecting into a (generic) method or function argument
130+
/// checks for collecting into a (generic) method or function argument
131131
/// taking an `IntoIterator`
132132
fn check_collect_into_intoiterator<'tcx>(
133133
cx: &LateContext<'tcx>,

src/tools/clippy/tests/ui/ptr_arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ mod issue_9218 {
282282
todo!()
283283
}
284284

285-
// These two's return types don't use use 'a so it's not okay
285+
// These two's return types don't use 'a so it's not okay
286286
fn cow_bad_ret_ty_1<'a>(input: &'a Cow<'a, str>) -> &'static str {
287287
//~^ ERROR: using a reference to `Cow` is not recommended
288288
todo!()

src/tools/compiletest/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub struct Config {
250250
/// Only run tests that match these filters
251251
pub filters: Vec<String>,
252252

253-
/// Skip tests tests matching these substrings. Corresponds to
253+
/// Skip tests matching these substrings. Corresponds to
254254
/// `test::TestOpts::skip`. `filter_exact` does not apply to these flags.
255255
pub skip: Vec<String>,
256256

src/tools/miri/miri-script/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl Command {
251251
cmd!(sh, "git fetch http://localhost:{JOSH_PORT}/rust-lang/rust.git@{commit}{JOSH_FILTER}.git")
252252
.run()
253253
.map_err(|e| {
254-
// Try to un-do the previous `git commit`, to leave the repo in the state we found it it.
254+
// Try to un-do the previous `git commit`, to leave the repo in the state we found it.
255255
cmd!(sh, "git reset --hard HEAD^")
256256
.run()
257257
.expect("FAILED to clean up again after failed `git fetch`, sorry for that");

0 commit comments

Comments
 (0)