1
Fork 0

Changes from code review

This commit is contained in:
ltdk 2022-06-05 22:24:14 -04:00
parent 5fabdb8f7f
commit 9473e21955
4 changed files with 56 additions and 23 deletions

View file

@ -1,5 +1,10 @@
A `#[no_coverage]` attribute was incorrectly placed on something that couldn't
be covered.
A `#[no_coverage]` attribute was applied to something which does not show up
in code coverage, or is too granular to be excluded from the coverage report.
For now, this attribute can only be applied to function, method, and closure
definitions. In the future, it may be added to statements, blocks, and
expressions, and for the time being, using this attribute in those places
will just emit an `unused_attributes` lint instead of this error.
Example of erroneous code: