Skip to content

Commit

Permalink
Add a comment about no_coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Jul 29, 2024
1 parent e9a108c commit c0db80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/source_analysis/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ pub(crate) fn check_cfg_attr(attr: &Meta) -> bool {
let mut ignore_span = false;
let id = attr.path();

// no coverage is now deprecated in the compiler, so in future we can remove this just to
// minimise some of this code
if id.is_ident("no_coverage") {
ignore_span = true;
} else if id.is_ident("coverage") {
Expand Down

0 comments on commit c0db80c

Please sign in to comment.