]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/lint_without_lint_pass.rs
Auto merge of #6336 - giraffate:sync-from-rust, r=flip1995
[rust.git] / tests / ui / lint_without_lint_pass.rs
index dc93bbfd75263332c5f060a1ed710f8e3adbec7e..beaef79a340afad2c371352f2dda86f385c95d8c 100644 (file)
@@ -2,28 +2,31 @@
 #![feature(rustc_private)]
 
 #[macro_use]
-extern crate rustc;
-use rustc::lint::{LintArray, LintPass};
-
+extern crate rustc_middle;
 #[macro_use]
-extern crate clippy_lints;
-
-declare_clippy_lint! {
-    pub TEST_LINT,
-    correctness,
-    ""
+extern crate rustc_session;
+extern crate rustc_lint;
+use rustc_lint::LintPass;
+
+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;