]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
library/core/src/cell.rs

Simple merge