1
Fork 0

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:
Oli Scherer 2024-07-31 15:56:09 +00:00 committed by 许杰友 Jieyou Xu (Joe)
parent fd8d6fbe50
commit ed010dd32c
4 changed files with 79 additions and 6 deletions

View file

@ -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