Announcing Rust 1.97.0

57 points by imadij


lake

With Rust 1.97, Cargo controls how warnings interact with build success: either silencing them (via allow level), rendering without failing (default, warn), or denying them (via deny).

[...]

For example, if warnings are adding unwanted noise while working through fixing errors after a refactor, you can run CARGO_BUILD_WARNINGS=allow cargo check, temporarily silencing them.

In CI, jobs can instead set CARGO_BUILD_WARNINGS=deny to deny warnings. This can be combined with --keep-going to collect all errors and warnings rather than stopping on the first failing package.

This is a great new feature!

skade

You may want to hold off upgrading, there seems to be a miscompilation bug.

https://github.com/rust-lang/rust/issues/159035

gignico

Cool! A question: Is there anyone here that can summarise the progress of the implementation of pattern types?

deivid

Linker output no longer hidden by default

yessssssssssssssss

junon

Unfortunately the never type didn't get stabilized this time around. Hopefully next release!