File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 34
34
does not support (see [ ` target_feature ` ] ).
35
35
* Unwinding into another language.
36
36
* Producing an invalid value, even in private fields and locals. "Producing" a
37
- value happens any time a value is assigned, passed to a function/primitive
38
- operation or returned from a function/primitive operation.
37
+ value happens any time a value is assigned to or read from a place, passed to
38
+ a function/primitive operation or returned from a function/primitive
39
+ operation.
39
40
The following values are invalid (at their respective type):
40
41
* A value other than ` false ` (` 0 ` ) or ` true ` (` 1 ` ) in a ` bool ` .
41
42
* A discriminant in an ` enum ` not included in the type definition.
45
46
* [ Uninitialized memory] [ undef ] in the value of an integer (` i* ` /` u* ` ),
46
47
floating point value (` f* ` ), or raw pointer.
47
48
* A reference or ` Box<T> ` that is dangling, unaligned, or points to an invalid value.
48
- * Invalid metadata in a wide reference, ` Box ` , or raw pointer:
49
+ * Invalid metadata in a wide reference, ` Box<T> ` , or raw pointer:
49
50
* ` dyn Trait ` metadata is invalid if it is not a pointer to a vtable for
50
51
` Trait ` that matches the actual dynamic trait the pointer or reference points to.
51
52
* Slice metadata is invalid if if the length is not a valid ` usize `
You can’t perform that action at this time.
0 commit comments