Rename ty_istr to ty_str. Issue #855
This commit is contained in:
parent
6217ce958e
commit
f1555e2ca8
14 changed files with 35 additions and 35 deletions
|
|
@ -302,7 +302,7 @@ tag ty_ {
|
|||
ty_float;
|
||||
ty_machine(ty_mach);
|
||||
ty_char;
|
||||
ty_istr;
|
||||
ty_str;
|
||||
ty_box(mt);
|
||||
ty_vec(mt);
|
||||
ty_ptr(mt);
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ fn parse_ty(p: &parser, colons_before_params: bool) -> @ast::ty {
|
|||
} else if eat_word(p, "float") {
|
||||
t = ast::ty_float;
|
||||
} else if eat_word(p, "str") {
|
||||
t = ast::ty_istr;
|
||||
t = ast::ty_str;
|
||||
} else if eat_word(p, "char") {
|
||||
t = ast::ty_char;
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ fn print_type(s: &ps, ty: &@ast::ty) {
|
|||
ast::ty_float. { word(s.s, "float"); }
|
||||
ast::ty_machine(tm) { word(s.s, ast_util::ty_mach_to_str(tm)); }
|
||||
ast::ty_char. { word(s.s, "char"); }
|
||||
ast::ty_istr. { word(s.s, "str"); }
|
||||
ast::ty_str. { word(s.s, "str"); }
|
||||
ast::ty_box(mt) { word(s.s, "@"); print_mt(s, mt); }
|
||||
ast::ty_vec(mt) {
|
||||
word(s.s, "[");
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ fn visit_ty<E>(t: &@ty, e: &E, v: &vt<E>) {
|
|||
ty_uint. {/* no-op */ }
|
||||
ty_machine(_) {/* no-op */ }
|
||||
ty_char. {/* no-op */ }
|
||||
ty_istr. {/* no-op */ }
|
||||
ty_str. {/* no-op */ }
|
||||
ty_box(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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue