[breaking-change] move ast_util functions to methods
This commit is contained in:
parent
9ea4b4f01f
commit
ec8ea22c7f
10 changed files with 191 additions and 192 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue