rustc: Parse vector types
This commit is contained in:
parent
b7e6d9895e
commit
d50d481529
@ -117,6 +117,7 @@
|
||||
ty_char;
|
||||
ty_str;
|
||||
ty_box(@ty);
|
||||
ty_vec(@ty);
|
||||
ty_tup(vec[tup(bool /* mutability */, @ty)]);
|
||||
ty_path(path, option[referent]);
|
||||
}
|
||||
|
@ -107,6 +107,13 @@ fn spanned[T](&span lo, &span hi, &T node) -> ast.spanned[T] {
|
||||
|
||||
case (token.AT) { p.bump(); t = ast.ty_box(parse_ty(p)); }
|
||||
|
||||
case (token.VEC) {
|
||||
p.bump();
|
||||
expect(p, token.LBRACKET);
|
||||
t = ast.ty_vec(parse_ty(p));
|
||||
expect(p, token.RBRACKET);
|
||||
}
|
||||
|
||||
case (token.TUP) {
|
||||
p.bump();
|
||||
auto f = parse_possibly_mutable_ty; // FIXME: trans_const_lval bug
|
||||
|
Loading…
Reference in New Issue
Block a user