We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def2232 commit 2e8bc99Copy full SHA for 2e8bc99
src/liballoc/arc.rs
@@ -160,7 +160,8 @@ impl<T: Send + Share + Clone> Arc<T> {
160
// reference count is guaranteed to be 1 at this point, and we required
161
// the Arc itself to be `mut`, so we're returning the only possible
162
// reference to the inner data.
163
- unsafe { mem::transmute::<&_, &mut _>(self.deref()) }
+ let inner = unsafe { &mut *self._ptr };
164
+ &mut inner.data
165
}
166
167
0 commit comments