diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-01 22:27:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-01 22:27:19 +0200 |
| commit | c02964f446530af232d65957dfacb1c20bca65fb (patch) | |
| tree | 3b2baa973cf75627bc612ac46235fbdcbb0f6bab | |
| parent | 3350c1eb3fd8fe1bee1ed4c76944d707bd256876 (diff) | |
| parent | cf26d82dafc95d73484b5688ccfc4eec8a9d3e52 (diff) | |
| download | rust-c02964f446530af232d65957dfacb1c20bca65fb.tar.gz rust-c02964f446530af232d65957dfacb1c20bca65fb.zip | |
Rollup merge of #138703 - pudongair:master, r=workingjubilee
chore: remove redundant words in comment remove redundant words in comment
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0207.md | 2 | ||||
| -rw-r--r-- | library/core/src/macros/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0207.md b/compiler/rustc_error_codes/src/error_codes/E0207.md index 5b35748f472..f80b0093ecc 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0207.md +++ b/compiler/rustc_error_codes/src/error_codes/E0207.md @@ -195,7 +195,7 @@ impl<'a> Contains for Foo { Please note that unconstrained lifetime parameters are not supported if they are being used by an associated type. -In cases where the associated type's lifetime is meant to be tied to the the +In cases where the associated type's lifetime is meant to be tied to the self type, and none of the methods on the trait need ownership or different mutability, then an option is to implement the trait on a borrowed type: diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 16c0c118040..3ad6662bdd7 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1748,8 +1748,8 @@ pub(crate) mod builtin { /* compiler built-in */ } - /// Provide a list of type aliases and other opaque-type-containing type definitions. - /// This list will be used in the body of the item it is applied to define opaque + /// Provide a list of type aliases and other opaque-type-containing type definitions + /// to an item with a body. This list will be used in that body to define opaque /// types' hidden types. /// Can only be applied to things that have bodies. #[unstable( |
