|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Announcing Rust 1.80.1" |
| 4 | +author: The Rust Release Team |
| 5 | +release: true |
| 6 | +--- |
| 7 | + |
| 8 | +The Rust team has published a new point release of Rust, 1.80.1. Rust is a |
| 9 | +programming language that is empowering everyone to build reliable and |
| 10 | +efficient software. |
| 11 | + |
| 12 | +If you have a previous version of Rust installed via rustup, getting Rust |
| 13 | +1.80.1 is as easy as: |
| 14 | + |
| 15 | +``` |
| 16 | +rustup update stable |
| 17 | +``` |
| 18 | + |
| 19 | +If you don't have it already, you can [get `rustup`][rustup] from the |
| 20 | +appropriate page on our website. |
| 21 | + |
| 22 | +[rustup]: https://www.rust-lang.org/install.html |
| 23 | + |
| 24 | +## What's in 1.80.1 |
| 25 | + |
| 26 | +Rust 1.80.1 fixes two regressions that were recently reported. |
| 27 | + |
| 28 | +### Miscompilation when comparing floats |
| 29 | + |
| 30 | +In addition to the existing optimizations performed by LLVM, rustc is growing |
| 31 | +its own set of optimizations. Rust 1.78.0 added a new one, implementing ["jump |
| 32 | +threading"] (merging together two adjacent branches that perform the same |
| 33 | +comparison). |
| 34 | + |
| 35 | +The optimization was also enabled on branches checking for floating point |
| 36 | +equality, but it didn't implement the special rules needed for floats |
| 37 | +comparison (`NaN != NaN` and `0.0 == -0.0`). This caused the optimization to |
| 38 | +miscompile code performing those checks. |
| 39 | + |
| 40 | +Rust 1.80.1 addresses the problem by preventing the optimization from being |
| 41 | +applied to float comparisons, while retaining the optimization on other |
| 42 | +supported types. |
| 43 | + |
| 44 | +### False positives in the `dead_code` lint |
| 45 | + |
| 46 | +Rust 1.80.0 contained refactorings to the `dead_code` lint. We received |
| 47 | +multiple reports that the new lint implementation produces false positives, so |
| 48 | +we are reverting the changes in Rust 1.80.1. We'll continue to experiment on |
| 49 | +how to improve the accuracy of `dead_code` in future releases. |
| 50 | + |
| 51 | +## Contributors to 1.80.1 |
| 52 | + |
| 53 | +Many people came together to create Rust 1.80.1. We couldn't have done it |
| 54 | +without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.80.1/) |
| 55 | + |
| 56 | +["jump threading"]: https://en.wikipedia.org/wiki/Jump_threading |
0 commit comments