Skip to content

Commit 109803f

Browse files
committed
Remove incorrect statement about raw pointers.
Fixes #21709
1 parent 08dd30d commit 109803f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/doc/trpl/unsafe.md

-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ offered by the Rust language and libraries. For example, they
9393
- are plain-old-data, that is, they don't move ownership, again unlike
9494
`Box`, hence the Rust compiler cannot protect against bugs like
9595
use-after-free;
96-
- are considered sendable (if their contents is considered sendable),
97-
so the compiler offers no assistance with ensuring their use is
98-
thread-safe; for example, one can concurrently access a `*mut i32`
99-
from two threads without synchronization.
10096
- lack any form of lifetimes, unlike `&`, and so the compiler cannot
10197
reason about dangling pointers; and
10298
- have no guarantees about aliasing or mutability other than mutation

0 commit comments

Comments
 (0)