Find a file
Jacob Pratt 70b69a2384
Rollup merge of #126721 - Zalathar:nested-cov-attr, r=oli-obk
coverage: Make `#[coverage(..)]` apply recursively to nested functions

This PR makes the (currently-unstable) `#[coverage(off)]` and `#[coverage(on)]` attributes apply recursively to all nested functions/closures, instead of just the function they are directly attached to.

Those attributes can now also be applied to modules and to impl/impl-trait blocks, where they have no direct effect, but will be inherited by all enclosed functions/closures/methods that don't override the inherited value.

---

Fixes #126625.
2024-06-27 02:06:18 -04:00
.github
.reuse Add .clang-format 2024-06-26 05:56:00 +08:00
compiler Rollup merge of #126721 - Zalathar:nested-cov-attr, r=oli-obk 2024-06-27 02:06:18 -04:00
library Auto merge of #126608 - tgross35:f16-f128-library, r=Mark-Simulacrum 2024-06-26 12:06:05 +00:00
LICENSES
src Auto merge of #126692 - DianQK:nixos-patchelf, r=Nilstrieb 2024-06-27 03:31:41 +00:00
tests Rollup merge of #126721 - Zalathar:nested-cov-attr, r=oli-obk 2024-06-27 02:06:18 -04:00
.clang-format Add .clang-format 2024-06-26 05:56:00 +08:00
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.mailmap
Cargo.lock Add clang-format to the external tool check 2024-06-26 20:16:52 +08:00
Cargo.toml chore: bump version 2024-06-21 18:20:47 -05:00
CODE_OF_CONDUCT.md
config.example.toml Remove src/tools/rust-demangler 2024-06-19 20:41:34 +10:00
configure
CONTRIBUTING.md
COPYRIGHT
INSTALL.md
LICENSE-APACHE
LICENSE-MIT
README.md
RELEASES.md
rust-bors.toml
rustfmt.toml
triagebot.toml Rollup merge of #126909 - onur-ozkan:add-kobzol, r=matthiaskrgr 2024-06-24 15:51:05 -04:00
x
x.ps1
x.py

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

  • 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).

Quick Start

Read "Installation" from The Book.

Installing from Source

If you really want to install from source (though this is not recommended), see INSTALL.md.

Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

Contributing

See CONTRIBUTING.md.

License

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.

Trademark

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.