Skip to content

Commit 2f29f99

Browse files
committed
rustc: Make constraint args in the AST interior vectors
1 parent f164d77 commit 2f29f99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/comp/syntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ type constr_arg = constr_arg_general[uint];
426426
type constr_arg_general[T] = spanned[constr_arg_general_[T]];
427427

428428
type constr_ = rec(path path,
429-
vec[@constr_arg_general[uint]] args,
429+
(@constr_arg_general[uint])[] args,
430430
node_id id);
431431

432432
type constr = spanned[constr_];

src/comp/syntax/parse/parser.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,9 @@ fn parse_ty_constr(&vec[ast::arg] fn_args, &parser p) -> @ast::constr {
351351
auto lo = p.get_lo_pos();
352352
auto path = parse_path(p);
353353
auto pf = bind parse_constr_arg(fn_args, _);
354-
let rec(vec[@ast::constr_arg] node, span span) args =
355-
parse_seq(token::LPAREN, token::RPAREN, some(token::COMMA), pf, p);
354+
let rec((@ast::constr_arg)[] node, span span) args =
355+
parse_seq_ivec(token::LPAREN, token::RPAREN, some(token::COMMA), pf,
356+
p);
356357
// FIXME fix the def_id
357358

358359
ret @spanned(lo, args.span.hi,

0 commit comments

Comments
 (0)