Implement `RefUnwindSafe` for `Rc<T>` by inquisitivecrystal · Pull Request...
source link: https://github.com/rust-lang/rust/pull/87467
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This PR implements RefUnwindSafe
for Rc<T>
, where T: RefUnwindSafe
.
This impl was omitted by an apparent oversight. Rc<T>
already implements UnwindSafe
. Arc<T>
implements both UnwindSafe
and RefUnwindSafe
. There is no reason why an &Rc<T>
is any less unwind safe than a Rc<T>
or an &Arc<T>
, so this should be safe to add.
Resolves #45924.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK