Only suggest if span is not erroneous
This commit is contained in:
parent
b71a09fda0
commit
2902b92769
3 changed files with 12 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue