From 8e643525d4e5bca993dada43615916c382a0645b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 3 Feb 2013 23:29:17 -0500 Subject: oldmap: use &K instead of K in find and get --- src/libsyntax/ext/tt/macro_rules.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/ext/tt/macro_rules.rs') diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 31172cbfa85..3e7a84240e4 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -59,11 +59,11 @@ pub fn add_new_extension(cx: ext_ctxt, sp: span, name: ident, arg_reader as reader, argument_gram); // Extract the arguments: - let lhses:~[@named_match] = match argument_map.get(lhs_nm) { + let lhses:~[@named_match] = match argument_map.get(&lhs_nm) { @matched_seq(s, _) => s, _ => cx.span_bug(sp, ~"wrong-structured lhs") }; - let rhses:~[@named_match] = match argument_map.get(rhs_nm) { + let rhses:~[@named_match] = match argument_map.get(&rhs_nm) { @matched_seq(s, _) => s, _ => cx.span_bug(sp, ~"wrong-structured rhs") }; -- cgit 1.4.1-3-g733a5