summaryrefslogtreecommitdiff
path: root/src/codegen/impl_debug.rs
diff options
context:
space:
mode:
authorZhiting Zhu <zhitingz@cs.utexas.edu>2017-10-30 00:02:15 -0500
committerZhiting Zhu <zhitingz@cs.utexas.edu>2017-10-30 00:02:15 -0500
commit67e98ba7184451ff6e6d6db59c006817b606c4c8 (patch)
tree3aa051346183c079bbb6935c3c2f029f473a20b1 /src/codegen/impl_debug.rs
parent77046b79e4704407cebc8cf1971571215b7dc911 (diff)
Need mangle name of fields in struct for impl debug
Diffstat (limited to 'src/codegen/impl_debug.rs')
-rw-r--r--src/codegen/impl_debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/impl_debug.rs b/src/codegen/impl_debug.rs
index e0204f4d..ab934ed6 100644
--- a/src/codegen/impl_debug.rs
+++ b/src/codegen/impl_debug.rs
@@ -117,7 +117,7 @@ impl<'a> ImplDebug<'a> for Item {
ctx: &BindgenContext,
name: &str,
) -> Option<(String, Vec<quote::Tokens>)> {
- let name_ident = ctx.rust_ident_raw(name);
+ let name_ident = ctx.rust_ident(name);
// We don't know if blacklisted items `impl Debug` or not, so we can't
// add them to the format string we're building up.