Skip to content

Commit

Permalink
Merge pull request #1105 from Amanieu/asm
Browse files Browse the repository at this point in the history
Add inline assembly to the reference
  • Loading branch information
ehuss authored Dec 31, 2021
2 parents 06f9e61 + 9dc1c16 commit cdb6520
Show file tree
Hide file tree
Showing 3 changed files with 482 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@

- [Linkage](linkage.md)

- [Inline assembly](inline-assembly.md)

- [Unsafety](unsafety.md)
- [Unsafe functions](unsafe-functions.md)
- [Unsafe blocks](unsafe-blocks.md)
Expand Down
3 changes: 3 additions & 0 deletions src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ code.

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

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

0 comments on commit cdb6520

Please sign in to comment.