enable fold_mac
This commit is contained in:
parent
792772a93b
commit
08479aabd0
1 changed files with 6 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue