2016-05-24 18:25:25 +02:00
|
|
|
// error-pattern:cargo-clippy
|
2016-06-06 17:09:51 +02:00
|
|
|
#![feature(plugin_registrar)]
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![allow(unknown_lints)]
|
2016-03-23 12:19:13 +01:00
|
|
|
|
2015-11-27 14:47:00 +01:00
|
|
|
extern crate rustc_plugin;
|
|
|
|
use rustc_plugin::Registry;
|
2014-11-19 14:27:34 +05:30
|
|
|
|
2016-05-24 18:25:25 +02:00
|
|
|
extern crate clippy_lints;
|
|
|
|
|
|
|
|
pub use clippy_lints::*;
|
|
|
|
|
2014-11-19 14:27:34 +05:30
|
|
|
#[plugin_registrar]
|
|
|
|
pub fn plugin_registrar(reg: &mut Registry) {
|
2016-05-24 18:25:25 +02:00
|
|
|
register_plugins(reg);
|
|
|
|
}
|
2015-08-21 17:11:34 +02:00
|
|
|
|
2016-05-24 18:25:25 +02:00
|
|
|
// only exists to let the dogfood integration test works.
|
|
|
|
// Don't run clippy as an executable directly
|
|
|
|
#[allow(dead_code, print_stdout)]
|
|
|
|
fn main() {
|
|
|
|
panic!("Please use the cargo-clippy executable");
|
2014-12-11 03:04:58 +05:30
|
|
|
}
|