1
Fork 0

Only suggest if span is not erroneous

This commit is contained in:
Michael Goulet 2022-07-15 17:32:15 +00:00
parent b71a09fda0
commit 2902b92769
3 changed files with 12 additions and 11 deletions

View file

@ -467,7 +467,7 @@ pub enum BuiltinLintDiagnostics {
/// If true, the lifetime will be fully elided.
use_span: Option<(Span, bool)>,
},
NamedArgumentUsedPositionally(Span, Span, String),
NamedArgumentUsedPositionally(Option<Span>, Span, String),
}
/// Lints that are buffered up early on in the `Session` before the