fn attr_search_pat(attr: &Attribute) -> (Pat, Pat)