diff options
| author | bors <bors@rust-lang.org> | 2021-06-25 20:44:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-25 20:44:28 +0000 |
| commit | e6b4c252ea33e9f80ab8b8d7b3f6393e54166127 (patch) | |
| tree | bb654e936af73f4066d67249db441e4315d8363b /compiler/rustc_ast_pretty/src/pprust | |
| parent | 0d7f236b8a255b7e0afa19223bfe72cbaf9cc2d5 (diff) | |
| parent | d0443bb7c2c42d03e7a329e2e18eef779bd2e0e9 (diff) | |
| download | rust-e6b4c252ea33e9f80ab8b8d7b3f6393e54166127.tar.gz rust-e6b4c252ea33e9f80ab8b8d7b3f6393e54166127.zip | |
Auto merge of #86599 - Amanieu:asm_raw, r=nagisa
Add a "raw" option for asm! which ignores format string specifiers This is useful when including raw assembly snippets using `include_str!`.
Diffstat (limited to 'compiler/rustc_ast_pretty/src/pprust')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index 3d2785faad6..ffee5cdc331 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -2284,6 +2284,9 @@ impl<'a> State<'a> { if opts.contains(InlineAsmOptions::ATT_SYNTAX) { options.push("att_syntax"); } + if opts.contains(InlineAsmOptions::RAW) { + options.push("raw"); + } s.commasep(Inconsistent, &options, |s, &opt| { s.word(opt); }); |
