Skip to content

Commit 342cb60

Browse files
committed
migrate coherence.rs to LinearSet
1 parent 8cff5c2 commit 342cb60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/middle/typeck/coherence.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,18 +693,18 @@ impl CoherenceChecker {
693693
694694
let tcx = self.crate_context.tcx;
695695
696-
let mut provided_names = send_map::linear::LinearMap();
696+
let mut provided_names = send_map::linear::LinearSet::new();
697697
// Implemented methods
698698
for uint::range(0, all_methods.len()) |i| {
699-
provided_names.insert(all_methods[i].ident, ());
699+
provided_names.insert(all_methods[i].ident);
700700
}
701701
// Default methods
702702
for ty::provided_trait_methods(tcx, trait_did).each |ident| {
703-
provided_names.insert(*ident, ());
703+
provided_names.insert(*ident);
704704
}
705705
706706
for (*ty::trait_methods(tcx, trait_did)).each |method| {
707-
if provided_names.contains_key(&method.ident) { loop; }
707+
if provided_names.contains(&method.ident) { loop; }
708708
709709
tcx.sess.span_err(trait_ref_span,
710710
fmt!("missing method `%s`",

0 commit comments

Comments
 (0)