Rust 1.82.0

(blog.rust-lang.org)

18 points | by todsacerdoti 5 hours ago ago

3 comments

  • GolDDranks 4 hours ago

    This is a huge release in terms of user-facing core language features!

    - Precise lifetime capturing in impl Trait

    - Syntax for direct raw pointer creation

    - Unsafe blocks for declaring extern items, and declaring extern items safe

    - Fixed unsafe attributes to actually use unsafe syntax

    - Omitting empty types in pattern matching

    - Guarantees about NaN semantics and floats in const expressions

    There is even more trait system improvements coming in the upcoming releases, some features that should especially help bringing the async ecosystem forward from its "MVP slump" it has been in for years. It feels like a bunch of work that has been slowly cooking for years, is landing these days.

    However, I'm especially stoked about the &mut support in const expressions, and many accompanying APIs that then can be const-ifyed. That is going to being released next month in 1.83.0.

  • novacrazy 4 hours ago

    Quite the packed release! I've been using the beta branch for a while and omitting uninhabited branches has been nice and clean.

  • 5 hours ago
    [deleted]