rust/library/core
Matthias Krüger 750e902a75
Rollup merge of #146675 - Jules-Bertholet:sync-nonexclusive, r=Mark-Simulacrum
Allow shared access to `Exclusive<T>` when `T: Sync`

Addresses libs-api request in https://github.com/rust-lang/rust/issues/98407#issuecomment-3299348713.

Adds the following trait impls to `Exclusive<T>`, all bounded on `T: Sync`:

- `AsRef<T>`
- `Clone`
- `Copy`
- `PartialEq`
- `StructuralPartialEq`
- `Eq`
- `Hash`
- `PartialOrd`
- `Ord`
- `Fn`

``@rustbot`` label T-libs-api
2025-09-28 18:13:12 +02:00
..
src Rollup merge of #146675 - Jules-Bertholet:sync-nonexclusive, r=Mark-Simulacrum 2025-09-28 18:13:12 +02:00
Cargo.toml Add panic=immediate-abort 2025-09-21 13:12:18 -04:00