about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-06 03:21:01 +0000
committerbors <bors@rust-lang.org>2019-11-06 03:21:01 +0000
commiteae7b997dd41e397a2c01a5b6724d0b38353e686 (patch)
treea2e38f5d3eb193b615e21768162665d6b2a2c786 /src
parentd1e04902396e2cdcca884c716b0b2db89f0b4b5a (diff)
parenta127e14631769f20a1d0a51e658986b15305da00 (diff)
downloadrust-eae7b997dd41e397a2c01a5b6724d0b38353e686.tar.gz
rust-eae7b997dd41e397a2c01a5b6724d0b38353e686.zip
Auto merge of #4714 - msizanoen1:remove-plugin, r=Manishearth
Remove clippy plugin

This PR removes the clippy plugin, which is already deprecated and is causing the `fmt_macros` not found error in rust-lang/rust#62558: https://github.com/rust-lang/rust/issues/62558#issuecomment-529884322

changelog: remove plugin interface
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/lib.rs b/src/lib.rs
deleted file mode 100644
index 6b398f6b9aa..00000000000
--- a/src/lib.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-// error-pattern:cargo-clippy
-#![feature(plugin_registrar)]
-#![feature(rustc_private)]
-#![warn(rust_2018_idioms)]
-
-// FIXME: switch to something more ergonomic here, once available.
-// (Currently there is no way to opt into sysroot crates without `extern crate`.)
-#[allow(unused_extern_crates)]
-extern crate rustc_driver;
-use self::rustc_driver::plugin::Registry;
-
-#[plugin_registrar]
-pub fn plugin_registrar(reg: &mut Registry<'_>) {
-    for (lint, _, _) in reg.lint_store.get_lint_groups() {
-        reg.sess
-            .struct_warn(
-                "the clippy plugin is being deprecated, please use cargo clippy or rls with the clippy feature",
-            )
-            .emit();
-        if lint == "clippy" {
-            // cargo clippy run on a crate that also uses the plugin
-            return;
-        }
-    }
-
-    let conf = clippy_lints::read_conf(reg.args(), &reg.sess);
-    clippy_lints::register_plugins(&mut reg.lint_store, &reg.sess, &conf);
-}
-
-// only exists to let the dogfood integration test works.
-// Don't run clippy as an executable directly
-#[allow(dead_code)]
-fn main() {
-    panic!("Please use the cargo-clippy executable");
-}