#[macro_use]
extern crate rustc;
-use rustc::lint;
+use rustc::lint::{LintArray, LintPass};
#[macro_use]
extern crate clippy_lints;
}
pub struct Pass;
-impl lint::LintPass for Pass {
- fn get_lints(&self) -> lint::LintArray {
+impl LintPass for Pass {
+ fn get_lints(&self) -> LintArray {
lint_array!(TEST_LINT_REGISTERED)
}
+
+ fn name(&self) -> &'static str {
+ "TEST_LINT"
+ }
}
+declare_lint_pass!(Pass2 => [TEST_LINT_REGISTERED]);
+
+pub struct Pass3;
+impl_lint_pass!(Pass3 => [TEST_LINT_REGISTERED]);
+
fn main() {}