HomeCloud ComputingRust 1.92 touts deny-by-default by no means kind lints

Rust 1.92 touts deny-by-default by no means kind lints



Additionally in Rust 1.92, The unused_must_use lint not warns on Outcome, UninhabitedType>, or ControlFlow. As an example, it is not going to warn on Outcome, avoiding the necessity to test for an error that can by no means occur.

Elsewhere in Rust 1.92, the discharge workforce reported, unwind tables at the moment are emitted by default even when -Cpanic=abort is specified, permitting for backtraces to work correctly. Builders could use -Cforce-unwind-tables=no to explicitly disable unwind tables if essential. It was additionally famous that the previous few releases introduced many adjustments to the way in which built-in attributes are processed within the compiler. These updates ought to enhance Rust error messages and warnings for built-in attributes, and can particularly make these diagnostics extra constant amongst the entire greater than 100 built-in Rust attributes.

Rust 1.92 additionally options stabilized APIs equivalent to Location::file_as_c_str, Rc::new_zeroed, and Arc::new_zeroed_slice.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments