diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-02-07 01:23:37 -0500 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-03-05 13:15:00 -0500 |
| commit | 3f504f6984331f9465496d9d96c1f43dab5ce9c6 (patch) | |
| tree | 6db5264ddd9a68c3493700ec8bd587ee9967e24f /compiler/rustc_lint/src | |
| parent | c20b4f558440c24e8ef84782a71163fe236d72de (diff) | |
| download | rust-3f504f6984331f9465496d9d96c1f43dab5ce9c6.tar.gz rust-3f504f6984331f9465496d9d96c1f43dab5ce9c6.zip | |
Change to lint
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/context.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index c6bbf769b23..92adb718933 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -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)); |
