We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cd2755 + cdb2177 commit 3af9d03Copy full SHA for 3af9d03
src/behavior-considered-undefined.md
@@ -39,6 +39,12 @@ code.
39
* A value in a `char` which is a surrogate or above `char::MAX`.
40
* Non-UTF-8 byte sequences in a `str`.
41
42
+> **Note**: Undefined behavior affects the entire program. For example, calling
43
+> a function in C that exhibits undefined behavior of C means your entire
44
+> program contains undefined behaviour that can also affect the Rust code. And
45
+> vice versa, undefined behavior in Rust can cause adverse affects on code
46
+> executed by any FFI calls to other languages.
47
+
48
[noalias]: http://llvm.org/docs/LangRef.html#noalias
49
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
50
[undef]: http://llvm.org/docs/LangRef.html#undefined-values
0 commit comments