diff options
| author | bors <bors@rust-lang.org> | 2017-05-07 22:59:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-07 22:59:30 +0000 |
| commit | 9956e81c19c2f5bbc273d75b49f2e031d80d0e4e (patch) | |
| tree | 310745f2077404dbd30a486775066bf145284b1e /src/libsyntax/print/pprust.rs | |
| parent | d985625b3c04c8a9b083da712fbc951b38093a58 (diff) | |
| parent | 0be875827fe64412f6c0eedc8f775f57137e7c55 (diff) | |
| download | rust-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/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
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}", |
