1 #![deny(clippy::internal)]
2 #![allow(clippy::missing_clippy_version_attribute)]
3 #![feature(rustc_private)]
6 extern crate rustc_middle
;
8 extern crate rustc_session
;
9 extern crate rustc_lint
;
10 use rustc_lint
::LintPass
;
13 pub clippy
::TEST_LINT
,
16 report_in_external_macro
: true
20 pub clippy
::TEST_LINT_REGISTERED
,
23 report_in_external_macro
: true
27 pub clippy
::TEST_LINT_REGISTERED_ONLY_IMPL
,
30 report_in_external_macro
: true
34 impl LintPass
for Pass
{
35 fn name(&self) -> &'
static str {
40 declare_lint_pass
!(Pass2
=> [TEST_LINT_REGISTERED
]);
43 impl_lint_pass
!(Pass3
=> [TEST_LINT_REGISTERED_ONLY_IMPL
]);