-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arc requires T: Sized #85
Comments
I believe what is actually needed here is |
Closing as there is no immediate action to take. |
Can't loom store a I've just tried to test it and this seems to work. At least |
Not sure — @carllerche would need to chime in there. |
Should I make a draft PR? |
@WaffleLapkin I think that'd be helpful, and then we can always iterate from there! |
For the record: I've created #226 a while ago with the intent to fix it. I think works and even allows a type like |
Though since #226 makes |
std::sync::Arc<T>
does not requireT: 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 theT
to the end ofloom::Arc
for this to work, though that also breaks the layout needed according toloom::Arc
's comment:https://github.com/carllerche/loom/blob/339dd48f57d3b9b786e44db4914d08882d7659bf/src/sync/arc.rs#L11-L17
The text was updated successfully, but these errors were encountered: