Skip to content

Commit 9dc1c16

Browse files
committed
Add inline assembly to the list of possible undefined behavior
1 parent ac5f793 commit 9dc1c16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/behavior-considered-undefined.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ code.
5858

5959
> **Note**: `rustc` achieves this with the unstable
6060
> `rustc_layout_scalar_valid_range_*` attributes.
61+
* Incorrect use of inline assembly. For more details, refer to the [rules] to
62+
follow when writing code that uses inline assembly.
6163

6264
**Note:** Uninitialized memory is also implicitly invalid for any type that has
6365
a restricted set of valid values. In other words, the only cases in which
@@ -94,3 +96,4 @@ cannot be bigger than `isize::MAX` bytes.
9496
[`NonZero*`]: ../core/num/index.html
9597
[dereference expression]: expressions/operator-expr.md#the-dereference-operator
9698
[place expression context]: expressions.md#place-expressions-and-value-expressions
99+
[rules]: inline-assembly.md#rules-for-inline-assembly

0 commit comments

Comments
 (0)