looking at these two lines of code is very frightening.
Is there a specific reason to use RWLock instead of RwLock? I would open a PR with either using RwLock or a comment describing why RWLock is needed here.
@rustbot modify labels: T-libs
Just another thought, isn't the naming itself a bit dangerous? RW vs. Rw seems like an easy typo to make. Perhaps renaming RW as RawRw could help?
RwLock can't be statically initialized, or at least couldn't be when that code was written. That'll change once the parking_lot PR lands.
Most helpful comment
RwLockcan't be statically initialized, or at least couldn't be when that code was written. That'll change once the parking_lot PR lands.