Rust 1.88.0
Rust 1.88.0 stabilisiert let-Ketten in der Edition 2024, nackte Funktionen und boolesche Literale in cfg-Prädikaten, macht die Nutzung von #[bench] ohne spezielles Feature zu einem harten Fehler und fügt einen neuen Lint für gefährliche implizite Autoreferenzen hinzu.
<a id="1.88.0-Language"></a>
Language
- Stabilize
#![feature(let_chains)]in the 2024 edition. This feature allows&&-chainingletstatements insideifandwhile, allowing intermixture with boolean expressions. The patterns inside theletsub-expressions can be irrefutable or refutable. - Stabilize
#![feature(naked_functions)]. Naked functions allow writing functions with no compiler-generated epilogue and prologue, allowing full control over the generated assembly for a particular function. - Stabilize
#![feature(cfg_boolean_literals)]. This allows using boolean literals ascfgpredicates, e.g.#[cfg(true)]and#[cfg(false)]. - Fully de-stabilize the
#[bench]attribute. Usage of#[bench]without#![feature(custom_test_frameworks)]already triggered a deny-by-default future-incompatibility lint since Rust 1.77, but will now become a hard error. - Add warn-by-default
dangerous_implicit_autorefslint against implicit autoref of raw pointer dereference. The lint will be bumped to deny-by-default in the next version of Rust. …