commit | 008ab3387b0057aa22cde00c544d05e31ab79807 | [log] [tgz] |
---|---|---|
author | Matthias Krüger <matthias.krueger@famsik.de> | Mon Mar 04 22:16:31 2024 +0100 |
committer | GitHub <noreply@github.com> | Mon Mar 04 22:16:31 2024 +0100 |
tree | f98b8abc82a7a5309c6366738dcd797e7c83ef3d | |
parent | e7bb22421959e2eda73361c26fe90f7fa5131bae [diff] | |
parent | c45f0a977abc021ad3454930e2728d815def4938 [diff] |
Rollup merge of #121732 - Voultapher:improve-assert_matches-documentation, r=cuviper Improve assert_matches! documentation This new documentation tries to limit the impact of the conceptual pitfall, that the if guard relaxes the constraint, when really it tightens it. This is achieved by changing the text and examples. The previous documentation also chose a rather weird and non-representative example for the if guard, that made it needlessly complicated to understand.
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Note: this README is for users rather than contributors. If you wish to contribute to the compiler, you should read CONTRIBUTING.md instead.
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the media guide.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.