Skip to content

Commit 1f0c254

Browse files
committed
Fold the crate-level module in front::fold
1 parent 5de916d commit 1f0c254

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/front/fold.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ fn noop_fold_crate(&crate_ c, ast_fold fld) -> crate_ {
131131
auto fold_attribute = bind fold_attribute_(_,fold_meta_item);
132132

133133
ret rec(directives=map(fld.fold_crate_directive, c.directives),
134-
module=c.module, attrs=map(fold_attribute, c.attrs),
134+
module=fld.fold_mod(c.module),
135+
attrs=map(fold_attribute, c.attrs),
135136
config=map(fold_meta_item, c.config));
136137
}
137138

0 commit comments

Comments
 (0)