This is useful for the same reason `Mutex::new` being const is (#66806). Right now `RwLock::new` allocates, which is unfortunate. The `parking_lot` crate does this: https://amanieu.github.io/parking_lot/parking_lot/struct.RwLock.html#methods
This is useful for the same reason
Mutex::newbeing const is (#66806).Right now
RwLock::newallocates, which is unfortunate.The
parking_lotcrate does this: https://amanieu.github.io/parking_lot/parking_lot/struct.RwLock.html#methods