Static rustc_lint::builtin::UNUSED_MACROS

source ·
pub static UNUSED_MACROS: &'static Lint
Expand description

The unused_macros lint detects macros that were not used.

Note that this lint is distinct from the unused_macro_rules lint, which checks for single rules that never match of an otherwise used macro, and thus never expand.


macro_rules! unused {
    () => {};

fn main() {



Unused macros may signal a mistake or unfinished code. To silence the warning for the individual macro, prefix the name with an underscore such as _my_macro. If you intended to export the macro to make it available outside of the crate, use the macro_export attribute.