diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-12 09:14:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 09:14:12 +0100 |
| commit | fcf81b8cc36932f732e2af6d1c739866e694f084 (patch) | |
| tree | cff7c61ac3968a915a4db4245f88ff83580d0097 /compiler/rustc_errors | |
| parent | a18a71b92c616d479254d0dcc850361b94e6cd09 (diff) | |
| parent | 27b069346404eea510e71e3bb3f649b4413c0b3d (diff) | |
| download | rust-fcf81b8cc36932f732e2af6d1c739866e694f084.tar.gz rust-fcf81b8cc36932f732e2af6d1c739866e694f084.zip | |
Rollup merge of #135364 - yotamofek:borrowck-diag-fix, r=compiler-errors
Cleanup `suggest_binding_for_closure_capture_self` diag in borrowck Mostly grammar fix/improvement, but also a small cleanup to use iterators instead of for loops for collecting into a vector.
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index afce877547f..797dcd7b4d1 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -880,7 +880,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> { ) } } - /// Show a suggestion that has multiple parts to it, always as it's own subdiagnostic. + /// Show a suggestion that has multiple parts to it, always as its own subdiagnostic. /// In other words, multiple changes need to be applied as part of this suggestion. #[rustc_lint_diagnostics] pub fn multipart_suggestion_verbose( |
