From 8b12d3ddf981e5450d8159b29db6ee2197064c8a Mon Sep 17 00:00:00 2001 From: GuillaumeGomez Date: Tue, 3 Feb 2015 23:31:06 +0100 Subject: Libsyntax has been updated --- src/libsyntax/ext/tt/macro_parser.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/ext/tt') diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index da233c79ea4..21c65d7fbf6 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -99,7 +99,6 @@ use std::mem; use std::rc::Rc; use std::collections::HashMap; use std::collections::hash_map::Entry::{Vacant, Occupied}; -use std::ops::Deref; // To avoid costly uniqueness checks, we require that `MatchSeq` always has // a nonempty body. @@ -230,7 +229,7 @@ pub fn nameize(p_s: &ParseSess, ms: &[TokenTree], res: &[Rc]) p_s.span_diagnostic .span_fatal(sp, &format!("duplicated bind name: {}", - string.deref())[]) + &string[])[]) } } } @@ -488,7 +487,7 @@ pub fn parse(sess: &ParseSess, let name_string = token::get_ident(name); let match_cur = ei.match_cur; (&mut ei.matches[match_cur]).push(Rc::new(MatchedNonterminal( - parse_nt(&mut rust_parser, span, name_string.deref())))); + parse_nt(&mut rust_parser, span, &name_string[])))); ei.idx += 1us; ei.match_cur += 1; } -- cgit 1.4.1-3-g733a5