-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
librustc: back::link::sanitize support escape_utf8 #7488
Conversation
@yichoi is this the same escaping that other tools use and accept? |
This could probably be done by calling
which will encode things as |
new commit push-forced again. |
} | ||
} | ||
} | ||
|
||
// Underscore-qualify anything that didn't start as an ident. |
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.
Looks good! But I'm going to nitpick again... why is this deleted? (I literally have no idea about this, so I'm sure you know more... it just seems strange.)
@yichoi the reason I ask is because we follow the GNU C++ name mangling scheme (I think), so all of our symbols can be put through a tool like |
@huonw thanks again, I would pass my mistake without your kind comment |
@cmr do you know how |
@yichoi it seems it does not, and that the linker does not error on utf8 symbol names, that must be an android-specific problem. this is a fine fix since it doesn't do escaping. |
(I've r+'d this for now, I'll file a bug about "name mangling and unicode" when this goes through.) |
rebased because of changes of char::escape_unicode |
back::link::sanitize support escape_utf8 fix #7486
Add primitive type support to disallowed_type lint Closes rust-lang#6845 changelog: Enable the banning of primitive types in [`disallowed_type`]
back::link::sanitize support escape_utf8
fix #7486