diff options
| author | bors <bors@rust-lang.org> | 2013-07-30 01:37:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-30 01:37:17 -0700 |
| commit | d75ab4a5d798164c37e04a0794f2e28acdb76dd4 (patch) | |
| tree | b0a4b6cc159150e5d0c593d9683aafa9fc342b71 /src/libsyntax/ext | |
| parent | 8695bc74a0dcedcdce3f9bb9c312347511a88ce5 (diff) | |
| parent | 8a329770b6d0bc526e5873c143a5db1b551d42c1 (diff) | |
| download | rust-d75ab4a5d798164c37e04a0794f2e28acdb76dd4.tar.gz rust-d75ab4a5d798164c37e04a0794f2e28acdb76dd4.zip | |
auto merge of #8107 : michaelwoerister/rust/end_of_spanned, r=cmr
Contiunation of naming cleanup in `libsyntax::ast`: ```rust ast::node_id => ast::NodeId ast::local_crate => ast::LOCAL_CRATE ast::crate_node_id => ast::CRATE_NODE_ID ast::blk_check_mode => ast::BlockCheckMode ast::ty_field => ast::TypeField ast::ty_method => ast::TypeMethod ``` Also moved span field directly into `TypeField` struct and cleaned up overlooked `ast::CrateConfig` renamings from last pull request. Cheers, Michael
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/build.rs | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index a5c8f2a235e..ea87646e60b 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -294,7 +294,7 @@ impl ExtCtxt { self.print_backtrace(); self.parse_sess.span_diagnostic.handler().bug(msg); } - pub fn next_id(&self) -> ast::node_id { + pub fn next_id(&self) -> ast::NodeId { parse::next_node_id(self.parse_sess) } pub fn trace_macros(&self) -> bool { diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index b3d65dfa9e2..7e017838496 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -62,7 +62,7 @@ pub trait AstBuilder { fn ty_vars(&self, ty_params: &OptVec<ast::TyParam>) -> ~[ast::Ty]; fn ty_vars_global(&self, ty_params: &OptVec<ast::TyParam>) -> ~[ast::Ty]; - fn ty_field_imm(&self, span: span, name: ident, ty: ast::Ty) -> ast::ty_field; + fn ty_field_imm(&self, span: span, name: ident, ty: ast::Ty) -> ast::TypeField; fn strip_bounds(&self, bounds: &Generics) -> Generics; fn typaram(&self, id: ast::ident, bounds: OptVec<ast::TyParamBound>) -> ast::TyParam; @@ -306,12 +306,12 @@ impl AstBuilder for @ExtCtxt { ~[ ty ]), None) } - fn ty_field_imm(&self, span: span, name: ident, ty: ast::Ty) -> ast::ty_field { - respan(span, - ast::ty_field_ { - ident: name, - mt: ast::mt { ty: ~ty, mutbl: ast::m_imm }, - }) + fn ty_field_imm(&self, span: span, name: ident, ty: ast::Ty) -> ast::TypeField { + ast::TypeField { + ident: name, + mt: ast::mt { ty: ~ty, mutbl: ast::m_imm }, + span: span, + } } fn ty_infer(&self, span: span) -> ast::Ty { @@ -404,7 +404,7 @@ impl AstBuilder for @ExtCtxt { stmts: stmts, expr: expr, id: self.next_id(), - rules: ast::default_blk, + rules: ast::DefaultBlock, span: span, } } |
