diff options
| author | ltdk <usr@ltdk.xyz> | 2022-06-05 22:24:14 -0400 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2022-06-05 22:24:14 -0400 |
| commit | 9473e2195518d64074e8e3f85d64c82fe285915c (patch) | |
| tree | 84d79e6c771a396ed40eaac37397e1406778c1b6 /compiler/rustc_error_codes | |
| parent | 5fabdb8f7fd0c2c48d47ce08126d27ade5beefd9 (diff) | |
Changes from code review
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0788.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0788.md b/compiler/rustc_error_codes/src/error_codes/E0788.md index 68bd53cea6f..d26f9b59455 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0788.md +++ b/compiler/rustc_error_codes/src/error_codes/E0788.md @@ -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: |
