From 67e98ba7184451ff6e6d6db59c006817b606c4c8 Mon Sep 17 00:00:00 2001 From: Zhiting Zhu Date: Mon, 30 Oct 2017 00:02:15 -0500 Subject: Need mangle name of fields in struct for impl debug --- src/codegen/impl_debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen/impl_debug.rs') 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)> { - 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. -- cgit v1.2.3