diff options
| author | bors <bors@rust-lang.org> | 2020-12-15 11:31:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-15 11:31:03 +0000 |
| commit | 99baddb57c0a950c1af8d125dc470894ddf052a7 (patch) | |
| tree | 0167f584943b95073727c0c1fa4ab84aebde1e35 /compiler/rustc_errors/src | |
| parent | e99a89c7c0b6865a680a2d6169847ec8acc001d3 (diff) | |
| parent | 0bb82c4a059934f78a67ff0ff9e4517171ad1dab (diff) | |
| download | rust-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_errors/src')
0 files changed, 0 insertions, 0 deletions
