File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ language cares about is preventing the following things:
41
41
[ ` NonNull ` ] that is null. (Requesting custom invalid values is an unstable
42
42
feature, but some stable libstd types, like ` NonNull ` , make use of it.)
43
43
44
+ For a more detailed explanation about "Undefined Bahavior", you may refer to
45
+ [ the reference] [ behavior-considered-undefined ] .
46
+
44
47
"Producing" a value happens any time a value is assigned, passed to a
45
48
function/primitive operation or returned from a function/primitive operation.
46
49
@@ -75,6 +78,8 @@ Rust considers it "safe" to:
75
78
* Abort the program
76
79
* Delete the production database
77
80
81
+ For more detailed information, you may refer to [ the reference] [ behavior-not-considered-unsafe ] .
82
+
78
83
However any program that actually manages to do such a thing is * probably*
79
84
incorrect. Rust provides lots of tools to make these things rare, but
80
85
these problems are considered impractical to categorically prevent.
@@ -84,3 +89,5 @@ these problems are considered impractical to categorically prevent.
84
89
[ race ] : races.html
85
90
[ target features ] : ../reference/attributes/codegen.html#the-target_feature-attribute
86
91
[ `NonNull` ] : ../std/ptr/struct.NonNull.html
92
+ [ behavior-considered-undefined ] : ../reference/behavior-considered-undefined.html
93
+ [ behavior-not-considered-unsafe ] : ../reference/behavior-not-considered-unsafe.html
You can’t perform that action at this time.
0 commit comments