Skip to content

Commit 08479aa

Browse files
committed
enable fold_mac
1 parent 792772a commit 08479aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustc_allocator/expand.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustc_errors;
1313
use syntax::{
1414
ast::{
1515
self, Arg, Attribute, Crate, Expr, FnHeader, Generics, Ident, Item, ItemKind,
16-
LitKind, Mod, Mutability, StrStyle, Ty, TyKind, Unsafety, VisibilityKind,
16+
LitKind, Mac, Mod, Mutability, StrStyle, Ty, TyKind, Unsafety, VisibilityKind,
1717
},
1818
attr,
1919
codemap::{
@@ -167,6 +167,11 @@ impl<'a> Folder for ExpandAllocatorDirectives<'a> {
167167
info!("exit submodule");
168168
ret
169169
}
170+
171+
// `fold_mac` is disabled by default. Enable it here.
172+
fn fold_mac(&mut self, mac: Mac) -> Mac {
173+
fold::noop_fold_mac(mac, self)
174+
}
170175
}
171176

172177
struct AllocFnFactory<'a> {

0 commit comments

Comments
 (0)