Closed
Description
std::sync::Arc<T>
does not require T: Sized
, where as loom's version does. This means that code that uses, say, Arc<dyn Fn>
will not compile with loom, which is unfortunate. I believe we would need to move the T
to the end of loom::Arc
for this to work, though that also breaks the layout needed according to loom::Arc
's comment:
https://github.com/carllerche/loom/blob/339dd48f57d3b9b786e44db4914d08882d7659bf/src/sync/arc.rs#L11-L17
Metadata
Metadata
Assignees
Labels
No labels