about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-12 09:14:12 +0100
committerGitHub <noreply@github.com>2025-01-12 09:14:12 +0100
commitfcf81b8cc36932f732e2af6d1c739866e694f084 (patch)
treecff7c61ac3968a915a4db4245f88ff83580d0097 /compiler/rustc_errors
parenta18a71b92c616d479254d0dcc850361b94e6cd09 (diff)
parent27b069346404eea510e71e3bb3f649b4413c0b3d (diff)
downloadrust-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.rs2
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(