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 b4bdc07 commit 493c037Copy full SHA for 493c037
library/alloc/src/rc.rs
@@ -1195,7 +1195,7 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Rc<T> {
1195
self.dec_strong();
1196
if self.strong() == 0 {
1197
// destroy the contained object
1198
- ptr::drop_in_place(self.ptr.as_mut());
+ ptr::drop_in_place(Self::get_mut_unchecked(self));
1199
1200
// remove the implicit "strong weak" pointer now that we've
1201
// destroyed the contents.
0 commit comments