rust/tests/ui/lint_without_lint_pass.rs

33 lines
455 B
Rust
Raw Normal View History

2018-10-12 01:09:04 -05:00
#![deny(clippy::internal)]
#![feature(rustc_private)]
#[macro_use]
extern crate rustc;
2018-10-29 14:37:47 -05:00
use rustc::lint;
2018-10-12 01:09:04 -05:00
#[macro_use]
extern crate clippy_lints;
2018-10-29 14:37:47 -05:00
declare_clippy_lint! {
2018-10-12 01:09:04 -05:00
pub TEST_LINT,
correctness,
""
}
2018-10-29 14:37:47 -05:00
declare_clippy_lint! {
pub TEST_LINT_REGISTERED,
correctness,
""
}
pub struct Pass;
impl lint::LintPass for Pass {
fn get_lints(&self) -> lint::LintArray {
lint_array!(TEST_LINT_REGISTERED)
}
}
2018-10-12 01:09:04 -05:00
fn main() {
}