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

@ -197,7 +197,7 @@ pub fn nameize(p_s: parse_sess, ms: ~[matcher], res: ~[@named_match])
codemap::spanned {
node: match_nonterminal(bind_name, _, idx), span: sp
} => {
if ret_val.contains_key(bind_name) {
if ret_val.contains_key_ref(&bind_name) {
p_s.span_diagnostic.span_fatal(sp, ~"Duplicated bind name: "+
*p_s.interner.get(bind_name))
}