about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-02-22 18:26:11 +0900
committerGitHub <noreply@github.com>2021-02-22 18:26:11 +0900
commit7958166300cc92da90b95a8c13cbf8f469832485 (patch)
tree0b95d1d9cc0e5e222aaa8d8824b7088c8b86d3ea /compiler/rustc_codegen_llvm/src/back/write.rs
parent1870b3bac6f8144316f82d763230c7ad8432c0d0 (diff)
parent12608832c3b624c3d59b1371f3935804e8364127 (diff)
downloadrust-7958166300cc92da90b95a8c13cbf8f469832485.tar.gz
rust-7958166300cc92da90b95a8c13cbf8f469832485.zip
Rollup merge of #82372 - RalfJung:unsafe-cell, r=KodrAus
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions