Announcing Rust 1.97.0
57 points by imadij
57 points by imadij
With Rust 1.97, Cargo controls how warnings interact with build success: either silencing them (via
allowlevel), rendering without failing (default,warn), or denying them (viadeny).[...]
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=denyto 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!
You may want to hold off upgrading, there seems to be a miscompilation bug.
Interestingly it seems the miscompilation existed for ten releases but now instead of reading slightly out of bounds, it reads way out of bounds (which segfaults).
Cool! A question: Is there anyone here that can summarise the progress of the implementation of pattern types?
Linker output no longer hidden by default
yessssssssssssssss
Unfortunately the never type didn't get stabilized this time around. Hopefully next release!
One of the members of the compiler team gave a talk at RustWeek about the never type! I recommend giving it a watch, it may give you a better forecast for its stabilization: https://www.youtube.com/watch?v=3jM4cnEVrLc