Skip to content

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

Merged
merged 1 commit into from
Feb 4, 2015
Merged

Fix Unicode name mangling #21544

merged 1 commit into from
Feb 4, 2015

Conversation

ftxqxd
Copy link
Contributor

@ftxqxd ftxqxd commented Jan 23, 2015

{ 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.

@rust-highfive
Copy link
Contributor

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 2beda41 thanks!

'~' => result.push_str("$UP$"),
'*' => result.push_str("$RP$"),
'&' => result.push_str("$BP$"),
'*' => result.push_str("$BP$"),
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BP = Bare Pointer.

@bors
Copy link
Collaborator

bors commented Jan 24, 2015

⌛ Testing commit 2beda41 with merge ff21307...

@bors
Copy link
Collaborator

bors commented Jan 24, 2015

💔 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.
@ftxqxd
Copy link
Contributor Author

ftxqxd commented Feb 4, 2015

I only just realised that the previous failure was legitimate… The tests should pass now. r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ cfe18fb

@bors
Copy link
Collaborator

bors commented Feb 4, 2015

⌛ Testing commit cfe18fb with merge 3ae76d5...

bors added a commit that referenced this pull request Feb 4, 2015
`{` 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.
@bors bors merged commit cfe18fb into rust-lang:master Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants