]> git.lizzy.rs Git - rust.git/commit
Auto merge of #103881 - ChayimFriedman2:patch-2, r=compiler-errors
authorbors <bors@rust-lang.org>
Wed, 28 Dec 2022 06:56:02 +0000 (06:56 +0000)
committerbors <bors@rust-lang.org>
Wed, 28 Dec 2022 06:56:02 +0000 (06:56 +0000)
commit9b889e53e78a186a861a8407c225f9d8e0d436f5
tree1e34d012373b8c56c7c2b1142a4ce44c9e7b87de
parent6a4624d73b34153811f7642b89bd396306aa7843
parentd2eb2bb8548e97e29abfeab1825c006c5ba02efc
Auto merge of #103881 - ChayimFriedman2:patch-2, r=compiler-errors

Clarify docs of `RefCell`

Comparison operators only panic if the `RefCell` is mutably borrowed, and `RefCell::swap()` can also panic if swapping a `RefCell` with itself.
library/core/src/cell.rs