From 97452c0ca16238a2de5503aca07db26ff9e8ba63 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 2 Aug 2012 15:42:56 -0700 Subject: Remove modes from map API and replace with regions. API is (for now) mostly by value, there are options to use it by reference if you like. Hash and equality functions must be pure and by reference (forward looking to the day when something like send_map becomes the standard map). --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 29fdc884604..7d5a088a04f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2066,7 +2066,7 @@ class parser { fn is_self_ident() -> bool { alt self.token { - token::IDENT(sid, false) if str::eq(~"self", *self.get_str(sid)) { + token::IDENT(sid, false) if ~"self" == *self.get_str(sid) { true } _ => { -- cgit 1.4.1-3-g733a5