diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-05 19:41:45 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-05 19:41:45 -0800 |
| commit | 801f3225b24a796402b83f660f80e62ac504befe (patch) | |
| tree | d569b736ba6493b17c29ccc25823956cf8e1732c /src/libsyntax/ext/tt/macro_rules.rs | |
| parent | a4250a96fdf61142a9c8dbb6d37ae8435c99e396 (diff) | |
| download | rust-801f3225b24a796402b83f660f80e62ac504befe.tar.gz rust-801f3225b24a796402b83f660f80e62ac504befe.zip | |
oldmap: use &K instead of K in find and get
This reverts commit a4250a96fdf61142a9c8dbb6d37ae8435c99e396. This is not the cause of the nonexhaustive-match failure.
Diffstat (limited to 'src/libsyntax/ext/tt/macro_rules.rs')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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") }; |
