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 ae7b757 commit ed83f28Copy full SHA for ed83f28
src/comp/front/test.rs
@@ -4,6 +4,7 @@ import std::option;
4
import std::ivec;
5
import syntax::ast;
6
import syntax::fold;
7
+import syntax::print::pprust;
8
import front::attr;
9
10
export modify_for_testing;
@@ -148,10 +149,13 @@ fn mk_test_module(&test_ctxt cx) -> @ast::item {
148
149
items=~[mainfn, testsfn]);
150
auto item_ = ast::item_mod(testmod);
151
let ast::item item = rec(ident = "__test",
- attrs = ~[],
152
- id = cx.next_node_id(),
153
- node = item_,
154
- span = rec(lo=0u, hi=0u));
+ attrs = ~[],
+ id = cx.next_node_id(),
+ node = item_,
155
+ span = rec(lo=0u, hi=0u));
156
+
157
+ log #fmt("Synthetic test module:\n%s\n", pprust::item_to_str(@item));
158
159
ret @item;
160
}
161
0 commit comments