Skip to content

Commit 8511b6f

Browse files
committed
Demangle curly braces
They show up in things like fn(&std..panic..PanicInfo<'_>) $u7b$hook$u7d$::fn_pointer_shim.8352::h01f889b2277c719d
1 parent 46e7f4b commit 8511b6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/sys/common/backtrace.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ pub fn demangle(writer: &mut Write, s: &str) -> io::Result<()> {
170170
"$u20$", => b" ",
171171
"$u27$", => b"'",
172172
"$u5b$", => b"[",
173-
"$u5d$", => b"]"
173+
"$u5d$", => b"]",
174+
"$u7b$", => b"{",
175+
"$u7d$", => b"}"
174176
)
175177
} else {
176178
let idx = match rest.find('$') {

0 commit comments

Comments
 (0)