Skip to content

Commit 90251b3

Browse files
committed
tweaks
1 parent a93e37a commit 90251b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/behavior-considered-undefined.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ code.
3434
does not support (see [`target_feature`]).
3535
* Unwinding into another language.
3636
* 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.
3940
The following values are invalid (at their respective type):
4041
* A value other than `false` (`0`) or `true` (`1`) in a `bool`.
4142
* A discriminant in an `enum` not included in the type definition.
@@ -45,7 +46,7 @@ code.
4546
* [Uninitialized memory][undef] in the value of an integer (`i*`/`u*`),
4647
floating point value (`f*`), or raw pointer.
4748
* 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:
4950
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for
5051
`Trait` that matches the actual dynamic trait the pointer or reference points to.
5152
* Slice metadata is invalid if if the length is not a valid `usize`

0 commit comments

Comments
 (0)