Changes from code review
This commit is contained in:
parent
5fabdb8f7f
commit
9473e21955
4 changed files with 56 additions and 23 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue