diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-15 15:40:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-15 15:40:03 +0100 |
| commit | 83aad6b9a86e6331620d8ecb496ca2d62e887c7c (patch) | |
| tree | 0036f8e023f4d4d00be56c9cf4833d2d2e5e31bb /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 5a72ecf2c5c97933cecce91cb58d104da8120624 (diff) | |
| parent | 51b93966240acffdbe3fbb898bb647a03b146e09 (diff) | |
| download | rust-83aad6b9a86e6331620d8ecb496ca2d62e887c7c.tar.gz rust-83aad6b9a86e6331620d8ecb496ca2d62e887c7c.zip | |
Rollup merge of #69528 - HeroicKatora:finalize-ref-cell, r=dtolnay
Add undo_leak to reset RefCell borrow state This method is complementary for the feature cell_leak added in an earlier PR. It allows *safely* reverting the effects of leaking a borrow guard by statically proving that such a guard could not longer exist. This was not added to the existing `get_mut` out of concern of impacting the complexity of the otherwise pure pointer cast and because the name `get_mut` poorly communicates the intent of resetting remaining borrows. This is a follow-up to #68712 and uses the same tracking issue, #69099, as these methods deal with the same mechanism and the idea came up [in a review comment](https://github.com/rust-lang/rust/pull/68712#discussion_r384670041). @dtolnay who reviewed the prior PR. cc @RalfJung
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
