about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2013-03-21 22:11:30 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2013-03-21 22:11:30 +0900
commite2b9cddbbb369fd4aee8714468195d4efc2f86aa (patch)
treed3c7147056d36ff302696e807311ff75f20871fd /src
parentf0beb8c0592a887b31e91df55266a4ebc12320aa (diff)
downloadrust-e2b9cddbbb369fd4aee8714468195d4efc2f86aa.tar.gz
rust-e2b9cddbbb369fd4aee8714468195d4efc2f86aa.zip
Switch impls_seen from oldmap
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/typeck/check/vtable.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/middle/typeck/check/vtable.rs b/src/librustc/middle/typeck/check/vtable.rs
index 4113d99a143..2a705a8feb8 100644
--- a/src/librustc/middle/typeck/check/vtable.rs
+++ b/src/librustc/middle/typeck/check/vtable.rs
@@ -28,7 +28,7 @@ use core::result::{Result, Ok, Err};
 use core::result;
 use core::uint;
 use core::vec;
-use std::oldmap::HashMap;
+use core::hashmap::linear::LinearSet;
 use syntax::ast;
 use syntax::ast_util;
 use syntax::codemap::span;
@@ -234,7 +234,7 @@ pub fn lookup_vtable(vcx: &VtableContext,
         _ => {
             let mut found = ~[];
 
-            let mut impls_seen = HashMap();
+            let mut impls_seen = LinearSet::new();
 
             match vcx.ccx.coherence_info.extension_methods.find(&trait_id) {
                 None => {
@@ -250,10 +250,10 @@ pub fn lookup_vtable(vcx: &VtableContext,
                         // im is one specific impl of trait_ty.
 
                         // First, ensure we haven't processed this impl yet.
-                        if impls_seen.contains_key(&im.did) {
+                        if impls_seen.contains(&im.did) {
                             loop;
                         }
-                        impls_seen.insert(im.did, ());
+                        impls_seen.insert(im.did);
 
                         // ty::impl_traits gives us the list of all
                         // traits that im implements. Again, usually