about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-06-27 02:06:18 -0400
committerGitHub <noreply@github.com>2024-06-27 02:06:18 -0400
commit70b69a2384f6b99eeaf6e24d1e558fce8752a654 (patch)
tree82a5cf08191274e290098b8815c46c4833624eb8 /compiler/rustc_codegen_llvm/src/errors.rs
parent5ec93b8e366ce74d5143a2f558f0d8bf8a34c544 (diff)
parent7f37f8af5f067e0f4f8d14adb7d76f013e3c4118 (diff)
downloadrust-70b69a2384f6b99eeaf6e24d1e558fce8752a654.tar.gz
rust-70b69a2384f6b99eeaf6e24d1e558fce8752a654.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions