
Rust 1.98 adds algebraic floating-point methods, buffered integer formatting, and more
Rust 1.98 has been released as the latest version of this general-purpose programming language known for its performance, type safety, concurrency, and memory safety.
Among the core updates, the floating-point types f32 and f64 gain new algebraic methods for addition, subtraction, multiplication, division, and remainder. These methods enable the compiler to apply optimizations based on the arithmetic properties of real numbers, even though floating-point limitations prevent some properties from holding precisely. The methods are non-deterministic, meaning they can produce different results depending on compiler optimizations, but never introduce undefined behavior.
Additionally, all primitive integer types now provide a format_into method that uses a specialized buffer to produce decimal string representations. This approach bypasses much of the dynamic dispatch associated with buffered formatting macros, providing efficiency improvements for developers who require fast integer to string conversions.
As part of language stability efforts, the documentation for ManuallyDrop has been revised. It now guarantees that moving a ManuallyDrop after the Box has been dropped will not produce undefined behavior, aligning with a fix first introduced in Rust 1.96. These clarifications help ensure code maintains safe behavior across language versions.

