Validate since
value in stable attribute
This commit is contained in:
parent
01b909174b
commit
82ed3f5e8b
3 changed files with 21 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue