about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-17 09:26:57 +0000
committerbors <bors@rust-lang.org>2014-11-17 09:26:57 +0000
commitedfb83c9e28df2a8f326d688f3d5b1f6faa72db8 (patch)
treee9d163e9d31669e9b1233a1997ebc0fd148b76e2 /src/libsyntax
parent803aacd5aef78f90fdd06ae7653fc20eec224992 (diff)
parentdfb7a811ae0cb8c98ceed93ecc3573555cca03db (diff)
downloadrust-edfb83c9e28df2a8f326d688f3d5b1f6faa72db8.tar.gz
rust-edfb83c9e28df2a8f326d688f3d5b1f6faa72db8.zip
auto merge of #18914 : Gankro/rust/cloned, r=aturon
Part of #18424. r? @aturon 

[breaking-change]
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/tt/transcribe.rs2
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))
 }