Announcing Rust 1.88.0

84 points by repnop


mjb

Love to see let chains stabilize. The weirdness of if let and while let were (while mostly aesthetic) were some of my least favorite Rust things.

The rest of this stuff seems nice, incremental and tasteful.

Only (very minor) quibble is that extract_if taking &mut V rather than &V could lead to some very weird side-effect-based code.

junon

Let chains are only available in the Rust 2024 edition, as this feature depends on the if let temporary scope change for more consistent drop order.

Earlier efforts tried to work with all editions, but some difficult edge cases threatened the integrity of the implementation. 2024 made it feasible, so please upgrade your crate’s edition if you’d like to use this feature!

This very cleanly illustrates why I love Rust’s approach to versioning.

kzdnk

Really happy to see cargo automatic cache cleaning!