diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-21 12:06:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 12:06:11 -0500 |
commit | 5b49548ddd37a11180439eec878e9c537cef1a97 (patch) | |
tree | adf31a002cb66ee997151470f66f0f16e820016d /src/codegen/derive_debug.rs | |
parent | a8f4bc93b8125c24a1a129874a77f49a4a85ac57 (diff) | |
parent | aa11524259b1638108346176f8a00ab07a4f9500 (diff) |
Auto merge of #1008 - AndrewGaspar:underscore-identifier, r=fitzgen
Translate _ as __
This change treats _ as a reserved identifier to resolve the bug reported in #631.
I have one concern - if the header has both an `_` and `__` identifier in the global namespace, this will cause a conflict. However, it seems like we already don't handle that case for `keyword_` (e.g. `abstract_`, `alignof_`, etc.) so it doesn't seem like we need a solution specifically for `__` in this change.
Fixes #631.
Diffstat (limited to 'src/codegen/derive_debug.rs')
0 files changed, 0 insertions, 0 deletions