about summary refs log tree commit diff
path: root/src/libsyntax/ext/tt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-06 15:29:18 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-06 15:29:18 -0800
commite3f047c8c558624e276ca36c5854b9fdcd4e5965 (patch)
tree77e9e15864dd4466a9592fe6e26b6494e7e26c62 /src/libsyntax/ext/tt
parented61bd869300df56e52338ba1ee36038159ad196 (diff)
parent169fbed25179f223b730e1db5739e4a5a408ef31 (diff)
downloadrust-e3f047c8c558624e276ca36c5854b9fdcd4e5965.tar.gz
rust-e3f047c8c558624e276ca36c5854b9fdcd4e5965.zip
rollup merge of #20653: alexcrichton/entry-unstable
There's been some debate over the precise form that these APIs should take, and
they've undergone some changes recently, so these APIs are going to be left
unstable for now to be fleshed out during the next release cycle.
Diffstat (limited to 'src/libsyntax/ext/tt')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs2
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 581c60bdeb9..0f9d613cf13 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;