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:
committed by
许杰友 Jieyou Xu (Joe)
parent
fd8d6fbe50
commit
ed010dd32c
@@ -636,6 +636,13 @@ pub struct Confusables {
|
||||
pub attr_span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(passes_coroutine_on_non_closure)]
|
||||
pub struct CoroutineOnNonClosure {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(passes_empty_confusables)]
|
||||
pub(crate) struct EmptyConfusables {
|
||||
|
||||
Reference in New Issue
Block a user