Skip to content

Commit ec9edbc

Browse files
committed
Auto merge of rust-lang#9723 - Rageking8:fix-dupe-word-typos, r=llogiq
Fix dupe word typos changelog: fix some typos
2 parents 7182a6b + 770362a commit ec9edbc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

clippy_lints/src/matches/significant_drop_in_scrutinee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'a, 'tcx> SigDropHelper<'a, 'tcx> {
226226
/// This will try to set the current suggestion (so it can be moved into the suggestions vec
227227
/// later). If `allow_move_and_clone` is false, the suggestion *won't* be set -- this gives us
228228
/// an opportunity to look for another type in the chain that will be trivially copyable.
229-
/// However, if we are at the the end of the chain, we want to accept whatever is there. (The
229+
/// However, if we are at the end of the chain, we want to accept whatever is there. (The
230230
/// suggestion won't actually be output, but the diagnostic message will be output, so the user
231231
/// can determine the best way to handle the lint.)
232232
fn try_setting_current_suggestion(&mut self, expr: &'tcx Expr<'_>, allow_move_and_clone: bool) {

clippy_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ impl core::ops::Add<u32> for EnumValue {
711711
}
712712
}
713713

714-
/// Attempts to read the given constant as though it were an an enum value.
714+
/// Attempts to read the given constant as though it were an enum value.
715715
#[expect(clippy::cast_possible_truncation, clippy::cast_possible_wrap)]
716716
pub fn read_explicit_enum_value(tcx: TyCtxt<'_>, id: DefId) -> Option<EnumValue> {
717717
if let Ok(ConstValue::Scalar(Scalar::Int(value))) = tcx.const_eval_poly(id) {

tests/ui/manual_flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
}
1111
}
1212

13-
// Test for loop over implicitly implicitly adjusted `Iterator` with `if let` statement
13+
// Test for loop over implicitly adjusted `Iterator` with `if let` statement
1414
let y: Vec<Result<i32, i32>> = vec![];
1515
for n in y.clone() {
1616
if let Ok(n) = n {

tests/ui/mut_range_bound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn mut_range_bound_no_immediate_break() {
7676
let mut n = 3;
7777
for i in n..10 {
7878
if n == 4 {
79-
n = 1; // FIXME: warning because is is not immediately followed by break
79+
n = 1; // FIXME: warning because it is not immediately followed by break
8080
let _ = 2;
8181
break;
8282
}

tests/ui/mut_range_bound.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ LL | m = 2; // warning because it is not immediately followed by break
5050
error: attempt to mutate range bound within loop
5151
--> $DIR/mut_range_bound.rs:79:13
5252
|
53-
LL | n = 1; // FIXME: warning because is is not immediately followed by break
53+
LL | n = 1; // FIXME: warning because it is not immediately followed by break
5454
| ^
5555
|
5656
= note: the range of the loop is unchanged

0 commit comments

Comments
 (0)