Change to lint

This commit is contained in:
Jack Huey 2022-02-07 01:23:37 -05:00
parent c20b4f5584
commit 3f504f6984
8 changed files with 75 additions and 21 deletions

View file

@ -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));