libstd/rustdoc: Document potential panics in RefCell where .borrow()
is used implicitly in impls
#47400
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
There are a bunch of implicit uses of
.borrow()
, which may panic if theRefCell
is already mutably borrowed, inside impls ofRefCell
:PartialEq
Clone
PartialOrd
Ord
The potential panics should be noted with a header:
I'll file the PR fixing this if we agree that this is a problem in need of fixing.
The text was updated successfully, but these errors were encountered: