about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorJulian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com>2020-05-13 10:03:49 +0200
committerJulian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com>2020-05-13 10:05:04 +0200
commit43ae7854543ea98516c3946e5f14ff3bb0f18bfd (patch)
tree628cc02199910a84396af6793978447d916f4754 /src/tools
parent18cc63d693a3a1d130ba533994c895b56fed3769 (diff)
downloadrust-43ae7854543ea98516c3946e5f14ff3bb0f18bfd.tar.gz
rust-43ae7854543ea98516c3946e5f14ff3bb0f18bfd.zip
Replace some usages of the old `unescape_` functions in AST, clippy and tests.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/clippy_lints/src/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/write.rs b/src/tools/clippy/clippy_lints/src/write.rs
index 5ad43ad55a3..26bf463bd29 100644
--- a/src/tools/clippy/clippy_lints/src/write.rs
+++ b/src/tools/clippy/clippy_lints/src/write.rs
@@ -483,8 +483,8 @@ fn check_newlines(fmtstr: &StrLit) -> bool {
     };
 
     match fmtstr.style {
-        StrStyle::Cooked => unescape::unescape_str(contents, &mut cb),
-        StrStyle::Raw(_) => unescape::unescape_raw_str(contents, &mut cb),
+        StrStyle::Cooked => unescape::unescape_literal(contents, unescape::Mode::Str, &mut cb),
+        StrStyle::Raw(_) => unescape::unescape_literal(contents, unescape::Mode::RawStr, &mut cb),
     }
 
     should_lint