about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-06-03 23:00:49 -0700
committerJohn Clements <clements@racket-lang.org>2013-06-05 12:01:38 -0700
commit04a691a511d0203b1f521960f845e623cc45d261 (patch)
tree06693e51a145e83c36ab9dab9728946fa2c7634d /src/libsyntax/parse/parser.rs
parent320359547126b1a317d49ed68102d1b6e8be5ca2 (diff)
downloadrust-04a691a511d0203b1f521960f845e623cc45d261.tar.gz
rust-04a691a511d0203b1f521960f845e623cc45d261.zip
token_to_ident takes argument by reference
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 54845849ebb..2fd0a7e33ff 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3980,7 +3980,7 @@ impl Parser {
         match *self.token {
             token::LIT_STR(s) => {
                 self.bump();
-                let the_string = ident_to_str(s);
+                let the_string = ident_to_str(&s);
                 let mut words = ~[];
                 for str::each_word(*the_string) |s| { words.push(s) }
                 let mut abis = AbiSet::empty();
@@ -4542,7 +4542,7 @@ impl Parser {
         match *self.token {
             token::LIT_STR(s) => {
                 self.bump();
-                ident_to_str(s)
+                ident_to_str(&s)
             }
             _ =>  self.fatal("expected string literal")
         }