diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-10 03:39:41 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-08-10 03:45:42 +0000 |
| commit | a2b6744af03e315587626e9faa34bfaf3b913012 (patch) | |
| tree | b76f3ac29d63cf455ada56c86332f77490ad8ae9 /compiler/rustc_resolve/src/late | |
| parent | 34a6cae28e7013ff0e640026a8e46f315426829d (diff) | |
| download | rust-a2b6744af03e315587626e9faa34bfaf3b913012.tar.gz rust-a2b6744af03e315587626e9faa34bfaf3b913012.zip | |
Use &mut Diagnostic instead of &mut DiagnosticBuilder unless needed
Diffstat (limited to 'compiler/rustc_resolve/src/late')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index 2b1f2b88ec4..cb133841bca 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -2021,9 +2021,9 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { fn suggest_introducing_lifetime( &self, - err: &mut DiagnosticBuilder<'_, ErrorGuaranteed>, + err: &mut Diagnostic, name: Option<&str>, - suggest: impl Fn(&mut DiagnosticBuilder<'_, ErrorGuaranteed>, bool, Span, &str, String) -> bool, + suggest: impl Fn(&mut Diagnostic, bool, Span, &str, String) -> bool, ) { let mut suggest_note = true; for rib in self.lifetime_ribs.iter().rev() { @@ -2149,7 +2149,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { pub(crate) fn add_missing_lifetime_specifiers_label( &mut self, - err: &mut DiagnosticBuilder<'_, ErrorGuaranteed>, + err: &mut Diagnostic, lifetime_refs: Vec<MissingLifetime>, function_param_lifetimes: Option<(Vec<MissingLifetime>, Vec<ElisionFnParameter>)>, ) { |
