Detect empty leading where-clauses on type aliases

This commit is contained in:
León Orell Valerian Liehr
2024-02-20 04:41:01 +01:00
parent 2b8060578a
commit cce81289e6
11 changed files with 178 additions and 68 deletions

View File

@@ -597,7 +597,7 @@ pub enum BuiltinLintDiagnostics {
UnicodeTextFlow(Span, String),
UnexpectedCfgName((Symbol, Span), Option<(Symbol, Span)>),
UnexpectedCfgValue((Symbol, Span), Option<(Symbol, Span)>),
DeprecatedWhereclauseLocation(Span, String),
DeprecatedWhereclauseLocation(Option<(Span, String)>),
SingleUseLifetime {
/// Span of the parameter which declares this lifetime.
param_span: Span,