Change to lint
This commit is contained in:
parent
c20b4f5584
commit
3f504f6984
8 changed files with 75 additions and 21 deletions
|
@ -818,6 +818,14 @@ pub trait LintContext: Sized {
|
|||
}
|
||||
}
|
||||
},
|
||||
BuiltinLintDiagnostics::DeprecatedWhereclauseLocation(new_span, suggestion) => {
|
||||
db.span_suggestion(
|
||||
new_span,
|
||||
"move it here",
|
||||
suggestion,
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
},
|
||||
}
|
||||
// Rewrap `db`, and pass control to the user.
|
||||
decorate(LintDiagnosticBuilder::new(db));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue