rollup merge of #20216: sfackler/fix-mangling

Closes #20209

r? @alexcrichton
This commit is contained in:
Alex Crichton 2014-12-29 16:36:07 -08:00
commit 0fbd1e2496
1 changed files with 4 additions and 4 deletions

View File

@ -115,10 +115,10 @@ pub fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> {
// in theory we can demangle any Unicode code point, but
// for simplicity we just catch the common ones.
"$x20" => " ",
"$x27" => "'",
"$x5b" => "[",
"$x5d" => "]"
"$u{20}" => " ",
"$u{27}" => "'",
"$u{5b}" => "[",
"$u{5d}" => "]"
)
} else {
let idx = match rest.find('$') {