mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
36 lines
763 B
Rust
36 lines
763 B
Rust
#![deny(clippy::internal)]
|
|
#![allow(clippy::missing_clippy_version_attribute)]
|
|
#![feature(rustc_private)]
|
|
|
|
extern crate rustc_ast;
|
|
extern crate rustc_hir;
|
|
extern crate rustc_lint;
|
|
extern crate rustc_middle;
|
|
#[macro_use]
|
|
extern crate rustc_session;
|
|
use clippy_utils::extract_msrv_attr;
|
|
use clippy_utils::msrvs::Msrv;
|
|
use rustc_hir::Expr;
|
|
use rustc_lint::{EarlyContext, EarlyLintPass, LateContext, LateLintPass};
|
|
|
|
declare_lint! {
|
|
pub TEST_LINT,
|
|
Warn,
|
|
""
|
|
}
|
|
|
|
struct Pass {
|
|
msrv: Msrv,
|
|
}
|
|
|
|
impl_lint_pass!(Pass => [TEST_LINT]);
|
|
|
|
impl LateLintPass<'_> for Pass {
|
|
fn check_expr(&mut self, _: &LateContext<'_>, _: &Expr<'_>) {}
|
|
}
|
|
|
|
impl EarlyLintPass for Pass {
|
|
fn check_expr(&mut self, _: &EarlyContext<'_>, _: &rustc_ast::Expr) {}
|
|
}
|
|
|
|
fn main() {}
|