We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753c396 commit ef29db7Copy full SHA for ef29db7
tests/ui/lint_without_lint_pass.rs
@@ -3,7 +3,7 @@
3
4
#[macro_use]
5
extern crate rustc;
6
-use rustc::lint;
+use rustc::lint::{LintArray, LintPass};
7
8
9
extern crate clippy_lints;
@@ -21,8 +21,8 @@ declare_clippy_lint! {
21
}
22
23
pub struct Pass;
24
-impl lint::LintPass for Pass {
25
- fn get_lints(&self) -> lint::LintArray {
+impl LintPass for Pass {
+ fn get_lints(&self) -> LintArray {
26
lint_array!(TEST_LINT_REGISTERED)
27
28
@@ -31,4 +31,9 @@ impl lint::LintPass for Pass {
31
32
33
34
+declare_lint_pass!(Pass2 => [TEST_LINT_REGISTERED]);
35
+
36
+pub struct Pass3;
37
+impl_lint_pass!(Pass3 => [TEST_LINT_REGISTERED]);
38
39
fn main() {}
0 commit comments