Skip to content

Commit cdb6520

Browse files
authored
Merge pull request #1105 from Amanieu/asm
Add inline assembly to the reference
2 parents 06f9e61 + 9dc1c16 commit cdb6520

File tree

3 files changed

+482
-0
lines changed

3 files changed

+482
-0
lines changed

src/SUMMARY.md

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114

115115
- [Linkage](linkage.md)
116116

117+
- [Inline assembly](inline-assembly.md)
118+
117119
- [Unsafety](unsafety.md)
118120
- [Unsafe functions](unsafe-functions.md)
119121
- [Unsafe blocks](unsafe-blocks.md)

src/behavior-considered-undefined.md

+3
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)