From cdc18b96d6aa38c22b4fa9715c974ef986ad250d Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Fri, 28 Feb 2014 00:02:27 +0200 Subject: Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc>. --- src/libsyntax/ext/mtwt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/ext') 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(op: |&SCTable| -> T) -> T { } Some(ts) => ts.clone() }; - op(table.borrow()) + op(table.deref()) }) } @@ -158,7 +158,7 @@ fn with_resolve_table_mut(op: |&mut ResolveTable| -> T) -> T { } Some(ts) => ts.clone() }; - op(table.borrow().borrow_mut().get()) + op(table.deref().borrow_mut().get()) }) } -- cgit 1.4.1-3-g733a5