Skip to content

Commit

Permalink
librustc: apply changes of char::escape_unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
yichoi committed Jul 1, 2013
1 parent d387e78 commit 567cf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ pub fn sanitize(s: &str) -> ~str {
| '_' => result.push_char(c),

_ => {
let tstr = char::escape_unicode(c);
let mut tstr = ~"";
do char::escape_unicode(c) |c| { tstr.push_char(c); }
result.push_char('$');
result.push_str(tstr.slice_from(1));
}
Expand Down

5 comments on commit 567cf30

@bors
Copy link
Contributor

@bors bors commented on 567cf30 Jul 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 567cf30 Jul 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging yichoi/rust/sanitize_utf8 = 567cf30 into auto

@bors
Copy link
Contributor

@bors bors commented on 567cf30 Jul 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yichoi/rust/sanitize_utf8 = 567cf30 merged ok, testing candidate = b44953b

@bors
Copy link
Contributor

@bors bors commented on 567cf30 Jul 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = b44953b

Please sign in to comment.