Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b17fcf3

Browse files
folkertdevbjorn3
andcommittedApr 19, 2025
fix rule name
Co-authored-by: bjorn3 <[email protected]>
1 parent 6f74661 commit b17fcf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/inline-assembly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ r[asm.naked-rules.mem-same-as-ffi]
14031403
- Refer to the unsafe code guidelines for the exact rules.
14041404
- These rules do not apply to memory which is private to the asm code, such as stack space allocated within the asm block.
14051405

1406-
r[asm.rules.black-box]
1406+
r[asm.naked-rules.black-box]
14071407
- The compiler cannot assume that the instructions in the asm are the ones that will actually end up executed.
14081408
- This effectively means that the compiler must treat the `naked_asm!` as a black box and only take the interface specification into account, not the instructions themselves.
14091409
- Runtime code patching is allowed, via target-specific mechanisms.

0 commit comments

Comments
 (0)
Please sign in to comment.