[breaking change] Update entry API as part of RFC 509.
This commit is contained in:
parent
260e46115b
commit
400c3a0ddc
20 changed files with 170 additions and 135 deletions
|
@ -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(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue