We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6531d02 commit 2daa097Copy full SHA for 2daa097
src/librustc/front/test.rs
@@ -152,8 +152,10 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
152
for i in mod_folded.items.mut_iter() {
153
*i = nomain(*i);
154
}
155
- mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
156
- self.cx.reexports.push(self.cx.path.clone());
+ if !reexports.is_empty() {
+ mod_folded.items.push(mk_reexport_mod(&mut self.cx, reexports));
157
+ self.cx.reexports.push(self.cx.path.clone());
158
+ }
159
160
mod_folded
161
0 commit comments