Add a "raw" option for asm! which ignores format string specifiers
This commit is contained in:
parent
1e13a9bb33
commit
d0443bb7c2
8 changed files with 48 additions and 23 deletions
|
@ -1446,6 +1446,9 @@ impl<'a> State<'a> {
|
|||
if opts.contains(ast::InlineAsmOptions::ATT_SYNTAX) {
|
||||
options.push("att_syntax");
|
||||
}
|
||||
if opts.contains(ast::InlineAsmOptions::RAW) {
|
||||
options.push("raw");
|
||||
}
|
||||
s.commasep(Inconsistent, &options, |s, &opt| {
|
||||
s.word(opt);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue