Fix assertion message generation

This commit is contained in:
Shotaro Yamada
2018-05-06 10:55:10 +09:00
parent f9bfe840f4
commit 39df2231bb
3 changed files with 24 additions and 58 deletions

View File

@@ -656,7 +656,7 @@ pub trait PrintState<'a> {
style: ast::StrStyle) -> io::Result<()> {
let st = match style {
ast::StrStyle::Cooked => {
(format!("\"{}\"", st.escape_default()))
(format!("\"{}\"", st.escape_debug()))
}
ast::StrStyle::Raw(n) => {
(format!("r{delim}\"{string}\"{delim}",