oldmap: get rid of the legacy contains_key method

This commit is contained in:
Daniel Micay
2013-02-02 02:04:22 -05:00
parent 319eeb1c79
commit f4a27b2c7d
41 changed files with 86 additions and 87 deletions

View File

@@ -363,7 +363,7 @@ pub fn require_unique_names(diagnostic: span_handler,
let name = get_meta_item_name(*meta);
// FIXME: How do I silence the warnings? --pcw (#2619)
if map.contains_key(name) {
if map.contains_key_ref(&name) {
diagnostic.span_fatal(meta.span,
fmt!("duplicate meta item `%s`", name));
}