summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer.rs
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2013-05-24 01:09:11 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2013-05-28 03:14:44 +0900
commit8f80323f09ef150efc5cf729100f99981afc96e1 (patch)
tree146beb099875fb28ff9eae1d4b5a72b6b624b3c3 /src/libsyntax/parse/lexer.rs
parent363e67273622285a65caa74bb63ecfa04df59055 (diff)
downloadrust-8f80323f09ef150efc5cf729100f99981afc96e1.tar.gz
rust-8f80323f09ef150efc5cf729100f99981afc96e1.zip
Remove unnecessary allocations flagged by lint
Diffstat (limited to 'src/libsyntax/parse/lexer.rs')
-rw-r--r--src/libsyntax/parse/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs
index d49a3d7fe42..eabe664d8ef 100644
--- a/src/libsyntax/parse/lexer.rs
+++ b/src/libsyntax/parse/lexer.rs
@@ -320,7 +320,7 @@ fn consume_block_comment(rdr: @mut StringReader)
         if is_eof(rdr) {
             rdr.fatal(~"unterminated block doc-comment");
         } else {
-            acc += ~"*/";
+            acc += "*/";
             bump(rdr);
             bump(rdr);
             // but comments with only "*"s between two "/"s are not