diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2018-06-05 19:24:10 -0500 |
|---|---|---|
| committer | mark <markm@cs.wisc.edu> | 2018-06-24 16:16:14 -0500 |
| commit | 08479aabd03d576e4b2050cd4733e75a2b932f80 (patch) | |
| tree | 72abffa997a0abb68a59334c1a4d8df5a15cdc04 /src/librustc_allocator | |
| parent | 792772a93b89b09bdc37643635260668659dcc09 (diff) | |
| download | rust-08479aabd03d576e4b2050cd4733e75a2b932f80.tar.gz rust-08479aabd03d576e4b2050cd4733e75a2b932f80.zip | |
enable fold_mac
Diffstat (limited to 'src/librustc_allocator')
| -rw-r--r-- | src/librustc_allocator/expand.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs index 5c9bf99d15c..547d5f26cf8 100644 --- a/src/librustc_allocator/expand.rs +++ b/src/librustc_allocator/expand.rs @@ -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> { |
