We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bcb36b commit 8bb5ac6Copy full SHA for 8bb5ac6
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.
45
+> And vice versa, undefined behavior in `Rust` can cause adverse affects on
46
+> code 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