1
Fork 0

[breaking-change] move ast_util functions to methods

This commit is contained in:
faineance 2015-11-28 19:02:07 +00:00
parent 9ea4b4f01f
commit ec8ea22c7f
10 changed files with 191 additions and 192 deletions

View file

@ -500,7 +500,7 @@ fn mk_main(cx: &mut TestCtxt) -> P<ast::Item> {
let main = ast::ItemFn(ecx.fn_decl(vec![], main_ret_ty),
ast::Unsafety::Normal,
ast::Constness::NotConst,
::abi::Rust, empty_generics(), main_body);
::abi::Rust, ast::Generics::default(), main_body);
let main = P(ast::Item {
ident: token::str_to_ident("main"),
attrs: vec![main_attr],