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

Open
dtolnay opened this issue Jun 7, 2024 · 0 comments
Open

Parse safe items in extern blocks #1675

dtolnay opened this issue Jun 7, 2024 · 0 comments
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

No branches or pull requests

1 participant