File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ fn main() {
54
54
55
55
### Safe assignments to ` ManuallyDrop<T> ` union fields
56
56
57
- Rust 1.49 made it possible to add ` ManuallyDrop<T> ` fields to a ` union `
58
- as part of allowing ` Drop ` for unions at all; however , unions don't know
59
- which variant is valid ( they don't drop any old value on assignment), so
60
- safe Rust has limited this to ` Copy ` types only, which never ` Drop ` . Of
61
- course, that's also true of ` ManuallyDrop ` , so now Rust 1.50 allows safe
62
- assignments to these fields as well.
57
+ Rust 1.49 made it possible to add ` ManuallyDrop<T> ` fields to a ` union ` as part
58
+ of allowing ` Drop ` for unions at all. However , unions don't drop old values
59
+ when a field is assigned, since they don't know which variant was formerly
60
+ valid, so safe Rust has limited this to ` Copy ` types only, which never ` Drop ` .
61
+ Of course, ` ManuallyDrop<T> ` also doesn't need to ` Drop ` , so now Rust 1.50
62
+ allows safe assignments to these fields as well.
63
63
64
64
### A niche for ` File ` on Unix platforms
65
65
You can’t perform that action at this time.
0 commit comments