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