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
Copy file name to clipboardExpand all lines: text/0000-unsafe-extern-blocks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ An extern static value is also declared with a `;` instead of an expression (sim
33
33
In both cases, the actual function body or value is provided by whatever external source (which is probably not even written in Rust).
34
34
35
35
When an `unsafe extern` block is used, all declarations within that `extern` block *must* have the `unsafe` or `safe` keywords as part of their signature.
36
-
The `safe` keyword is a contextual keyword, it is currently only used within `extern` blocks.
36
+
The `safe` keyword is a contextual keyword; it is currently allowed only within `extern` blocks.
37
37
38
38
If an `extern` block is used in an older edition without the `unsafe` keyword, declarations *cannot* specify `safe` or `unsafe`.
39
39
Code must update to `unsafe extern` style blocks if it wants to make `safe` declarations.
0 commit comments