Skip to content

Commit b3b1314

Browse files
authored
Merge pull request #1999 from jyn514/doc-nostack
Clarify that omitting `nostack` is a promise from the compiler to the programmer
2 parents 3fe2de1 + 596d292 commit b3b1314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inline-assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ let _: () = unsafe {
12261226

12271227
r[asm.options.supported-options.nostack]
12281228
- `nostack`: The assembly code does not push data to the stack, or write to the stack red-zone (if supported by the target).
1229-
If this option is *not* used then the stack pointer is guaranteed to be suitably aligned (according to the target ABI) for a function call.
1229+
If this option is *not* used then the stack pointer is guaranteed by the compiler at the start of the assembly code to be suitably aligned (according to the target ABI) for a function call.
12301230

12311231
<!-- no_run: Test has undefined behavior at runtime -->
12321232
```rust,no_run

0 commit comments

Comments
 (0)