Static rustc_ap_rustc_lint_defs::builtin::UNUSED_MACROS[][src]

pub static UNUSED_MACROS: &Lint
Expand description

The unused_macros lint detects macros that were not used.

Example

macro_rules! unused {
    () => {};
}

fn main() {
}

{{produces}}

Explanation

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.