about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-02-07 01:23:37 -0500
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-03-05 13:15:00 -0500
commit3f504f6984331f9465496d9d96c1f43dab5ce9c6 (patch)
tree6db5264ddd9a68c3493700ec8bd587ee9967e24f /compiler/rustc_lint/src
parentc20b4f558440c24e8ef84782a71163fe236d72de (diff)
downloadrust-3f504f6984331f9465496d9d96c1f43dab5ce9c6.tar.gz
rust-3f504f6984331f9465496d9d96c1f43dab5ce9c6.zip
Change to lint
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/context.rs8
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));