diff options
| author | Dylan Ede <dylanede@googlemail.com> | 2015-01-06 16:36:30 +0000 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 11:59:26 -0800 |
| commit | 25eada15740fbe12ee2cae7fc6fe8e2c228b699d (patch) | |
| tree | bc24dedaf97ab376c4ac4f73b4c40d068c5ef84b /src/libsyntax/ext/tt | |
| parent | 6539cb417f4a7c2d9d1afce44c196578d2b67f38 (diff) | |
| download | rust-25eada15740fbe12ee2cae7fc6fe8e2c228b699d.tar.gz rust-25eada15740fbe12ee2cae7fc6fe8e2c228b699d.zip | |
[breaking change] Revert Entry behaviour to take keys by value.
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 1438d152554..88f79c504d7 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -219,7 +219,7 @@ 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.insert(res[*idx].clone()); *idx += 1; |
