Port #[ffi_pure] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 01:10:12 +03:00
parent 99a9fe1b22
commit 5d7771e50d
8 changed files with 27 additions and 9 deletions

View File

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

View File

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