diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-18 14:11:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-18 14:11:06 -0700 |
| commit | 4fc361823377ca10e6ac38e66824a876012b312e (patch) | |
| tree | 32a10fab303093f438e493811a009819b9df4510 /src/comp/syntax | |
| parent | 504ec8b00dec7527bfd1f4be78223c9fd8b6483c (diff) | |
| download | rust-4fc361823377ca10e6ac38e66824a876012b312e.tar.gz rust-4fc361823377ca10e6ac38e66824a876012b312e.zip | |
Change ast::ty_ivec, ty::ty_ivec to ty_vec
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/ast.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/untyped_ast.rs | 4 | ||||
| -rw-r--r-- | src/comp/syntax/visit.rs | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index 468675c070e..f52c243ebe4 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -439,7 +439,7 @@ tag ty_ { ty_str; ty_istr; // interior string ty_box(mt); - ty_ivec(mt); // interior vector + ty_vec(mt); // interior vector ty_ptr(mt); ty_task; ty_port(@ty); diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 9357b11fa03..cc7eb9dcc49 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -570,7 +570,7 @@ fn parse_ty(p: &parser, colons_before_params: bool) -> @ast::ty { } } else if (p.peek() == token::LBRACKET) { expect(p, token::LBRACKET); - t = ast::ty_ivec(parse_mt(p)); + t = ast::ty_vec(parse_mt(p)); hi = p.get_hi_pos(); expect(p, token::RBRACKET); } else if (eat_word(p, "fn")) { diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 8b1600413c4..3d8e6f40d5d 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -284,7 +284,7 @@ fn print_type(s: &ps, ty: &@ast::ty) { ast::ty_str. { word(s.s, "str"); } ast::ty_istr. { word(s.s, "istr"); } ast::ty_box(mt) { word(s.s, "@"); print_mt(s, mt); } - ast::ty_ivec(mt) { + ast::ty_vec(mt) { word(s.s, "["); alt mt.mut { ast::mut. { word_space(s, "mutable"); } diff --git a/src/comp/syntax/untyped_ast.rs b/src/comp/syntax/untyped_ast.rs index cc746c00f41..5534fbed57d 100644 --- a/src/comp/syntax/untyped_ast.rs +++ b/src/comp/syntax/untyped_ast.rs @@ -174,7 +174,7 @@ tag node_name { n_ty_istr; n_ty_box; n_ty_vec; - n_ty_ivec; + n_ty_vec; n_ty_ptr; n_ty_task; n_ty_port; @@ -620,7 +620,7 @@ fn cv_ty(ctx: &ctx, ut: &@ast_node) -> @ty { [ty_istr, n_ty_istr, []], [ty_box, n_ty_box, [cv_mt]], [ty_vec, n_ty_vec, [cv_mt]], - [ty_ivec, n_ty_ivec, [cv_mt]], + [ty_vec, n_ty_vec, [cv_mt]], [ty_ptr, n_ty_ptr, [cv_mt]], [ty_task, n_ty_task, []], [ty_port, n_ty_port, [cv_ty]], diff --git a/src/comp/syntax/visit.rs b/src/comp/syntax/visit.rs index 6149319ba7b..bd1064af843 100644 --- a/src/comp/syntax/visit.rs +++ b/src/comp/syntax/visit.rs @@ -124,7 +124,7 @@ fn visit_ty<E>(t: &@ty, e: &E, v: &vt<E>) { ty_str. {/* no-op */ } ty_istr. {/* no-op */ } ty_box(mt) { v.visit_ty(mt.ty, e, v); } - ty_ivec(mt) { v.visit_ty(mt.ty, e, v); } + ty_vec(mt) { v.visit_ty(mt.ty, e, v); } ty_ptr(mt) { v.visit_ty(mt.ty, e, v); } ty_port(t) { v.visit_ty(t, e, v); } ty_chan(t) { v.visit_ty(t, e, v); } |
