[][src]Static rustc_ap_rustc_session::lint::builtin::UNUSED_MACROS

pub static  UNUSED_MACROS: &Lint

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.