Rust code that has a std::io::Error can call the kind method to obtain a std::io::ErrorKind and match on that to handle a specific error.
Rust release date portable#
Std::io::ErrorKind is a # enum that classifies errors into portable categories, such as NotFound or WouldBlock. You can read more details on the new implementation in the pull request description. In the past, certain edge cases failed to parse, and this has now been fixed. The standard library's implementation of float parsing has been updated to use the Eisel-Lemire algorithm, which brings both speed improvements and improved correctness. Warning: `foo` (lib test) generated 1 warning (1 duplicate)įinished dev target(s) in 0.84s In 1.55, this behavior has been adjusted to deduplicate and print a report at the end of compilation: $ cargo +1.55.0 check -all-targets = note: `#` on by defaultįinished dev target(s) in 0.10s In past releases, when running cargo test, cargo check -all-targets, or similar commands which built the same Rust crate in multiple configurations, errors and warnings could show up duplicated as the rustc's were run in parallel and both showed the same warning.įor example, in 1.54.0, output like this was common: $ cargo +1.54.0 check -all-targets What's in 1.55.0 stable Cargo deduplicates compiler errors If you don't have it already, you can get rustupįrom the appropriate page on our website, and check out theĭetailed release notes for 1.55.0 on GitHub.
Rust release date update#
If you have a previous version of Rust installed via rustup, getting Rustġ.55.0 is as easy as: rustup update stable
To build reliable and efficient software. Rust is a programming language empowering everyone The Rust team is happy to announce a new version of Rust, 1.55.0.