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/util | |
| 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/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index ba154a8d892..969c7cec87c 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -106,13 +106,13 @@ impl TotalOrd for RcStr { impl Str for RcStr { #[inline] fn as_slice<'a>(&'a self) -> &'a str { - let s: &'a str = *self.string.borrow(); + let s: &'a str = *self.string.deref(); s } #[inline] fn into_owned(self) -> ~str { - self.string.borrow().to_owned() + self.string.deref().to_owned() } } |
