pub fn get_def_attrs<'tcx>( tcx: TyCtxt<'tcx>, def_id: RDefId, def_kind: DefKind, ) -> &'tcx [Attribute]
Gets the attributes of the definition.