Lint against having both #[unstable_feature_bound] and #[stable] on the same item

This commit is contained in:
tiif
2025-07-14 13:37:51 +00:00
parent ab29256b96
commit dd067a689a
5 changed files with 45 additions and 0 deletions

View File

@@ -503,6 +503,14 @@ pub(crate) struct UnrecognizedReprHint {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(attr_parsing_unstable_feature_bound_incompatible_stability)]
#[help]
pub(crate) struct UnstableFeatureBoundIncompatibleStability {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(attr_parsing_naked_functions_incompatible_attribute, code = E0736)]
pub(crate) struct NakedFunctionIncompatibleAttribute {