Skip to content

Commit 567cf30

Browse files
committed
librustc: apply changes of char::escape_unicode
1 parent d387e78 commit 567cf30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/back/link.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,8 @@ pub fn sanitize(s: &str) -> ~str {
660660
| '_' => result.push_char(c),
661661

662662
_ => {
663-
let tstr = char::escape_unicode(c);
663+
let mut tstr = ~"";
664+
do char::escape_unicode(c) |c| { tstr.push_char(c); }
664665
result.push_char('$');
665666
result.push_str(tstr.slice_from(1));
666667
}

0 commit comments

Comments
 (0)