You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update extern block grammar to be before validation.
The grammar in the reference defines the grammar before ast validation,
since that is the grammar accepted by macros. Any restrictions imposed
by validation are described in prose (using the term "semantically",
but I don't feel like that is the greatest term to use).
> [^unsafe-2024]: Starting with the 2024 Edition, the `unsafe` keyword is required semantically.
17
-
>
18
-
> [^static-qualifiers]: *Relevant to editions earlier than Rust 2024*: The `safe` or `unsafe` qualifier is only allowed when the `extern` is qualified as `unsafe`.
19
17
20
18
External blocks provide _declarations_ of items that are not _defined_ in the
21
19
current crate and are the basis of Rust's foreign function interface. These are
0 commit comments