rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]

This commit is contained in:
Patrick Walton 2012-08-03 18:01:30 -07:00
parent 4174de8bb9
commit e02b1b1ec8
11 changed files with 142 additions and 40 deletions

View file

@ -350,7 +350,10 @@ enum expr_ {
// A struct literal expression.
//
// XXX: Add functional record update.
expr_struct(@path, ~[field])
expr_struct(@path, ~[field]),
// A vector literal constructed from one repeated element.
expr_repeat(@expr /* element */, @expr /* count */, mutability)
}
#[auto_serialize]