Opened 6 weeks ago

Closed 5 weeks ago

#20209 closed enhancement (fixed)

rustc-1.80.1

Reported by: Bruce Dubbs Owned by: Xi Ruoyao
Priority: normal Milestone: 12.2
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New point version.

Change History (4)

comment:1 by Xi Ruoyao, 6 weeks ago

Rust 1.80.1 fixes two regressions that were recently reported.

Miscompilation when comparing floats

In addition to the existing optimizations performed by LLVM, rustc is growing its own set of optimizations. Rust 1.78.0 added a new one, implementing "jump threading" (merging together two adjacent branches that perform the same comparison).

The optimization was also enabled on branches checking for floating point equality, but it didn't implement the special rules needed for floats comparison (NaN != NaN and 0.0 == -0.0). This caused the optimization to miscompile code performing those checks.

Rust 1.80.1 addresses the problem by preventing the optimization from being applied to float comparisons, while retaining the optimization on other supported types.

False positives in the dead_code lint

Rust 1.80.0 contained refactorings to the dead_code lint. We received multiple reports that the new lint implementation produces false positives, so we are reverting the changes in Rust 1.80.1. We'll continue to experiment on how to improve the accuracy of dead_code in future releases.

comment:2 by Xi Ruoyao, 6 weeks ago

Owner: changed from blfs-book to Xi Ruoyao
Status: newassigned
Summary: rustc-1.80,1rustc-1.80.1

comment:3 by Xi Ruoyao, 6 weeks ago

Fixed r12.1-1430-g8213da3ac0. I've not done a full rebuild of Mozilla etc because it's very unlikely such a patch release could break things.

comment:4 by Xi Ruoyao, 5 weeks ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.