-
Notifications
You must be signed in to change notification settings - Fork 717
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
Stop Rust from prepending underscore before '?' for win32 #822
Conversation
r? @emilio |
match symbol.chars().next().unwrap() { | ||
// Stripping leading underscore for all names on Darwin and | ||
// C linkage functions on Win32. | ||
'_' => { symbol.remove(0); } |
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.
nit: No need for braces, here and below.
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.
No, it needs. String::remove
returns char
and String::insert
returns nothing.
@bors-servo r=emilio |
📌 Commit 4f8de62 has been approved by |
Stop Rust from prepending underscore before '?' for win32 This fixes #819. It also includes tests for different platforms which are not supposed to be affected, so that we won't regress them in the future either. The prefix `\x01` char is necessary for Win32. See also [msvc32_symbolify function in regen_atoms.py](https://github.com/servo/servo/blob/1b6d29e31996c87218352b825aa93e01909a6a24/components/style/gecko/regen_atoms.py#L35-L38).
☀️ Test successful - status-travis |
Bump to 0.28 Brings in #822 which unblocks https://bugzilla.mozilla.org/show_bug.cgi?id=1366956, and also #829 which should greatly reduce merge conflicts in checked in bindings.
This fixes #819.
It also includes tests for different platforms which are not supposed to be affected, so that we won't regress them in the future either.
The prefix
\x01
char is necessary for Win32. See also msvc32_symbolify function in regen_atoms.py.