[PATCH 0/2] rust: sync: Arc: Any downcasting and assume_init()

From: Asahi Lina
Date: Fri Feb 24 2023 - 03:00:13 EST


Hi everyone,

This short series is part of the set of dependencies for the drm/asahi
Apple M1/M2 GPU driver.

The two patches simply add two missing features to the kernel Arc
implementation which are present in the Rust std version: `Any`
downcasting and `assume_init()`.

Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
---
Asahi Lina (2):
rust: sync: arc: implement Arc<dyn Any + Send + Sync>::downcast()
rust: sync: arc: Add UniqueArc<MaybeUninit<T>::assume_init()
rust/kernel/sync/arc.rs | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
---
base-commit: 83f978b63fa7ad474ca22d7e2772c5988101c9bd
change-id: 20230224-rust-arc-ba3c26ed4e6a

Thank you,
~~ Lina