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/rustc/metadata/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rustc/metadata/decoder.rs') diff --git a/src/rustc/metadata/decoder.rs b/src/rustc/metadata/decoder.rs index f8252a04ed0..4e22c28c943 100644 --- a/src/rustc/metadata/decoder.rs +++ b/src/rustc/metadata/decoder.rs @@ -603,7 +603,7 @@ fn get_self_ty(item: ebml::doc) -> ast::self_ty_ { ebml::get_doc(self_type_doc, tag_item_trait_method_self_ty_region); let region_string = str::from_bytes(ebml::doc_data(region_doc)); - if str::eq(region_string, ~"") { + if region_string == ~"" { region = ast::re_anon; } else { region = ast::re_named(@region_string); -- cgit 1.4.1-3-g733a5