Skip to content

Commit 8abd550

Browse files
author
Ariel Ben-Yehuda
committed
---
yaml --- r: 114581 b: refs/heads/master c: 2e8bc99 h: refs/heads/master i: 114579: 1d011e0 v: v3
1 parent cf7624f commit 8abd550

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: def2232595a68897cbaa1d3dc0820da5fe56f429
2+
refs/heads/master: 2e8bc9924c096cb8f889d3f46ecce7ebe622b964
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/src/liballoc/arc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ impl<T: Send + Share + Clone> Arc<T> {
160160
// reference count is guaranteed to be 1 at this point, and we required
161161
// the Arc itself to be `mut`, so we're returning the only possible
162162
// reference to the inner data.
163-
unsafe { mem::transmute::<&_, &mut _>(self.deref()) }
163+
let inner = unsafe { &mut *self._ptr };
164+
&mut inner.data
164165
}
165166
}
166167

0 commit comments

Comments
 (0)