-
Notifications
You must be signed in to change notification settings - Fork 13.3k
HashMap<K,V> is always Send/Sync #21763
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
Comments
Ah, yeah. RawTable contains only a |
Or we need a more rich marker type. |
rust-lang/rfcs#738 may be a good replacement for the current system as it could contain a marker of Should other collections with an unsafe representation also be audited? |
I can say confidently this is the only problem case in collections. It's the only collection that uses basically a |
ok cool, good to know! |
This compiles, despite Rc : !Send. I'm guessing this is because RawTable only uses K and V with marker::CovariantType, and I guess that isn't enough for the negative-impl to propagate. I haven't checked which other collections might be unsafe.
The text was updated successfully, but these errors were encountered: