Announcing Rust 1.96.0

59 points by theelx


itamarst

assert_matches is a thing I keep wanting and then having to decide if I want a whole new crate or to reimplement it myself. So it's nice to have in the standard library.

bitshift

I like the steps to make ranges into Copy types. I've run into this once or twice where I was surprised I had to clone a range, and it fits my intuition better that 12..34 ought to be a small, copyable piece of data.

The only thing that worries me is that with multiple types of the same name, VS Code might import the wrong type the next time it adds a use declaration for me.

A Rust version in the near future will also add [...] core::range::legacy::* as the new home for the current ranges. Range syntax like 0..1 still produces the legacy types for now, but will be updated to core::range types in a future edition.

Rust's edition system is seeming like a pretty good idea!