diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-02-28 00:02:27 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-03-13 14:21:45 +0200 |
| commit | cdc18b96d6aa38c22b4fa9715c974ef986ad250d (patch) | |
| tree | 9a0fae0250cb35e67a2f966ed6e17eb0a7afaef1 /src/libsyntax/ext | |
| parent | 12b2607572d6233a1d4b4f7592573e49b505771e (diff) | |
| download | rust-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.rs | 4 |
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()) }) } |
