|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Announcing Rust 1.58.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.58.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.58.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.58.1 stable |
| 25 | + |
| 26 | +Rust 1.58.1 fixes a race condition in the `std::fs::remove_dir_all` standard |
| 27 | +library function. This security vulnerability is tracked as [CVE-2022-21658], |
| 28 | +and you can read more about it [on the advisory we published earlier |
| 29 | +today][advisory]. We recommend all users to update their toolchain immediately |
| 30 | +and rebuild their programs with the updated compiler. |
| 31 | + |
| 32 | +Rust 1.58.1 also addresses several regressions in diagnostics and tooling introduced in Rust 1.58.0: |
| 33 | + |
| 34 | +* The `non_send_fields_in_send_ty` Clippy lint was discovered to have too many |
| 35 | + false positives and has been moved to the experimental lints group (called |
| 36 | + "nursery"). |
| 37 | +* The `useless_format` Clippy lint has been updated to handle captured |
| 38 | + identifiers in format strings, introduced in Rust 1.58.0. |
| 39 | +* A regression in Rustfmt preventing generated files from being formatted when |
| 40 | + passed through the standard input has been fixed. |
| 41 | +* An incorrect error message displayed by `rustc` in some cases has been fixed. |
| 42 | + |
| 43 | +You can find more detailed information on the specific regressions in the |
| 44 | +[release notes]. |
| 45 | + |
| 46 | +[CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658 |
| 47 | +[advisory]: https://blog.rust-lang.org/2022/01/20/cve-2022-21658.html |
| 48 | +[release notes]: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1581-2022-01-20 |
| 49 | + |
| 50 | +### Contributors to 1.58.1 |
| 51 | + |
| 52 | +Many people came together to create Rust 1.58.1. We couldn't have done it |
| 53 | +without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.58.1/) |
0 commit comments