Skip to content

Commit 8cc1d95

Browse files
committed
Clarify that format string implicit named arguments are not supported
1 parent 43a9251 commit 8cc1d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rfcs/0000-inline-asm.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ asm := "asm!(" format_string *("," [ident "="] operand) ["," flags] ")"
317317

318318
## Template string
319319

320-
The assembler template uses the same syntax as [format strings][format-syntax] (i.e. placeholders are specified by curly braces). The corresponding arguments are accessed in order, by index, or by name.
320+
The assembler template uses the same syntax as [format strings][format-syntax] (i.e. placeholders are specified by curly braces). The corresponding arguments are accessed in order, by index, or by name. However, implicit named arguments (introduced by [RFC #2795][rfc-2795]) are not supported.
321321

322322
The assembly code syntax used is that of the GNU assembler (GAS). The only exception is on x86 where the Intel syntax is used instead of GCC's AT&T syntax.
323323

@@ -327,6 +327,8 @@ However there is one restriction on the asm string: any assembler state (e.g. th
327327

328328
The compiler will lint against any operands that are not used in the template string, except for operands that specify an explicit register.
329329

330+
[rfc-2795]: https://github.com/rust-lang/rfcs/pull/2795
331+
330332
## Operand type
331333

332334
Several types of operands are supported:

0 commit comments

Comments
 (0)