Skip to content

Commit d1982bd

Browse files
committed
fix small word dupe typos
1 parent 50f6d33 commit d1982bd

File tree

17 files changed

+21
-21
lines changed

17 files changed

+21
-21
lines changed

compiler/rustc_error_codes/src/error_codes/E0591.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ unsafe {
5353
```
5454

5555
Here, transmute is being used to convert the types of the fn arguments.
56-
This pattern is incorrect because, because the type of `foo` is a function
57-
**item** (`typeof(foo)`), which is zero-sized, and the target type (`fn()`)
56+
This pattern is incorrect because the type of `foo` is a function **item**
57+
(`typeof(foo)`), which is zero-sized, and the target type (`fn()`)
5858
is a function pointer, which is not zero-sized.
5959
This pattern should be rewritten. There are a few possible ways to do this:
6060

compiler/rustc_infer/src/infer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ impl<'tcx> InferCtxt<'tcx> {
12831283
assert!(old_value.is_none());
12841284
}
12851285

1286-
/// Process the region constraints and return any any errors that
1286+
/// Process the region constraints and return any errors that
12871287
/// result. After this, no more unification operations should be
12881288
/// done -- or the compiler will panic -- but it is legal to use
12891289
/// `resolve_vars_if_possible` as well as `fully_resolve`.

library/std/src/io/error/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn test_errorkind_packing() {
8686
assert_eq!(Error::from(ErrorKind::NotFound).kind(), ErrorKind::NotFound);
8787
assert_eq!(Error::from(ErrorKind::PermissionDenied).kind(), ErrorKind::PermissionDenied);
8888
assert_eq!(Error::from(ErrorKind::Uncategorized).kind(), ErrorKind::Uncategorized);
89-
// Check that the innards look like like what we want.
89+
// Check that the innards look like what we want.
9090
assert_matches!(
9191
Error::from(ErrorKind::OutOfMemory).repr.data(),
9292
ErrorData::Simple(ErrorKind::OutOfMemory),

library/std/src/sys/unix/kernel_copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! Since those syscalls have requirements that cannot be fully checked in advance and
2121
//! gathering additional information about file descriptors would require additional syscalls
2222
//! anyway it simply attempts to use them one after another (guided by inaccurate hints) to
23-
//! figure out which one works and and falls back to the generic read-write copy loop if none of them
23+
//! figure out which one works and falls back to the generic read-write copy loop if none of them
2424
//! does.
2525
//! Once a working syscall is found for a pair of file descriptors it will be called in a loop
2626
//! until the copy operation is completed.

src/test/ui/async-await/issue-64130-1-sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(negative_impls)]
22
// edition:2018
33

4-
// This tests the the specialized async-await-specific error when futures don't implement an
4+
// This tests the specialized async-await-specific error when futures don't implement an
55
// auto trait (which is specifically Sync) due to some type that was captured.
66

77
struct Foo;

src/test/ui/async-await/issue-64130-2-send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(negative_impls)]
22
// edition:2018
33

4-
// This tests the the specialized async-await-specific error when futures don't implement an
4+
// This tests the specialized async-await-specific error when futures don't implement an
55
// auto trait (which is specifically Send) due to some type that was captured.
66

77
struct Foo;

src/test/ui/async-await/issue-64130-3-other.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![feature(negative_impls)]
33
// edition:2018
44

5-
// This tests the the unspecialized async-await-specific error when futures don't implement an
5+
// This tests the unspecialized async-await-specific error when futures don't implement an
66
// auto trait (which is not Send or Sync) due to some type that was captured.
77

88
auto trait Qux {}

src/test/ui/const-generics/occurs-check/unused-substs-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(generic_const_exprs)]
22
#![allow(incomplete_features)]
33

4-
// The goal is is to get an unevaluated const `ct` with a `Ty::Infer(TyVar(_#1t)` subst.
4+
// The goal is to get an unevaluated const `ct` with a `Ty::Infer(TyVar(_#1t)` subst.
55
//
66
// If we are then able to infer `ty::Infer(TyVar(_#1t) := Ty<ct>` we introduced an
77
// artificial inference cycle.

src/test/ui/const-generics/occurs-check/unused-substs-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(generic_const_exprs)]
22
#![allow(incomplete_features)]
33

4-
// The goal is is to get an unevaluated const `ct` with a `Ty::Infer(TyVar(_#1t)` subst.
4+
// The goal is to get an unevaluated const `ct` with a `Ty::Infer(TyVar(_#1t)` subst.
55
//
66
// If we are then able to infer `ty::Infer(TyVar(_#1t) := Ty<ct>` we introduced an
77
// artificial inference cycle.

src/test/ui/deprecation/deprecation-lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ mod cross_crate {
5151

5252
let _ = nested::DeprecatedTupleStruct (1); //~ ERROR use of deprecated tuple struct `deprecation_lint::nested::DeprecatedTupleStruct`: text
5353

54-
// At the moment, the lint checker only checks stability in
54+
// At the moment, the lint checker only checks stability
5555
// in the arguments of macros.
5656
// Eventually, we will want to lint the contents of the
5757
// macro in the module *defining* it. Also, stability levels

0 commit comments

Comments
 (0)