We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669d225 commit 9bf9f64Copy full SHA for 9bf9f64
src/behavior-considered-undefined.md
@@ -1,8 +1,9 @@
1
## Behavior considered undefined
2
3
-The following is a list of behavior which is forbidden in all Rust code,
4
-including within `unsafe` blocks and `unsafe` functions. Type checking provides
5
-the guarantee that these issues are never caused by safe code.
+Rust code, including within `unsafe` blocks and `unsafe` functions is incorrect
+if it exhibits any of the behaviors in the following list. It is the
+programmer's responsibility when writing `unsafe` code that it is not possible
6
+to let `safe` code exhibit these behaviors.
7
8
* Data races.
9
* Dereferencing a null or dangling raw pointer.
0 commit comments