From 8511b6faf405a726bd0232fdffdd525326bcb001 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 10 Jul 2016 10:04:20 -0700 Subject: [PATCH] Demangle curly braces They show up in things like fn(&std..panic..PanicInfo<'_>) $u7b$hook$u7d$::fn_pointer_shim.8352::h01f889b2277c719d --- src/libstd/sys/common/backtrace.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstd/sys/common/backtrace.rs b/src/libstd/sys/common/backtrace.rs index 6f185437e50..4c23ceb63f2 100644 --- a/src/libstd/sys/common/backtrace.rs +++ b/src/libstd/sys/common/backtrace.rs @@ -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('$') {