Port #[link_section] to the new attribute parsing infrastructure

This commit is contained in:
Anne Stijns
2025-06-29 15:37:54 +02:00
parent 5ca574e85b
commit 54cec0cf5a
14 changed files with 101 additions and 26 deletions

View File

@@ -452,6 +452,13 @@ pub(crate) struct NullOnExport {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(attr_parsing_null_on_link_section, code = E0648)]
pub(crate) struct NullOnLinkSection {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(attr_parsing_stability_outside_std, code = E0734)]
pub(crate) struct StabilityOutsideStd {