Declarative macros 2.0 without hygiene.

This commit is contained in:
Jeffrey Seyfried
2017-03-18 01:55:51 +00:00
parent 9c6430b325
commit 2a1d2edb82
14 changed files with 116 additions and 46 deletions

View File

@@ -522,6 +522,7 @@ pub fn noop_fold_mac<T: Folder>(Spanned {node, span}: Mac, fld: &mut T) -> Mac {
pub fn noop_fold_macro_def<T: Folder>(def: MacroDef, fld: &mut T) -> MacroDef {
MacroDef {
tokens: fld.fold_tts(def.tokens.into()).into(),
legacy: def.legacy,
}
}