Closed seanmonstar closed 2 years ago
The loom::sync::Arc type needs to add T: ?Sized to allow Arc<dyn Any>.
loom::sync::Arc
T: ?Sized
Arc<dyn Any>
It's mostly just adding bounds, but it does mean into_raw and from_raw need to be carefully adjusted, since ?Sized types need to be the last field on Inner.
into_raw
from_raw
?Sized
Inner
But we don't get compiler coersion. So there is no clear way to do it. We could add additional fns.
Fixed in #226
The
loom::sync::Arc
type needs to addT: ?Sized
to allowArc<dyn Any>
.It's mostly just adding bounds, but it does mean
into_raw
andfrom_raw
need to be carefully adjusted, since?Sized
types need to be the last field onInner
.