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

adjust for current reality wrt. wide raw pointers #162

Merged
merged 10 commits into from
Sep 12, 2019
Prev Previous commit
Next Next commit
Oxford
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information
RalfJung and Centril authored Aug 25, 2019
commit 61b001f52ce2b375c6a7e65231e386f2ebde1a5b
2 changes: 1 addition & 1 deletion src/what-unsafe-does.md
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ language cares about is preventing the following things:
* a `char` outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF]
* a `!` (all values are invalid for this type)
* a reference/`Box` that is dangling, unaligned, or points to an invalid value.
* a wide reference, `Box` or raw pointer that has invalid metadata:
* a wide reference, `Box`, or raw pointer that has invalid metadata:
* slice metadata is invalid if the slice has a total size larger than
`isize::MAX` bytes in memory
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for