Skip to content

Commit f180f1b

Browse files
authored
Merge pull request #1373 from rust-lang/pa-1.80.1
Add post for Rust 1.80.1
2 parents b15ffdd + 4375cea commit f180f1b

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

posts/2024-08-08-Rust-1.80.1.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

Comments
 (0)