Skip to content

Commit c727b57

Browse files
Update posts/2021-02-11-Rust-1.50.0.md
1 parent c8b4f8e commit c727b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2021-02-11-Rust-1.50.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ constants, you can look forward to inline `const` expressions per [RFC 2920].
8686
Rust 1.49 made it possible to add `ManuallyDrop<T>` fields to a `union` as part
8787
of allowing `Drop` for unions at all. However, unions don't drop old values
8888
when a field is assigned, since they don't know which variant was formerly
89-
valid, so safe Rust has limited this to `Copy` types only, which never `Drop`.
89+
valid, so safe Rust previously limited this to `Copy` types only, which never `Drop`.
9090
Of course, `ManuallyDrop<T>` also doesn't need to `Drop`, so now Rust 1.50
9191
allows safe assignments to these fields as well.
9292

0 commit comments

Comments
 (0)