commit | f13cd0c8d07e0ecb03af05c83423c038194f2e4f | [log] [tgz] |
---|---|---|
author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | Sat Apr 20 21:45:36 2024 +0100 |
committer | GitHub <noreply@github.com> | Sat Apr 20 21:45:36 2024 +0100 |
tree | d69d49c3a764c9c086921ff7fe974cc53d2b2285 | |
parent | 871c3e30757203ecddc862243c9e42c242467ace [diff] | |
parent | 25b9f84413200e376fdf3f8d9b166c4e5f4c79df [diff] |
Rollup merge of #124053 - Zalathar:lazy-boolean, r=Mark-Simulacrum coverage: Branch coverage tests for lazy boolean operators The current branch coverage implementation already supports the `&&` and `||` operators (even outside of an `if` condition), as a natural consequence of how they are desugared/lowered, but we didn't have any specific tests for them. This PR adds some appropriate tests. I've also moved the existing branch coverage tests into a `coverage/branch` subdirectory, so that they don't become unwieldy as I add more branch coverage tests. ``@rustbot`` label +A-code-coverage
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrate with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
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.