Don't create reexport module if there are none
This commit is contained in:
parent
6531d02b79
commit
2daa097077
1 changed files with 4 additions and 2 deletions
|
@ -152,8 +152,10 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
|
||||||
for i in mod_folded.items.mut_iter() {
|
for i in mod_folded.items.mut_iter() {
|
||||||
*i = nomain(*i);
|
*i = nomain(*i);
|
||||||
}
|
}
|
||||||
mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
|
if !reexports.is_empty() {
|
||||||
self.cx.reexports.push(self.cx.path.clone());
|
mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
|
||||||
|
self.cx.reexports.push(self.cx.path.clone());
|
||||||
|
}
|
||||||
|
|
||||||
mod_folded
|
mod_folded
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue