syn icon indicating copy to clipboard operation
syn copied to clipboard

Add `Option<Token![safe]>` in ForeignItem::Static and ForeignItem::Fn

Open dtolnay opened this issue 1 year ago • 0 comments

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

dtolnay avatar Oct 20 '24 04:10 dtolnay