-
-
Save huonw/732cccfc9b2f49ca20e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* The `Copy` trait is no longer implemented automatically. Unsafe pointers no longer implement `Sync` | |
and `Send` so types containing them don't automatically either. `Sync` and `Send` are now 'unsafe | |
traits' so one can "forcibly" implement them via `unsafe impl` if a type confirms to the requirements for them even though the internals do not (e.g. structs containing unsafe pointers like `Arc`). These changes are intended to prevent some footguns | |
and are collectively known as [opt-in built-in traits][oibit] | |
(though `Sync` and `Share` will soon become pure library types | |
unknown to the compiler). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment