syn
syn copied to clipboard
Add `Option<Token![safe]>` in ForeignItem::Static and ForeignItem::Fn
Tracking issue: https://github.com/rust-lang/rust/issues/123743 RFC: https://github.com/rust-lang/rfcs/pull/3484
unsafe extern "C" {
pub safe static TEST1: i32;
pub safe fn test1(i: i32);
}
https://github.com/rust-lang/rust/blob/76e7a0849c07d73e4d9afde8036ee8c450127cc8/tests/ui/rust-2024/unsafe-extern-blocks/safe-items.rs