1
Fork 0

Validate since value in stable attribute

This commit is contained in:
David Tolnay 2023-10-16 12:30:32 -07:00
parent 01b909174b
commit 82ed3f5e8b
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 21 additions and 8 deletions

View file

@ -370,6 +370,13 @@ pub(crate) struct ExpectsFeatures {
pub name: String,
}
#[derive(Diagnostic)]
#[diag(attr_invalid_since)]
pub(crate) struct InvalidSince {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(attr_soft_no_args)]
pub(crate) struct SoftNoArgs {