Skip to content

Commit 0fbd1e2

Browse files
committed
rollup merge of rust-lang#20216: sfackler/fix-mangling
Closes rust-lang#20209 r? @alexcrichton
2 parents 748440c + e8b151b commit 0fbd1e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/sys/common/backtrace.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ pub fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> {
115115

116116
// in theory we can demangle any Unicode code point, but
117117
// for simplicity we just catch the common ones.
118-
"$x20" => " ",
119-
"$x27" => "'",
120-
"$x5b" => "[",
121-
"$x5d" => "]"
118+
"$u{20}" => " ",
119+
"$u{27}" => "'",
120+
"$u{5b}" => "[",
121+
"$u{5d}" => "]"
122122
)
123123
} else {
124124
let idx = match rest.find('$') {

0 commit comments

Comments
 (0)