Rollup merge of #89713 - nbdd0121:doc2, r=Amanieu

Fix ABNF of inline asm options

This is the case since #73227.

r? `@camelid`
This commit is contained in:
Matthias Krüger 2021-10-10 18:22:22 +02:00 committed by GitHub
commit 8aec76caf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,7 +456,7 @@ operand := reg_operand / "const" const_expr / "sym" path
clobber_abi := "clobber_abi(" <abi> ")"
option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
options := "options(" option *["," option] [","] ")"
asm := "asm!(" format_string *("," format_string) *("," [ident "="] operand) ["," clobber_abi] ["," options] [","] ")"
asm := "asm!(" format_string *("," format_string) *("," [ident "="] operand) ["," clobber_abi] *("," options) [","] ")"
```
Inline assembly is currently supported on the following architectures: