]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint_without_lint_pass.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / lint_without_lint_pass.rs
1 #![deny(clippy::internal)]
2 #![feature(rustc_private)]
3
4 #[macro_use]
5 extern crate rustc;
6 use rustc::lint;
7
8 #[macro_use]
9 extern crate clippy_lints;
10
11 declare_clippy_lint! {
12     pub TEST_LINT,
13     correctness,
14     ""
15 }
16
17 declare_clippy_lint! {
18     pub TEST_LINT_REGISTERED,
19     correctness,
20     ""
21 }
22
23 pub struct Pass;
24 impl lint::LintPass for Pass {
25     fn get_lints(&self) -> lint::LintArray {
26         lint_array!(TEST_LINT_REGISTERED)
27     }
28 }
29
30 fn main() {}