mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-29 21:43:59 +00:00
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