20.8 C
New York
Friday, April 4, 2025

Rust language provides trait upcasting



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 stated. To securely help this sample, the usual library now offers 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 isn’t null upon non-zero-sized reads and writes, and in addition when the pointer is reborrowed right into a reference, in line with the Rust crew. Rust 1.86 additionally stabilizes the target_feature_11 characteristic, permitting secure 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 leads to a warning (by way of the missing_abi lint).

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



Supply hyperlink

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles