coverage: Always error on #[coverage(..)]
in unexpected places
This upgrades some warnings to errors, and also catches cases where the attribute was silently ignored.
This commit is contained in:
parent
a000fa8b54
commit
b7c057c9b2
3 changed files with 10 additions and 63 deletions
|
@ -103,18 +103,9 @@ passes_continue_labeled_block =
|
|||
.label = labeled blocks cannot be `continue`'d
|
||||
.block_label = labeled block the `continue` points to
|
||||
|
||||
passes_coverage_fn_defn =
|
||||
`#[coverage]` may only be applied to function definitions
|
||||
|
||||
passes_coverage_ignored_function_prototype =
|
||||
`#[coverage]` is ignored on function prototypes
|
||||
|
||||
passes_coverage_not_coverable =
|
||||
`#[coverage]` must be applied to coverable code
|
||||
.label = not coverable code
|
||||
|
||||
passes_coverage_propagate =
|
||||
`#[coverage]` does not propagate into items and must be applied to the contained functions directly
|
||||
passes_coverage_not_fn_or_closure =
|
||||
attribute should be applied to a function definition or closure
|
||||
.label = not a function or closure
|
||||
|
||||
passes_dead_codes =
|
||||
{ $multiple ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue