File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1462,10 +1462,14 @@ mod test {
1462
1462
pprust::print_mod(s, &crate.module, crate.attrs);
1463
1463
}
1464
1464
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);
1467
1467
// 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);
1469
1473
// std::io::println(fmt!(" expanded: %?\n ", expanded_ast) ) ;
1470
1474
//mtwt_resolve_crate(expanded_ast)
1471
1475
//}
You can’t perform that action at this time.
0 commit comments