1 use syntax_pos::Symbol;
2 use syntax::ast::MetaItem;
3 use syntax::attr::{check_builtin_attribute, AttributeTemplate};
4 use syntax_expand::base::ExtCtxt;
6 pub fn check_builtin_macro_attribute(ecx: &ExtCtxt<'_>, meta_item: &MetaItem, name: Symbol) {
7 // All the built-in macro attributes are "words" at the moment.
8 let template = AttributeTemplate::only_word();
9 let attr = ecx.attribute(meta_item.clone());
10 check_builtin_attribute(ecx.parse_sess, &attr, name, template);