Function rustc_trans::middle::ty::has_attrUnstable [-] [+] [src]

pub fn has_attr(tcx: &ctxt, did: DefId, attr: &str) -> bool

Determine whether an item is annotated with an attribute