diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-15 16:50:01 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-15 16:50:01 +0100 |
commit | 0ec5a6aa25bda273781a6569107b82c65cf004c3 (patch) | |
tree | a1a2d9bf4d1ba18557212c78852ea758dbafacfb /libbindgen/src/codegen/mod.rs | |
parent | 597676627746c82212c7ddc97793bd33246a4032 (diff) |
codegen: Properly mangle method names.
Diffstat (limited to 'libbindgen/src/codegen/mod.rs')
-rw-r--r-- | libbindgen/src/codegen/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbindgen/src/codegen/mod.rs b/libbindgen/src/codegen/mod.rs index bf516cd2..9ab264c6 100644 --- a/libbindgen/src/codegen/mod.rs +++ b/libbindgen/src/codegen/mod.rs @@ -1404,7 +1404,7 @@ impl MethodCodegen for Method { let item = ast::ImplItem { id: ast::DUMMY_NODE_ID, - ident: ctx.ext_cx().ident_of(&name), + ident: ctx.rust_ident(&name), vis: ast::Visibility::Public, attrs: attrs, node: ast::ImplItemKind::Method(sig, P(block)), |