]> git.lizzy.rs Git - rust.git/commitdiff
Remove clippy dependency in lint_without_lint_pass
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 7 Nov 2019 20:48:22 +0000 (12:48 -0800)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 7 Nov 2019 20:53:36 +0000 (12:53 -0800)
tests/ui/lint_without_lint_pass.rs
tests/ui/lint_without_lint_pass.stderr

index dc93bbfd75263332c5f060a1ed710f8e3adbec7e..81353414d24d6a73337ce954ba3ee1116649a2f5 100644 (file)
@@ -5,25 +5,25 @@
 extern crate rustc;
 use rustc::lint::{LintArray, LintPass};
 
-#[macro_use]
-extern crate clippy_lints;
-
-declare_clippy_lint! {
-    pub TEST_LINT,
-    correctness,
-    ""
+declare_tool_lint! {
+    pub clippy::TEST_LINT,
+    Warn,
+    "",
+    report_in_external_macro: true
 }
 
-declare_clippy_lint! {
-    pub TEST_LINT_REGISTERED,
-    correctness,
-    ""
+declare_tool_lint! {
+    pub clippy::TEST_LINT_REGISTERED,
+    Warn,
+    "",
+    report_in_external_macro: true
 }
 
-declare_clippy_lint! {
-    pub TEST_LINT_REGISTERED_ONLY_IMPL,
-    correctness,
-    ""
+declare_tool_lint! {
+    pub clippy::TEST_LINT_REGISTERED_ONLY_IMPL,
+    Warn,
+    "",
+    report_in_external_macro: true
 }
 
 pub struct Pass;
index 0559cee70efb4ec7525b063b4bd93351c2dcec3c..7ee9d96c16a24e7c46de0c581533937137caac2d 100644 (file)
@@ -1,10 +1,11 @@
 error: the lint `TEST_LINT` is not added to any `LintPass`
-  --> $DIR/lint_without_lint_pass.rs:11:1
+  --> $DIR/lint_without_lint_pass.rs:8:1
    |
-LL | / declare_clippy_lint! {
-LL | |     pub TEST_LINT,
-LL | |     correctness,
-LL | |     ""
+LL | / declare_tool_lint! {
+LL | |     pub clippy::TEST_LINT,
+LL | |     Warn,
+LL | |     "",
+LL | |     report_in_external_macro: true
 LL | | }
    | |_^
    |