summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-02-28 00:02:27 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-03-13 14:21:45 +0200
commitcdc18b96d6aa38c22b4fa9715c974ef986ad250d (patch)
tree9a0fae0250cb35e67a2f966ed6e17eb0a7afaef1 /src/libsyntax/ext
parent12b2607572d6233a1d4b4f7592573e49b505771e (diff)
downloadrust-cdc18b96d6aa38c22b4fa9715c974ef986ad250d.tar.gz
rust-cdc18b96d6aa38c22b4fa9715c974ef986ad250d.zip
Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/mtwt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/mtwt.rs b/src/libsyntax/ext/mtwt.rs
index b0ed215f3e1..b7fad22a7ad 100644
--- a/src/libsyntax/ext/mtwt.rs
+++ b/src/libsyntax/ext/mtwt.rs
@@ -103,7 +103,7 @@ pub fn with_sctable<T>(op: |&SCTable| -> T) -> T {
             }
             Some(ts) => ts.clone()
         };
-        op(table.borrow())
+        op(table.deref())
     })
 }
 
@@ -158,7 +158,7 @@ fn with_resolve_table_mut<T>(op: |&mut ResolveTable| -> T) -> T {
             }
             Some(ts) => ts.clone()
         };
-        op(table.borrow().borrow_mut().get())
+        op(table.deref().borrow_mut().get())
     })
 }