mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
7958166300
improve UnsafeCell docs Sometimes [questions like this come up](https://rust-lang.zulipchat.com/#narrow/stream/136281-t-lang.2Fwg-unsafe-code-guidelines/topic/UnsafeCells.20as.20raw.20pointers) because the UnsafeCell docs say "it's the only legal way to obtain aliasable data that is considered mutable". That is not entirely correct, since raw pointers also provide that option. So I propose we focus the docs on the interaction of `UnsafeCell` and *shared references* specifically, which is really where they are needed. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |