about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-06-14 23:30:28 -0700
committerJosh Triplett <josh@joshtriplett.org>2020-06-14 23:30:28 -0700
commit50d6d4de67d76f03f8a8b209881a924f2d69922f (patch)
tree75ab7cd4abe8e8d1eb7ab3b82a34b57b6c123477 /library/std/src/sys/unix/stack_overflow.rs
parent840176ab6f9fdda0878bd0ba1297437b506c6b7c (diff)
downloadrust-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