Skip to content

Commit a42e36a

Browse files
committed
test case support fns, remove debugging test case
1 parent d1d7b19 commit a42e36a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,10 +1462,14 @@ mod test {
14621462
pprust::print_mod(s, &crate.module, crate.attrs);
14631463
}
14641464
1465-
//fn expand_and_resolve(crate_str: @str) -> ast::crate {
1466-
//let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
1465+
fn expand_crate_str(crate_str: @str) -> @ast::Crate {
1466+
let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
14671467
// the cfg argument actually does matter, here...
1468-
//let expanded_ast = expand_crate(ps,~[],crate_ast);
1468+
expand_crate(ps,~[],crate_ast)
1469+
}
1470+
1471+
//fn expand_and_resolve(crate_str: @str) -> ast::crate {
1472+
//let expanded_ast = expand_crate_str(crate_str);
14691473
// std::io::println(fmt!("expanded: %?\n",expanded_ast));
14701474
//mtwt_resolve_crate(expanded_ast)
14711475
//}

0 commit comments

Comments
 (0)