diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-09 19:09:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-09 19:09:31 +0200 |
| commit | a40fa8f443759c23827ec46c40a047375021ae1f (patch) | |
| tree | e1a97b8a67b074b3bad796189d6d374b709c8c9c | |
| parent | 024881a36b50e828818fc808f3a8ce7a51e200e5 (diff) | |
| parent | 5120010b02629744c5bd5b87bd21f976fd902eb5 (diff) | |
| download | rust-a40fa8f443759c23827ec46c40a047375021ae1f.tar.gz rust-a40fa8f443759c23827ec46c40a047375021ae1f.zip | |
Rollup merge of #124924 - goofylfg:master, r=est31
chore: remove repetitive words
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_borrowck/src/region_infer/opaque_types.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs index 6c82dd1489c..6f0bd054329 100644 --- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs @@ -494,7 +494,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { { self.suggest_cloning(err, ty, expr, None, Some(move_spans)); } else if self.suggest_hoisting_call_outside_loop(err, expr) { - // The place where the the type moves would be misleading to suggest clone. + // The place where the type moves would be misleading to suggest clone. // #121466 self.suggest_cloning(err, ty, expr, None, Some(move_spans)); } diff --git a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs index 73ba5bee13b..f601a9d7073 100644 --- a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs +++ b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs @@ -40,7 +40,7 @@ impl<'tcx> RegionInferenceContext<'tcx> { /// compares lifetimes directly, so we need to map the inference variables /// back to concrete lifetimes: `'static`, `ReEarlyParam` or `ReLateParam`. /// - /// First we map the regions in the the generic parameters `_Return<'1>` to + /// First we map the regions in the generic parameters `_Return<'1>` to /// their `external_name` giving `_Return<'a>`. This step is a bit involved. /// See the [rustc-dev-guide chapter] for more info. /// |
