about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-07 22:59:30 +0000
committerbors <bors@rust-lang.org>2017-05-07 22:59:30 +0000
commit9956e81c19c2f5bbc273d75b49f2e031d80d0e4e (patch)
tree310745f2077404dbd30a486775066bf145284b1e /src/libsyntax/print
parentd985625b3c04c8a9b083da712fbc951b38093a58 (diff)
parent0be875827fe64412f6c0eedc8f775f57137e7c55 (diff)
downloadrust-9956e81c19c2f5bbc273d75b49f2e031d80d0e4e.tar.gz
rust-9956e81c19c2f5bbc273d75b49f2e031d80d0e4e.zip
Auto merge of #41729 - ubsan:master, r=nrc
Delete features which are easily removed, 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}",