-
Notifications
You must be signed in to change notification settings - Fork 39
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
Generator's Send trait should have bounds #27
Comments
Thanks for this info! I will try to fix that. |
I think this fix would break some existing code for the more strict bound check. I will create a 0.7.0 release for the changes. |
We have to do more complex checks to determine if the generator is send. The implementation is not that easy. |
a new release 0.7 should be published soon |
Opened separate #58 |
Hi there, we (Rust group @sslab-gatech) are scanning crates on crates.io for potential soundness bugs. We noticed that
Generator
implementsSend
as long as the closure has a static lifetime. However, this should also probably be bounded byT: Send
, otherwise it's possible to smuggle across non-Send types across thread boundaries.Here's an example of a data race in safe Rust code through a Generator.
Output:
The text was updated successfully, but these errors were encountered: