21.8 C
Paris
Friday, April 4, 2025

Rust language provides trait upcasting



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

The compiler in Rust 1.86, in the meantime, now will insert debug assertions {that a} pointer will not be null upon non-zero-sized reads and writes, and in addition when the pointer is reborrowed right into a reference, in accordance with the Rust crew. Rust 1.86 additionally stabilizes the target_feature_11 characteristic, 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 (through the missing_abi lint).

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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

error: Content is protected !!