std: convert str::escape_* to methods.

This commit is contained in:
Huon Wilson
2013-06-11 22:13:23 +10:00
parent 9e60e2e297
commit 3a1e13c7a0
3 changed files with 36 additions and 47 deletions

View File

@@ -31,7 +31,6 @@ use print::pprust;
use core::char;
use core::io;
use core::str;
use core::u64;
use core::uint;
use core::iterator::IteratorUtil;
@@ -2113,7 +2112,7 @@ pub fn print_comment(s: @ps, cmnt: &comments::cmnt) {
pub fn print_string(s: @ps, st: &str) {
word(s.s, "\"");
word(s.s, str::escape_default(st));
word(s.s, st.escape_default());
word(s.s, "\"");
}