diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-01-22 21:56:40 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-01-22 22:10:00 -0500 |
| commit | 342cb602db589f43c4e27a8c674164e641e833bd (patch) | |
| tree | df9efa922911e476dc5eca9c86bfbc4b126fa9ee | |
| parent | 8cff5c22c3d4354a2058b7c3e7ddd6d263bf8190 (diff) | |
| download | rust-342cb602db589f43c4e27a8c674164e641e833bd.tar.gz rust-342cb602db589f43c4e27a8c674164e641e833bd.zip | |
migrate coherence.rs to LinearSet
| -rw-r--r-- | src/librustc/middle/typeck/coherence.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/middle/typeck/coherence.rs b/src/librustc/middle/typeck/coherence.rs index 087b15c93cb..df82c32f355 100644 --- a/src/librustc/middle/typeck/coherence.rs +++ b/src/librustc/middle/typeck/coherence.rs @@ -693,18 +693,18 @@ impl CoherenceChecker { let tcx = self.crate_context.tcx; - let mut provided_names = send_map::linear::LinearMap(); + let mut provided_names = send_map::linear::LinearSet::new(); // Implemented methods for uint::range(0, all_methods.len()) |i| { - provided_names.insert(all_methods[i].ident, ()); + provided_names.insert(all_methods[i].ident); } // Default methods for ty::provided_trait_methods(tcx, trait_did).each |ident| { - provided_names.insert(*ident, ()); + provided_names.insert(*ident); } for (*ty::trait_methods(tcx, trait_did)).each |method| { - if provided_names.contains_key(&method.ident) { loop; } + if provided_names.contains(&method.ident) { loop; } tcx.sess.span_err(trait_ref_span, fmt!("missing method `%s`", |
