fn maybe_from_hir_attr( attr: &Attribute, item_id: ItemId, tcx: TyCtxt<'_>, ) -> Option<Attribute>
Maybe convert a attribute from hir to json.
Returns None if the attribute shouldn’t be in the output.
None