From 96a83a0236672983d34ae6ed004a156723e93628 Mon Sep 17 00:00:00 2001 From: Jynn Nelson Date: Tue, 16 Sep 2025 08:47:16 -0700 Subject: [PATCH] Clarify that omitting `nostack` is a promise from the compiler to the programmer --- src/inline-assembly.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inline-assembly.md b/src/inline-assembly.md index b1d3c26cea..2e88530d31 100644 --- a/src/inline-assembly.md +++ b/src/inline-assembly.md @@ -1184,7 +1184,7 @@ let _: () = unsafe { r[asm.options.supported-options.nostack] - `nostack`: The assembly code does not push data to the stack, or write to the stack red-zone (if supported by the target). - 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. + If this option is *not* used then the stack pointer is guaranteed by the compiler to be suitably aligned (according to the target ABI) for a function call at the start of the assembly code. ```rust,no_run