Assert that all attributes are actually checked via CheckAttrVisitor
and aren't accidentally usable on completely unrelated HIR nodes
Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
This commit is contained in:
parent
fd8d6fbe50
commit
ed010dd32c
4 changed files with 79 additions and 6 deletions
|
@ -100,6 +100,10 @@ passes_continue_labeled_block =
|
|||
.label = labeled blocks cannot be `continue`'d
|
||||
.block_label = labeled block the `continue` points to
|
||||
|
||||
passes_coroutine_on_non_closure =
|
||||
attribute should be applied to closures
|
||||
.label = not a closure
|
||||
|
||||
passes_coverage_not_fn_or_closure =
|
||||
attribute should be applied to a function definition or closure
|
||||
.label = not a function or closure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue