1 // aux-build:proc_macro_derive.rs
3 #![warn(clippy::useless_attribute)]
4 #![warn(unreachable_pub)]
7 #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
9 #[cfg_attr(feature = "cargo-clippy",
11 #[allow(unused_imports)]
12 #[allow(unused_extern_crates)]
14 extern crate clippy_lints;
17 extern crate proc_macro_derive;
19 // don't lint on unused_import for `use` items
20 #[allow(unused_imports)]
23 // don't lint on deprecated for `use` items
31 // This should not trigger the lint. There's lint level definitions inside the external derive
32 // that would trigger the useless_attribute lint.
33 #[derive(DeriveSomething)]
36 // don't lint on unreachable_pub for `use` items
40 #[allow(unreachable_pub)]
44 #[allow(unreachable_pub)]