oldmap: get rid of the legacy contains_key method
This commit is contained in:
parent
319eeb1c79
commit
f4a27b2c7d
41 changed files with 86 additions and 87 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue