about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-15 11:31:03 +0000
committerbors <bors@rust-lang.org>2020-12-15 11:31:03 +0000
commit99baddb57c0a950c1af8d125dc470894ddf052a7 (patch)
tree0167f584943b95073727c0c1fa4ab84aebde1e35 /compiler/rustc_llvm/llvm-wrapper
parente99a89c7c0b6865a680a2d6169847ec8acc001d3 (diff)
parent0bb82c4a059934f78a67ff0ff9e4517171ad1dab (diff)
downloadrust-99baddb57c0a950c1af8d125dc470894ddf052a7.tar.gz
rust-99baddb57c0a950c1af8d125dc470894ddf052a7.zip
Auto merge of #78068 - RalfJung:union-safe-assign, r=nikomatsakis
consider assignments of union field of ManuallyDrop type safe

Assigning to `Copy` union fields is safe because that assignment will never drop anything. However, with https://github.com/rust-lang/rust/pull/77547, unions may also have `ManuallyDrop` fields, and their assignments are currently still unsafe. That seems unnecessary though, as assigning `ManuallyDrop` does not drop anything either, and is thus safe even for union fields.

I assume this will at least require FCP.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions