We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dab78b commit e3723cbCopy full SHA for e3723cb
src/lib.rs
@@ -12,7 +12,11 @@ pub use clippy_lints::*;
12
13
#[plugin_registrar]
14
pub fn plugin_registrar(reg: &mut Registry) {
15
- register_plugins(reg);
+ if reg.sess.lint_store.borrow().get_lint_groups().iter().any(|&(s, _, _)| s == "clippy") {
16
+ reg.sess.struct_warn("running cargo clippy on a crate that also imports the clippy plugin").emit();
17
+ } else {
18
+ register_plugins(reg);
19
+ }
20
}
21
22
// only exists to let the dogfood integration test works.
0 commit comments