syntex_syntax2::ext::derive
pub fn collect_derives( cx: &mut ExtCtxt, attrs: &mut Vec<Attribute>) -> Vec<Path>