|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Announcing Rust 1.45.2" |
| 4 | +author: The Rust Release Team |
| 5 | +release: true |
| 6 | +--- |
| 7 | + |
| 8 | +The Rust team is announcing a new version of Rust, 1.45.2. 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.45.2 is as easy as: |
| 14 | + |
| 15 | +```console |
| 16 | +rustup update stable |
| 17 | +``` |
| 18 | + |
| 19 | +If you don't have it already, you can [get `rustup`][install] from the |
| 20 | +appropriate page on our website, and check out the [detailed release notes for |
| 21 | +1.45.2][notes] on GitHub. |
| 22 | + |
| 23 | +[install]: https://www.rust-lang.org/install.html |
| 24 | +[notes]: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1452-2020-08-03 |
| 25 | + |
| 26 | +## What's in 1.45.2 stable |
| 27 | + |
| 28 | +1.45.2 contains two fixes, one to 1.45.1 and the other to 1.45.0. |
| 29 | + |
| 30 | +## `#[track_caller]` on trait objects |
| 31 | + |
| 32 | +Trait objects with methods annotated with `#[track_caller]` would be |
| 33 | +miscompiled. `#[track_caller]` is not yet stable on 1.45. However, the standard |
| 34 | +library makes use of this on some traits for better error messages. Trait |
| 35 | +objects of `SliceIndex`, `Index`, and `IndexMut` were affected by this bug. |
| 36 | + |
| 37 | +## Tuple patterns binding `..` to an identifier |
| 38 | + |
| 39 | +In 1.45.1, we backported a fix for [#74539], but this fix turned out to be |
| 40 | +incorrect, causing other unrelated breakage. As such, this release reverts that |
| 41 | +fix. |
| 42 | + |
| 43 | +## Contributors to 1.45.2 |
| 44 | + |
| 45 | +Many people came together to create Rust 1.45.2. We couldn't have done it |
| 46 | +without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.45.2/) |
| 47 | + |
| 48 | +[#74539]: https://github.com/rust-lang/rust/issues/74539 |
0 commit comments