diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-07 14:35:18 -0500 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-16 10:40:25 -0500 |
| commit | dfb7a811ae0cb8c98ceed93ecc3573555cca03db (patch) | |
| tree | 08c6e3fe2ad4bfcfcb4c9454185e90d65f9703c8 /src/libsyntax | |
| parent | 64efd2650c22ab508caf191b6f9055463a7a74c4 (diff) | |
| download | rust-dfb7a811ae0cb8c98ceed93ecc3573555cca03db.tar.gz rust-dfb7a811ae0cb8c98ceed93ecc3573555cca03db.zip | |
fallout from deprecating find_copy and get_copy
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 5842afe11ce..3cb861aac20 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -94,7 +94,7 @@ fn lookup_cur_matched_by_matched(r: &TtReader, start: Rc<NamedMatch>) -> Rc<Name } fn lookup_cur_matched(r: &TtReader, name: Ident) -> Option<Rc<NamedMatch>> { - let matched_opt = r.interpolations.find_copy(&name); + let matched_opt = r.interpolations.get(&name).cloned(); matched_opt.map(|s| lookup_cur_matched_by_matched(r, s)) } |
