@@ -32,7 +32,7 @@ mod os;
3232pub mod meta_args;
3333
3434pub struct Builder {
35- main_stmts : Vec < P < ast:: Stmt > > ,
35+ main_stmts : Vec < ast:: Stmt > ,
3636 type_items : Vec < P < ast:: Item > > ,
3737 pt : Rc < node:: PlatformTree > ,
3838}
@@ -120,7 +120,7 @@ impl Builder {
120120 }
121121
122122 pub fn new ( pt : Rc < node:: PlatformTree > , cx : & ExtCtxt ) -> Builder {
123- let use_zinc = cx. item_use_simple ( DUMMY_SP , ast:: Inherited , cx. path_ident (
123+ let use_zinc = cx. item_use_simple ( DUMMY_SP , ast:: Visibility :: Inherited , cx. path_ident (
124124 DUMMY_SP , cx. ident_of ( "zinc" ) ) ) ;
125125
126126 Builder {
@@ -130,15 +130,15 @@ impl Builder {
130130 }
131131 }
132132
133- pub fn main_stmts ( & self ) -> Vec < P < ast:: Stmt > > {
133+ pub fn main_stmts ( & self ) -> Vec < ast:: Stmt > {
134134 self . main_stmts . clone ( )
135135 }
136136
137137 pub fn pt ( & self ) -> Rc < node:: PlatformTree > {
138138 self . pt . clone ( )
139139 }
140140
141- pub fn add_main_statement ( & mut self , stmt : P < ast:: Stmt > ) {
141+ pub fn add_main_statement ( & mut self , stmt : ast:: Stmt ) {
142142 self . main_stmts . push ( stmt) ;
143143 }
144144
@@ -228,14 +228,14 @@ impl Builder {
228228 ident : cx. ident_of ( name) ,
229229 attrs : attrs,
230230 id : ast:: DUMMY_NODE_ID ,
231- node : ast:: ItemFn (
232- cx. fn_decl ( Vec :: new ( ) , cx. ty ( DUMMY_SP , ast:: Ty_ :: TyTup ( Vec :: new ( ) ) ) ) ,
231+ node : ast:: ItemKind :: Fn (
232+ cx. fn_decl ( Vec :: new ( ) , cx. ty ( DUMMY_SP , ast:: TyKind :: Tup ( Vec :: new ( ) ) ) ) ,
233233 ast:: Unsafety :: Unsafe ,
234234 ast:: Constness :: NotConst ,
235- abi:: Rust , // TODO(farcaller): should this be abi::C?
235+ abi:: Abi :: Rust , // TODO(farcaller): should this be abi::Abi ::C?
236236 ast:: Generics :: default ( ) ,
237237 body) ,
238- vis : ast:: Public ,
238+ vis : ast:: Visibility :: Public ,
239239 span : span,
240240 } )
241241 }
0 commit comments