1
Fork 0

enable fold_mac

This commit is contained in:
Mark Mansi 2018-06-05 19:24:10 -05:00 committed by mark
parent 792772a93b
commit 08479aabd0

View file

@ -13,7 +13,7 @@ use rustc_errors;
use syntax::{
ast::{
self, Arg, Attribute, Crate, Expr, FnHeader, Generics, Ident, Item, ItemKind,
LitKind, Mod, Mutability, StrStyle, Ty, TyKind, Unsafety, VisibilityKind,
LitKind, Mac, Mod, Mutability, StrStyle, Ty, TyKind, Unsafety, VisibilityKind,
},
attr,
codemap::{
@ -167,6 +167,11 @@ impl<'a> Folder for ExpandAllocatorDirectives<'a> {
info!("exit submodule");
ret
}
// `fold_mac` is disabled by default. Enable it here.
fn fold_mac(&mut self, mac: Mac) -> Mac {
fold::noop_fold_mac(mac, self)
}
}
struct AllocFnFactory<'a> {