about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorubsan <npmazzuca@gmail.com>2017-05-03 10:54:03 -0700
committerubsan <npmazzuca@gmail.com>2017-05-07 01:20:15 -0700
commit0be875827fe64412f6c0eedc8f775f57137e7c55 (patch)
tree7f38ced0fca141a5bbb9283c57ce5398250115a6 /src/libsyntax/print
parent8305394b4c32c2576bb02a026c05f01c96f46d92 (diff)
downloadrust-0be875827fe64412f6c0eedc8f775f57137e7c55.tar.gz
rust-0be875827fe64412f6c0eedc8f775f57137e7c55.zip
fix the easy features in libsyntax
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index a911c21ed98..0c7e8fda837 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -677,7 +677,7 @@ pub trait PrintState<'a> {
                     style: ast::StrStyle) -> io::Result<()> {
         let st = match style {
             ast::StrStyle::Cooked => {
-                (format!("\"{}\"", st.escape_default()))
+                (format!("\"{}\"", parse::escape_default(st)))
             }
             ast::StrStyle::Raw(n) => {
                 (format!("r{delim}\"{string}\"{delim}",