File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -943,14 +943,15 @@ of that type.
943
943
#### Unsafe functions
944
944
945
945
Unsafe functions are those containing unsafe operations that are not contained in an [ ` unsafe ` block] ( #unsafe-blocks ) .
946
+ Such a function must be prefixed with the keyword ` unsafe ` .
946
947
947
948
Unsafe operations are those that potentially violate the memory-safety guarantees of Rust's static semantics.
948
949
Specifically, the following operations are considered unsafe:
949
950
950
- - Dereferencing a [ raw pointer] ( #pointer-types )
951
- - Casting a [ raw pointer] ( #pointer-types ) to a safe pointer type
952
- - Breaking the [ purity-checking rules] ( #pure-functions )
953
- - Calling an unsafe function
951
+ - Dereferencing a [ raw pointer] ( #pointer-types ) .
952
+ - Casting a [ raw pointer] ( #pointer-types ) to a safe pointer type.
953
+ - Breaking the [ purity-checking rules] ( #pure-functions ) in a ` pure ` function.
954
+ - Calling an unsafe function.
954
955
955
956
##### Unsafe blocks
956
957
You can’t perform that action at this time.
0 commit comments