Skip to content

Commit

Permalink
Demangle curly braces
Browse files Browse the repository at this point in the history
They show up in things like
fn(&std..panic..PanicInfo<'_>) $u7b$hook$u7d$::fn_pointer_shim.8352::h01f889b2277c719d
  • Loading branch information
sfackler committed Jul 10, 2016
1 parent 46e7f4b commit 8511b6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/sys/common/backtrace.rs
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 8511b6f

Please sign in to comment.