Rust is a general-purpose programming language which emphasizes performance, type safety, concurrency, and memory safety.
Update Sep 10, 2020 tracked by Updatify
Rust 1.46.0
Language
-
if,match, andloopexpressions can now be used in const functions. -
Additionally you are now also able to coerce and cast to slices (
&[T]) in const functions. -
The
#[track_caller]attribute can now be added to functions to use the function’s caller’s location information for panic messages. -
Recursively indexing into tuples no longer needs parentheses. E.g.
x.0.0over(x.0).0. -
mem::transmutecan now be used in statics and constants. Note You currently can’t usemem::transmutein constant functions.
Compiler
-
You can now use the
cdylibtarget on Apple iOS and tvOS platforms. -
Enabled static “Position Independent Executables” by default for
x86_64-unknown-linux-musl.