2 // aux-build:proc_macro_derive.rs
4 #![warn(clippy::useless_attribute)]
5 #![warn(unreachable_pub)]
8 #![cfg_attr(feature = "cargo-clippy", allow(dead_code))]
10 #[cfg_attr(feature = "cargo-clippy",
12 #[allow(unused_imports)]
13 #[allow(unused_extern_crates)]
15 extern crate clippy_lints;
18 extern crate proc_macro_derive;
20 // don't lint on unused_import for `use` items
21 #[allow(unused_imports)]
24 // don't lint on deprecated for `use` items
32 // This should not trigger the lint. There's lint level definitions inside the external derive
33 // that would trigger the useless_attribute lint.
34 #[derive(DeriveSomething)]
37 // don't lint on unreachable_pub for `use` items
41 #[allow(unreachable_pub)]
45 #[allow(unreachable_pub)]