Parse unsafe attributes
This commit is contained in:
@@ -778,7 +778,13 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
||||
if let SyntaxExtensionKind::Derive(..) = ext {
|
||||
self.gate_proc_macro_input(&item);
|
||||
}
|
||||
let meta = ast::MetaItem { kind: MetaItemKind::Word, span, path };
|
||||
// FIX THIS LATER
|
||||
let meta = ast::MetaItem {
|
||||
unsafety: ast::Unsafe::No,
|
||||
kind: MetaItemKind::Word,
|
||||
span,
|
||||
path,
|
||||
};
|
||||
let items = match expander.expand(self.cx, span, &meta, item, is_const) {
|
||||
ExpandResult::Ready(items) => items,
|
||||
ExpandResult::Retry(item) => {
|
||||
|
||||
Reference in New Issue
Block a user