about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/comments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 69aa4775e43..f1415cb9e20 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -203,7 +203,7 @@ fn gather_comments_and_literals(span_diagnostic: diagnostic::span_handler,
         let {tok: tok, sp: sp} = rdr.next_token();
         if token::is_lit(tok) {
             let s = get_str_from(rdr, bstart);
-            literals += [{lit: s, pos: sp.lo}];
+            vec::push(literals, {lit: s, pos: sp.lo});
             log(debug, "tok lit: " + s);
         } else {
             log(debug, "tok: " + token::to_str(*rdr.interner, tok));