mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
a49451c805
Eliminate mut reference UB in Drop impl for Rc<T> This changes `self.ptr.as_mut()` with `get_mut_unchecked` which does not use an intermediate reference. Arc<T> already handled this case properly. Fixes #76509