coverage: Apply #[coverage(..)] recursively to nested functions

This commit is contained in:
Zalathar 2024-06-22 16:34:24 +10:00
parent 457fda1701
commit 3262611cc5
8 changed files with 60 additions and 156 deletions

View file

@ -572,7 +572,8 @@ rustc_queries! {
separate_provide_extern
}
/// Checks for `#[coverage(off)]` or `#[coverage(on)]`.
/// Checks for the nearest `#[coverage(off)]` or `#[coverage(on)]` on
/// this def and any enclosing defs, up to the crate root.
///
/// Returns `false` if `#[coverage(off)]` was found, or `true` if
/// either `#[coverage(on)]` or no coverage attribute was found.