Skip to content

Commit 0f8f238

Browse files
mark-i-mpietroalbini
authored andcommitted
enable fold_mac
1 parent 9e65155 commit 0f8f238

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_allocator/expand.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ impl<'a> Folder for ExpandAllocatorDirectives<'a> {
170170
info!("exit submodule");
171171
ret
172172
}
173+
174+
// `fold_mac` is disabled by default. Enable it here.
175+
fn fold_mac(&mut self, mac: Mac) -> Mac {
176+
fold::noop_fold_mac(mac, self)
177+
}
173178
}
174179

175180
struct AllocFnFactory<'a> {

0 commit comments

Comments
 (0)