From 04a691a511d0203b1f521960f845e623cc45d261 Mon Sep 17 00:00:00 2001 From: John Clements Date: Mon, 3 Jun 2013 23:00:49 -0700 Subject: token_to_ident takes argument by reference --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') 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") } -- cgit 1.4.1-3-g733a5