rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]
This commit is contained in:
parent
4174de8bb9
commit
e02b1b1ec8
11 changed files with 142 additions and 40 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue