提交 2daa0970 编写于 作者: S Steven Fackler 提交者: Alex Crichton

Don't create reexport module if there are none

上级 6531d02b
......@@ -152,8 +152,10 @@ fn nomain(item: Gc<ast::Item>) -> Gc<ast::Item> {
for i in mod_folded.items.mut_iter() {
*i = nomain(*i);
}
mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
self.cx.reexports.push(self.cx.path.clone());
if !reexports.is_empty() {
mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
self.cx.reexports.push(self.cx.path.clone());
}
mod_folded
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册