-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix Unicode name mangling #21544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Unicode name mangling #21544
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ 2beda41 thanks! |
'~' => result.push_str("$UP$"), | ||
'*' => result.push_str("$RP$"), | ||
'&' => result.push_str("$BP$"), | ||
'*' => result.push_str("$BP$"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's B
meant to indicate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BP = Bare Pointer.
⌛ Testing commit 2beda41 with merge ff21307... |
💔 Test failed - auto-mac-32-opt |
`{` and `}` aren’t valid characters on ARM. This also fixes a small bug where `)` (**r**ight **p**arenthesis) and `*` (**r**aw **p**ointer) would both mangle to `$RP$`, making `)` show up as `*` in backtraces.
2beda41
to
cfe18fb
Compare
I only just realised that the previous failure was legitimate… The tests should pass now. r? @alexcrichton |
`{` and `}` aren’t valid characters on ARM, so this makes Unicode characters render as, e.g., `$u38d$` instead of `$u{38d}`. This also fixes a small bug where `)` (**r**ight **p**arenthesis) and `*` (**r**aw **p**ointer) would both mangle to `$RP$`, making `)` show up as `*` in backtraces.
{
and}
aren’t valid characters on ARM, so this makes Unicode characters render as, e.g.,$u38d$
instead of$u{38d}
.This also fixes a small bug where
)
(right parenthesis) and*
(raw pointer) would both mangle to$RP$
, making)
show up as*
in backtraces.