]> git.lizzy.rs Git - rust.git/blob - tests/ui-internal/default_lint.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / tests / ui-internal / default_lint.rs
1 #![deny(clippy::internal)]
2 #![allow(clippy::missing_clippy_version_attribute)]
3 #![feature(rustc_private)]
4
5 #[macro_use]
6 extern crate rustc_middle;
7 #[macro_use]
8 extern crate rustc_session;
9 extern crate rustc_lint;
10
11 declare_tool_lint! {
12     pub clippy::TEST_LINT,
13     Warn,
14     "",
15     report_in_external_macro: true
16 }
17
18 declare_tool_lint! {
19     pub clippy::TEST_LINT_DEFAULT,
20     Warn,
21     "default lint description",
22     report_in_external_macro: true
23 }
24
25 declare_lint_pass!(Pass => [TEST_LINT]);
26 declare_lint_pass!(Pass2 => [TEST_LINT_DEFAULT]);
27
28 fn main() {}