rust/library/std
Matthias Krüger 8d6356b8d8
Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35
Stabilize `rwlock_downgrade` library feature

Tracking Issue: https://github.com/rust-lang/rust/issues/128203

Method to be stabilized:

```rust
impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
    pub fn downgrade(s: Self) -> RwLockReadGuard<'a, T> {}
}
```

~~I would like to point out that my documentation comment is longer than ideal, but at the same time I don't really know how else to show why `downgrade` is actually necessary (instead of just unlocking and relocking). If anyone has ideas for making this more concise that would be great!~~ I have made the documentation a bit more clear.

Stabilization report: https://github.com/rust-lang/rust/issues/128203#issuecomment-3016682463
2025-10-15 23:41:00 +02:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35 2025-10-15 23:41:00 +02:00
tests Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35 2025-10-15 23:41:00 +02:00
build.rs std: add support for armv7a-vex-v5 target 2025-09-24 12:10:15 -05:00
Cargo.toml std: improve handling of timed condition variable waits on macOS 2025-10-14 11:57:50 +02:00