Port #[fundamental] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 01:58:53 +03:00
parent 12f6487d79
commit 507ebced16
9 changed files with 29 additions and 12 deletions

View File

@@ -272,6 +272,9 @@ pub enum AttributeKind {
/// Represents `#[ffi_pure]`.
FfiPure(Span),
/// Represents `#[fundamental]`.
Fundamental,
/// Represents `#[ignore]`
Ignore {
span: Span,

View File

@@ -34,6 +34,7 @@ impl AttributeKind {
ExportStable => No,
FfiConst(..) => No,
FfiPure(..) => No,
Fundamental { .. } => Yes,
Ignore { .. } => No,
Inline(..) => No,
LinkName { .. } => Yes,