You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…=Mark-Simulacrum
Mark `Arc::from_inner` / `Rc::from_inner` as unsafe
While it's an internal function, it is easy to create invalid Arc/Rcs to
a dangling pointer with it.
Fixesrust-lang#89740
…=Mark-Simulacrum
Mark `Arc::from_inner` / `Rc::from_inner` as unsafe
While it's an internal function, it is easy to create invalid Arc/Rcs to
a dangling pointer with it.
Fixesrust-lang#89740
See
rust/library/alloc/src/sync.rs
Lines 255 to 257 in 0c87288
This can be called like
without any unsafe code and results in an
Arc
to a dangling pointer, which will cause fun when trying to use it.The text was updated successfully, but these errors were encountered: