Skip to content

Commit

Permalink
fixup! remove coercing Weak<T> to Weak<U> for now, with TODO comm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
brody4hire committed Nov 21, 2024
1 parent ed7487d commit 1fee5a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion portable-atomic-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ Or set environment variable:
RUSTFLAGS="--cfg portable_atomic_unstable_coerce_unsized" cargo ...
```
- <a name="portable-atomic-unstable-coerce-unsized"></a>**`--cfg portable_atomic_unstable_coerce_unsized`**<br> support standard coercing of `Arc<T>` to `Arc<U>` and same for weak references
- <a name="portable-atomic-unstable-coerce-unsized"></a>**`--cfg portable_atomic_unstable_coerce_unsized`**<br> support standard coercing of `Arc<T>` to `Arc<U>`
<!-- TODO: add standard coercing of `Weak<T>` to `Weak<U>` as well, with testing & documentation updates -->
This coercing requires Rust nightly to compile (with help from [unstable `CoerceUnsized` trait](https://doc.rust-lang.org/nightly/core/ops/trait.CoerceUnsized.html)).
Expand Down

0 comments on commit 1fee5a6

Please sign in to comment.