Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dtolnay opened this issue Oct 20, 2024 · 0 comments
Open

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

dtolnay opened this issue Oct 20, 2024 · 0 comments

Comments

@dtolnay
Copy link
Owner

dtolnay commented Oct 20, 2024

Tracking issue: rust-lang/rust#123743
RFC: rust-lang/rfcs#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant