diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2020-06-14 23:30:28 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2020-06-14 23:30:28 -0700 |
| commit | 50d6d4de67d76f03f8a8b209881a924f2d69922f (patch) | |
| tree | 75ab7cd4abe8e8d1eb7ab3b82a34b57b6c123477 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 840176ab6f9fdda0878bd0ba1297437b506c6b7c (diff) | |
| download | rust-50d6d4de67d76f03f8a8b209881a924f2d69922f.tar.gz rust-50d6d4de67d76f03f8a8b209881a924f2d69922f.zip | |
asm: When pretty-printing, don't escape characters twice
pprust uses `print_string` to write out the template string, and
`print_string` already calls `escape_debug`, so `impl fmt::Display for
InlineAsmTemplatePiece` shouldn't do an additional `escape_debug`.
This fixes a pretty-printing bug that translated
`asm!("...\n...")`
to
`asm!("...\\n...")`
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
