Skip to content

Instantly share code, notes, and snippets.

@huonw
Forked from brson/gist:8f8ebec710183f4378ec
Last active August 29, 2015 14:12
Show Gist options
  • Save huonw/732cccfc9b2f49ca20e1 to your computer and use it in GitHub Desktop.
Save huonw/732cccfc9b2f49ca20e1 to your computer and use it in GitHub Desktop.
* 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