1 // aux-build:proc_macro_derive.rs
3 #![warn(clippy::useless_attribute)]
4 #![warn(unreachable_pub)]
5 #![feature(rustc_private)]
8 #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
10 #[allow(unused_imports)]
11 #[allow(unused_extern_crates)]
16 extern crate proc_macro_derive;
18 // don't lint on unused_import for `use` items
19 #[allow(unused_imports)]
22 // don't lint on deprecated for `use` items
30 // This should not trigger the lint. There's lint level definitions inside the external derive
31 // that would trigger the useless_attribute lint.
32 #[derive(DeriveSomething)]
35 // don't lint on unreachable_pub for `use` items
39 #[allow(unreachable_pub)]
43 #[allow(unreachable_pub)]