Skip to content

Commit 447b76c

Browse files
committed
Add note about restrictions on asm attributes
We have a list that describes where attributes may be applied. We're adding inline assembly template strings and operands to that list, but only certain attributes may be used, and other caveats apply. Let's note that there are restrictions and link to the relevant section for more details, as we do already for certain other items on this list. It may be important, normatively, to note this restriction here if we now or later refer to some attribute as being accepted anywhere that attributes are allowed.
1 parent 921222e commit 447b76c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Attributes may be applied to many forms in the language:
107107
* [Function][functions], [closure] and [function pointer]
108108
parameters accept outer attributes. This includes attributes on variadic parameters
109109
denoted with `...` in function pointers and [external blocks][variadic functions].
110-
* [Inline assembly] template strings and operands accept outer attributes.
110+
* [Inline assembly] template strings and operands accept outer attributes. Only certain attributes are accepted semantically; for details, see [asm.attributes.supported-attributes].
111111
112112
r[attributes.meta]
113113
## Meta item attribute syntax

0 commit comments

Comments
 (0)