Function rustc_trans::middle::ty::get_attrs [−] [src]

pub fn get_attrs(tcx: &'tcx ctxt, did: DefId) -> Cow<'tcx, [Spanned<Attribute_>]>
Unstable

Get the attributes of a definition.