diff options
| -rw-r--r-- | tests/ui/lint_without_lint_pass.rs | 30 | ||||
| -rw-r--r-- | tests/ui/lint_without_lint_pass.stderr | 11 |
2 files changed, 21 insertions, 20 deletions
diff --git a/tests/ui/lint_without_lint_pass.rs b/tests/ui/lint_without_lint_pass.rs index dc93bbfd752..81353414d24 100644 --- a/tests/ui/lint_without_lint_pass.rs +++ b/tests/ui/lint_without_lint_pass.rs @@ -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; diff --git a/tests/ui/lint_without_lint_pass.stderr b/tests/ui/lint_without_lint_pass.stderr index 0559cee70ef..7ee9d96c16a 100644 --- a/tests/ui/lint_without_lint_pass.stderr +++ b/tests/ui/lint_without_lint_pass.stderr @@ -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 | | } | |_^ | |
