File tree 1 file changed +4
-4
lines changed
src/librustc/middle/typeck
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -693,18 +693,18 @@ impl CoherenceChecker {
693
693
694
694
let tcx = self.crate_context.tcx;
695
695
696
- let mut provided_names = send_map::linear::LinearMap ();
696
+ let mut provided_names = send_map::linear::LinearSet::new ();
697
697
// Implemented methods
698
698
for uint::range(0, all_methods.len()) |i| {
699
- provided_names.insert(all_methods[i].ident, () );
699
+ provided_names.insert(all_methods[i].ident);
700
700
}
701
701
// Default methods
702
702
for ty::provided_trait_methods(tcx, trait_did).each |ident| {
703
- provided_names.insert(*ident, () );
703
+ provided_names.insert(*ident);
704
704
}
705
705
706
706
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; }
708
708
709
709
tcx.sess.span_err(trait_ref_span,
710
710
fmt!(" missing method `%s`",
You can’t perform that action at this time.
0 commit comments