Rust language provides trait upcasting

Learn extra at:

Additionally in Rust 1.86, HashMap and slices now help indexing a number of parts mutably. The borrow checker prevents simultaneous utilization of references obtained from repeated calls to get_mut strategies, the crew mentioned. To soundly help this sample, the usual library now gives a get_disjoint_mut helper on slices and HashMapto retrieve mutable references to a number of parts concurrently.

The compiler in Rust 1.86, in the meantime, now will insert debug assertions {that a} pointer just isn’t null upon non-zero-sized reads and writes, and likewise when the pointer is reborrowed right into a reference, based on the Rust crew. Rust 1.86 additionally stabilizes the target_feature_11 function, permitting protected features to be marked with the #[target_feature] attribute. Moreover in Rust 1.86, omitting the ABI in extern blocks and features (e.g. extern {} and extern fn)  now ends in a warning (by way of the missing_abi lint).

The Rust crew additionally mentioned the tier-2 goal i586-pc-windows-msvc shall be eliminated within the subsequent model of Rust, Rust 1.87.0.

Turn leads into sales with free email marketing tools (en)

Leave a reply

Please enter your comment!
Please enter your name here