1 #![deny(clippy::internal)]
2 #![feature(rustc_private)]
5 extern crate rustc_middle;
7 extern crate rustc_session;
8 extern crate rustc_lint;
9 use rustc_lint::LintPass;
12 pub clippy::TEST_LINT,
15 report_in_external_macro: true
19 pub clippy::TEST_LINT_REGISTERED,
22 report_in_external_macro: true
26 pub clippy::TEST_LINT_REGISTERED_ONLY_IMPL,
29 report_in_external_macro: true
33 impl LintPass for Pass {
34 fn name(&self) -> &'static str {
39 declare_lint_pass!(Pass2 => [TEST_LINT_REGISTERED]);
42 impl_lint_pass!(Pass3 => [TEST_LINT_REGISTERED_ONLY_IMPL]);