Rust language adds trait upcasting
Briefly

Rust 1.86 introduces significant advancements, including mutable indexing for HashMaps and slices through a new get_disjoint_mut helper, ensuring safe simultaneous mutations as enforced by the borrow checker. Additionally, the compiler will now insert debug assertions for non-zero-sized reads and writes to enhance safety. The stabilizing of the target_feature_11 allows for the marking of safe functions with the #[target_feature] attribute. Furthermore, developers will be cautioned with warnings when omitting ABI in extern blocks, and the tier-2 target i586-pc-windows-msvc will be deprecated in version 1.87.0.
In Rust 1.86, the HashMap and slices now support indexing multiple elements mutably, enhancing the functionality of these data structures and improving concurrent programming capabilities.
The Rust 1.86 compiler introduces debug assertions for non-zero-sized reads and writes, as well as when pointers are reborrowed into references to ensure safety.
New in Rust 1.86 is the get_disjoint_mut helper function which safely allows retrieval of mutable references to multiple elements, adhering to the borrow checker's rules.
Rust 1.86 stabilizes the target_feature_11 feature, enabling safe functions to utilize the #[target_feature] attribute, thereby extending the usability of defined functions.
Read at InfoWorld
[
|
]