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

Parse safe items in extern blocks #1675

Closed
dtolnay opened this issue Jun 7, 2024 · 0 comments · Fixed by #1768
Closed

Parse safe items in extern blocks #1675

dtolnay opened this issue Jun 7, 2024 · 0 comments · Fixed by #1768
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jun 7, 2024

Tracking issue: rust-lang/rust#123743
RFC: rust-lang/rfcs#3484

unsafe extern "C" {
    safe static TEST1: i32;
    safe fn test1(i: i32);
}

https://github.com/rust-lang/rust/blob/76e7a0849c07d73e4d9afde8036ee8c450127cc8/tests/ui/rust-2024/unsafe-extern-blocks/safe-items.rs

@dtolnay dtolnay added the syntax label Jun 7, 2024
Repository owner deleted a comment from jacks0n9 Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant