Skip to content

Commit

Permalink
Auto merge of #34753 - sfackler:demangle-curly-braces, r=alexcrichton
Browse files Browse the repository at this point in the history
Demangle curly braces

They show up in things like
fn(&std..panic..PanicInfo<'_>) $u7b$hook$u7d$::fn_pointer_shim.8352::h01f889b2277c719d

r? @alexcrichton
  • Loading branch information
bors authored Jul 10, 2016
2 parents 6871b3f + 8511b6f commit 47b3a98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/sys/common/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ pub fn demangle(writer: &mut Write, s: &str) -> io::Result<()> {
"$u20$", => b" ",
"$u27$", => b"'",
"$u5b$", => b"[",
"$u5d$", => b"]"
"$u5d$", => b"]",
"$u7b$", => b"{",
"$u7d$", => b"}"
)
} else {
let idx = match rest.find('$') {
Expand Down

0 comments on commit 47b3a98

Please sign in to comment.