about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-16 17:28:32 +0000
committerbors <bors@rust-lang.org>2021-01-16 17:28:32 +0000
commit492b83c6971c390af7a42932869502224ef55ef7 (patch)
treeb22aa973076eecca1884744222e0bbf98ee596c7 /compiler/rustc_parse/src
parent63a83c5f55801b17b77adf690db397d17c706c48 (diff)
parenta5b89a00cb2871719868cbca5af14e6cf185060a (diff)
downloadrust-492b83c6971c390af7a42932869502224ef55ef7.tar.gz
rust-492b83c6971c390af7a42932869502224ef55ef7.zip
Auto merge of #80290 - RalfJung:less-intrinsic-write, r=lcnr
implement ptr::write without dedicated intrinsic

This makes `ptr::write` more consistent with `ptr::write_unaligned`, `ptr::read`, `ptr::read_unaligned`, all of which are implemented in terms of `copy_nonoverlapping`.

This means we can also remove `move_val_init` implementations in codegen and Miri, and its special handling in the borrow checker.

Also see [this Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/ptr.3A.3Aread.20vs.20ptr.3A.3Awrite).
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions