diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-06-14 22:02:50 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-06-21 16:11:11 -0700 |
| commit | f21fbc23d28eebccb903540740212c6e191d1ecc (patch) | |
| tree | 7e3026487990a6b289577e2dd4bc228142c0a4b7 /src/libsyntax/parse/comments.rs | |
| parent | 9bdb2c9e48cefc684b6163249ca816cd96350bde (diff) | |
| download | rust-f21fbc23d28eebccb903540740212c6e191d1ecc.tar.gz rust-f21fbc23d28eebccb903540740212c6e191d1ecc.zip | |
Fixed another performance issue
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 |
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)); |
