Function rustc_builtin_macros::util::warn_on_duplicate_attribute

source ยท
pub(crate) fn warn_on_duplicate_attribute(
    ecx: &ExtCtxt<'_>,
    item: &Annotatable,
    name: Symbol,
)
Expand description

Emit a warning if the item is annotated with the given attribute. This is used to diagnose when an attribute may have been mistakenly duplicated.