tokio-rs / loom

Concurrency permutation testing tool for Rust.
MIT License
2.09k stars 110 forks source link

Arc doesn't allow storing unsized (trait objects) #147

Closed seanmonstar closed 2 years ago

seanmonstar commented 4 years ago

The loom::sync::Arc type needs to add T: ?Sized to allow 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.

carllerche commented 4 years ago

But we don't get compiler coersion. So there is no clear way to do it. We could add additional fns.

taiki-e commented 2 years ago

Fixed in #226