Update Sep 22, 2022 tracked by Updatify
Rust 1.64.0
Language
- Unions with mutable references or tuples of allowed types are now allowed
-
It is now considered valid to deallocate memory pointed to by a shared reference
&Tif every byte inTis inside anUnsafeCell -
Unused tuple struct fields are now warned against in an allow-by-default lint,
unused_tuple_struct_fields, similar to the existing warning for unused struct fields. This lint will become warn-by-default in the future.
Compiler
-
Add Nintendo Switch as tier 3 target
- Refer to Rust’s platform support page for more information on Rust’s tiered platform support.
-
Only compile
#[used]as llvm.compiler.used for ELF targets -
Add the
--diagnostic-widthcompiler flag to define the terminal width. -
Add support for link-flavor
rust-lldfor iOS, tvOS and watchOS
Libraries
- Remove restrictions on compare-exchange memory ordering.
-
You can now
write!orwriteln!into anOsString: Implementfmt::WriteforOsString