diff options
| author | Urgau <urgau@numericable.fr> | 2024-06-22 12:38:10 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-08-07 14:08:34 +0200 |
| commit | eedb32dd122e9fc92c7ceacee1a4d2c1dc875bf6 (patch) | |
| tree | e3e2f5dd9adb91628514d3cf7e650459b3437ca8 /compiler/rustc_lint/src/early.rs | |
| parent | 6a2cd0d50c9b7e1243d948641758c76d1f22e25e (diff) | |
| download | rust-eedb32dd122e9fc92c7ceacee1a4d2c1dc875bf6.tar.gz rust-eedb32dd122e9fc92c7ceacee1a4d2c1dc875bf6.zip | |
Make `Span` optional in `BufferedEarlyLint`
Diffstat (limited to 'compiler/rustc_lint/src/early.rs')
| -rw-r--r-- | compiler/rustc_lint/src/early.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index 7b04e8c39e6..6fb0a624644 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -47,7 +47,7 @@ impl<'a, T: EarlyLintPass> EarlyContextAndPass<'a, T> { fn inlined_check_id(&mut self, id: ast::NodeId) { for early_lint in self.context.buffered.take(id) { let BufferedEarlyLint { span, node_id: _, lint_id, diagnostic } = early_lint; - self.context.span_lint_with_diagnostics(lint_id.lint, span, diagnostic); + self.context.opt_span_lint_with_diagnostics(lint_id.lint, span, diagnostic); } } |
