diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-07-10 16:00:11 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-07-17 14:57:54 -0700 |
| commit | d57e8f841939c433b541dd185af91483a88f0f4d (patch) | |
| tree | f3b926a97f0f98f8520cf04372e8b56df8b23d4f /src/libsyntax/parse/parser.rs | |
| parent | 2dbb3c3887ff23c064aa762eb4dafaf4967c6416 (diff) | |
| download | rust-d57e8f841939c433b541dd185af91483a88f0f4d.tar.gz rust-d57e8f841939c433b541dd185af91483a88f0f4d.zip | |
librustc: Change repeated vector expressions to use implicit copyability.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index adecbc050a3..324be2f978d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -280,7 +280,12 @@ pub fn Parser(sess: @mut ParseSess, token: @mut tok0.tok, span: @mut span, last_span: @mut span, - buffer: @mut ([placeholder, .. 4]), + buffer: @mut ([ + placeholder.clone(), + placeholder.clone(), + placeholder.clone(), + placeholder.clone(), + ]), buffer_start: @mut 0, buffer_end: @mut 0, tokens_consumed: @mut 0, |
