Skip to content
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

Explicitly opt-out of auto traits #4

Open
cramertj opened this issue Jun 5, 2017 · 0 comments
Open

Explicitly opt-out of auto traits #4

cramertj opened this issue Jun 5, 2017 · 0 comments

Comments

@cramertj
Copy link
Owner

cramertj commented Jun 5, 2017

Auto traits currently leak through impl Trait. It might be nice to provide a way to explicitly state that an impl Trait does not promise Send or Sync in order to prevent users from relying on the Send or Sync ability of the leaked type.

Note: this could be achieved by a wrapper type that is !Send or !Sync, but that is inconvenient to say the least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant