Announcing Rust 1.20

The Rust team is happy to announce the latest version of Rust, 1.20.0. Rust is a systems programming language focused on safety, speed, and concurrency.

Associated constants
Associated constants were proposed in RFC 195 (github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md), almost exactly three years ago. It’s been quite a while for this feature! That RFC contained all associated items, not just constants, and so some of them, such as associated types, were implemented faster than others. In general, we’ve been doing a lot of internal work for constant evaluation, to increase Rust’s capabilities for compile-time metaprogramming. Expect more on this front in the future.
struct Struct;impl Struct { const ID: u32 = 0;}fn main() { println!("the ID of Struct is: {}", Struct::ID);}
trait Trait { const ID: u32;}struct Struct;impl Trait for Struct { const ID: u32 = 5;}fn main() { println!("{}", Struct::ID);}

>We upgraded to Unicode 10.0.0. (github.com/rust-lang/rust/pull/42999)
>Enabled wasm LLVM backend WASM can now be built with the wasm32-experimental-emscripten target. (github.com/rust-lang/rust/pull/42571)
>We are shipping mitigations against Stack Clash (access.redhat.com/security/vulnerabilities/stackguard) in this release, notably, stack probes (github.com/rust-lang/rust/pull/42816), and skipping the main thread’s manual stack guard on Linux (github.com/rust-lang/rust/pull/43072). You don’t need to do anything to get these protections other than using Rust 1.20.
>compile_error! (github.com/rust-lang/rfcs/blob/master/text/1695-add-error-macro.md)
>Expansion in rustc has been sped up 29x. (github.com/rust-lang/rust/pull/42533)


blog.rust-lang.org/2017/08/31/Rust-1.20.html
github.com/rust-lang/rust/blob/master/RELEASES.md#version-1200-2017-08-31

jesus christ rust has horrible syntax

kys

samefag

no. stop shitting up my thread

you're thread was a shit from the beginning steve

kys. im just larping a steve

no, steve. we know your tricks. we're onto you.

Rust is a joke.

Rust is a big fat mistake.

Cuck CoC

rust my anus

All me.

same

How's those programming by contract features coming along, Steve? Oh wait! YOU DON'T HAVE ANY.
kys you lying shill

Where the fuck is a containment thread for this shit when you need one?

you're in it

Can we have a Klabnik vs. Fagioli battle?

Best meme language, 2017.

...

...

...

congrats on the release

...

bump

Use this thread: