1
Fork 0

[breaking change] Update entry API as part of RFC 509.

This commit is contained in:
Ben Foppa 2015-01-04 14:07:32 -05:00
parent 260e46115b
commit 400c3a0ddc
20 changed files with 170 additions and 135 deletions

View file

@ -219,9 +219,9 @@ pub fn nameize(p_s: &ParseSess, ms: &[TokenTree], res: &[Rc<NamedMatch>])
}
}
&TtToken(sp, MatchNt(bind_name, _, _, _)) => {
match ret_val.entry(bind_name) {
match ret_val.entry(&bind_name) {
Vacant(spot) => {
spot.set(res[*idx].clone());
spot.insert(res[*idx].clone());
*idx += 1;
}
Occupied(..) => {