Rollup merge of #23531 - steveklabnik:gh21709, r=alexcrichton
Fixes #21709
This commit is contained in:
commit
baf6b3a35d
1 changed files with 0 additions and 4 deletions
|
@ -93,10 +93,6 @@ offered by the Rust language and libraries. For example, they
|
||||||
- are plain-old-data, that is, they don't move ownership, again unlike
|
- are plain-old-data, that is, they don't move ownership, again unlike
|
||||||
`Box`, hence the Rust compiler cannot protect against bugs like
|
`Box`, hence the Rust compiler cannot protect against bugs like
|
||||||
use-after-free;
|
use-after-free;
|
||||||
- are considered sendable (if their contents is considered sendable),
|
|
||||||
so the compiler offers no assistance with ensuring their use is
|
|
||||||
thread-safe; for example, one can concurrently access a `*mut i32`
|
|
||||||
from two threads without synchronization.
|
|
||||||
- lack any form of lifetimes, unlike `&`, and so the compiler cannot
|
- lack any form of lifetimes, unlike `&`, and so the compiler cannot
|
||||||
reason about dangling pointers; and
|
reason about dangling pointers; and
|
||||||
- have no guarantees about aliasing or mutability other than mutation
|
- have no guarantees about aliasing or mutability other than mutation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue