]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #87467 - inquisitivecrystal:ref-unwind, r=dtolnay
authorbors <bors@rust-lang.org>
Thu, 4 Nov 2021 06:54:21 +0000 (06:54 +0000)
committerbors <bors@rust-lang.org>
Thu, 4 Nov 2021 06:54:21 +0000 (06:54 +0000)
commit4061c0407978a00c5c2518d898ad8406da28c106
tree2603c5786d9883b83d87158779993b8f8ab5fccf
parent0b4ac62ddaf9ee01b8aaf9dd7097f1f541d64551
parentbd194da4c2116e2461f8dfee51c12d343a62f53e
Auto merge of #87467 - inquisitivecrystal:ref-unwind, r=dtolnay

Implement `RefUnwindSafe` for `Rc<T>`

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.