1 // error-pattern:cargo-clippy
2 #![feature(plugin_registrar)]
3 #![feature(rustc_private)]
4 #![allow(unknown_lints)]
6 extern crate rustc_plugin;
7 use rustc_plugin::Registry;
9 extern crate clippy_lints;
11 pub use clippy_lints::*;
14 pub fn plugin_registrar(reg: &mut Registry) {
15 register_plugins(reg);
18 // only exists to let the dogfood integration test works.
19 // Don't run clippy as an executable directly
20 #[allow(dead_code, print_stdout)]
22 panic!("Please use the cargo-clippy executable");