The Rust team has released version 1.86.0, introducing significant features such as trait upcasting, which allows direct coercion of trait object references to their supertraits. Previously, developers relied on workarounds with custom methods to achieve this functionality. The new version supports various pointer types and enhances code reliability, although there are warnings regarding raw pointers and potential undefined behaviors. Rust encourages users to test future releases via beta or nightly channels, strengthening community input in development.
This release includes a long awaited feature - the ability to upcast trait objects, eliminating the need for workarounds like custom upcast methods in traits.
Previously, upcasting required a workaround method in the Trait, but now references to a supertrait can be coerced directly.
Collection
[
|
...
]